# US 2023/0403260 A1 · Computer and Network Interface Controller Offloading Encryption Processing to the Network Interface Controller and Using Derived Encryption Keys

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0403260 A1
- Document ID: US20230403260A1
- Status: Published application
- Kind: A1
- Application number: 18/328,516
- Filed: 2023-06-02
- Published: 2023-12-14
- Earliest claimed: 2022-06-13
- Assignees: DreamBig Semiconductor, Inc.
- Applicants: DreamBig Semiconductor, Inc.
- Inventors: Brian Hausauer; Renato Recio
- Web page: https://patentgrep.com/patent/US20230403260A1

## CPC

- H04L 9/0819: {Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) (network architectures or network communication protocols for key distribution in a packet data network H04L63/062)}
- G06F 13/102: {where the program performs an interfacing function, e.g. device driver (G06F13/105 takes precedence; contention policies within device drivers G06F9/4881; scheduling within device drivers G06F9/52)}
- H04L 9/0825: {using asymmetric-key encryption or public key infrastructure [PKI], e.g. key signature or public key certificates}
- H04L 9/0827: {involving distinctive intermediate devices or communication paths (network architectures or network communication protocols using different networks H04L63/18)}
- H04L 9/0866: {involving user or device identifiers, e.g. serial number, physical or biometrical information, DNA, hand-signature or measurable physical characteristics}
- H04L 9/0894: {Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage}
- H04L 9/14: using a plurality of keys or algorithms
- H04L 9/3268: {using certificate validation, registration, distribution or revocation, e.g. certificate revocation list [CRL]}
- H04L 49/901: using storage descriptor, e.g. read or write pointers
- H04L 63/0272: {Virtual private networks}
- H04L 63/0428: {wherein the data content is protected, e.g. by encrypting or encapsulating the payload}
- H04L 63/0485: {Networking architectures for enhanced packet encryption processing, e.g. offloading of IPsec packet processing or efficient security association look-up}
- H04L 63/164: {at the network layer}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Encryption operations are securely offloaded to a network interface controller (NIC). Encryption keys are securely transferred from a virtual machine (VM) to the NIC and data is securely transferred from encrypted VM memory to secure buffers in the NIC. The NIC handles the encryption and decryption operations in hardware, greatly increasing encryption performance while not reducing security. This is especially useful in cloud server environments, so the cloud service provider does not have access to the encryption keys or the unencrypted data. The offloaded operations are performed with numerous different communication protocols, including RDMA, QUIC, IPsec underlay and WireGuard.

## Claims

### Claim 1

A computer system comprising:
a computer including:
a computer processor;
a memory controller coupled to the computer processor;
computer memory coupled to the computer processor and the memory controller, the computer memory including session encryption key storage for encryption keys used for communications between a local program and a remote program over a network according to a protocol;
a computer peripheral device interface coupled to the computer processor and to the computer memory; and
computer non-transitory storage for programs to execute from computer memory on the computer processor,
wherein the computer non-transitory storage includes the local program to exchange encryption keys with the remote program to be used in egress encryption operations of data being transmitted in packets to the other program, the packets conforming to the protocol; and
a network interface controller (NIC) for connection to the computer and the network, the NIC including:
a NIC peripheral device interface for connection to the computer;
a network interface for connection to a network;
a NIC processor coupled to the NIC peripheral device interface and the network interface;
NIC memory coupled to the NIC processor, the NIC memory including session encryption key storage for encryption keys used for the communications between the local program and the remote program over the network;
NIC non-transitory storage for programs to execute from the NIC memory on the NIC processor, the NIC non-transitory storage including a NIC communication protocol program for use with the communications between the local program and the remote program; and
a NIC encryption engine coupled to the NIC peripheral device interface, the network interface, and the session encryption key storage to encrypt and decrypt data communications over the network interface using keys stored in the session encryption key storage, wherein the NIC encryption engine is configured to encrypt data leaving the NIC through the network interface and decrypt data entering the NIC through the network interface;
wherein the computer peripheral device interface and the NIC peripheral device interface are configured to provide a peripheral device communication path between the local program and the NIC and a data transfer path between the computer and the NIC;
wherein the NIC communication protocol program is configured to utilize a local program primary encryption key in conjunction with at least one field contained in packets being exchanged to develop a derived encryption key and to provide the derived encryption key to the local program for exchange with the remote program, the derived encryption key to be used by the remote program to encrypt packets sent to the local program;
wherein the local program and the NIC communication protocol program are configured for the local program to provide a received remote program encryption key to the NIC communication protocol program,
wherein the NIC communication protocol program is configured to provide the received remote program encryption key to the NIC encryption engine to allow the NIC encryption engine to encrypt packets being transmitted to the remote program with the received remote program encryption key,
wherein the NIC communication protocol program is configured to provide the local program primary encryption key to the NIC encryption engine to allow the NIC encryption engine to decrypt packets being received from the remote program,
wherein the NIC encryption engine and the network interface develop an ingress derived encryption key based on the local program primary encryption key and at least one field contained in packets received from the remote program, and
wherein the NIC encryption engine uses the ingress derived encryption key to decrypt packets received from the remote program.

### Claim 2 (depends on 1)

The computer system of claim 1, wherein the local program provides the local program primary encryption key to the NIC communication protocol program.

### Claim 3 (depends on 1)

The computer system of claim 1, wherein the protocol is remote direct memory access (RDMA) and the at least one field contained in the packet that is used to develop the derived encryption key includes the queue pair number.

### Claim 4 (depends on 1)

The computer system of claim 1, wherein the protocol is QUIC and the at least one field contained in the packet that is used to develop the derived encryption key includes the connection ID.

### Claim 5 (depends on 1)

The computer system of claim 1, wherein the protocol is IPsec and the at least one field contained in the packet that is used to develop the derived encryption key includes security parameter index and the source and destination IP addresses.

### Claim 6 (depends on 1)

The computer system of claim 1, wherein the protocol is WireGuard and the at least one field contained in the packet that is used to develop the derived encryption key includes the source and destination ID addresses.

### Claim 7

A network interface controller (NIC) for connection to a computer and a network, the computer including:
a computer processor;
a memory controller coupled to the computer processor;
computer memory coupled to the computer processor and the memory controller, the computer memory including session encryption key storage for encryption keys used for communications between a local program and a remote program according to a protocol;
a computer peripheral device interface coupled to the computer processor and to the computer memory; and
computer non-transitory storage for programs to execute from computer memory on the computer processor,
wherein the computer non-transitory storage includes the local program to exchange encryption keys with the remote program to be used in egress encryption operations of data being transmitted in packets to the other program, the packets conforming to the protocol,
the NIC comprising:
a NIC peripheral device interface for connection to the computer;
a network interface for connection to a network;
a NIC processor coupled to the NIC peripheral device interface and the network interface;
NIC memory coupled to the NIC processor, the NIC memory including session encryption key storage for encryption keys used for the communications between the local program and the remote program over the network;
NIC non-transitory storage for programs to execute from the NIC memory on the NIC processor, the NIC non-transitory storage including a NIC communication protocol program for use with the communications between the local program and the remote program; and
a NIC encryption engine coupled to the NIC peripheral device interface, the network interface, and the session encryption key storage to encrypt and decrypt data communications over the network interface using keys stored in the session encryption key storage, wherein the NIC encryption engine is configured to encrypt data leaving the NIC through the network interface and decrypt data entering the NIC through the network interface;
wherein the computer peripheral device interface and the NIC peripheral device interface are configured to provide a peripheral device communication path between the local program and the NIC and a data transfer path between the computer and the NIC;
wherein the NIC communication protocol program is configured to utilize a local program primary encryption key in conjunction with at least one field contained in packets being exchanged to develop a derived encryption key and to provide the derived encryption key to the local program for exchange with the remote program, the derived encryption key to be used by the remote program to encrypt packets sent to the local program;
wherein the local program and the NIC communication protocol program are configured for the local program to provide a received remote program encryption key to the NIC communication protocol program,
wherein the NIC communication protocol program is configured to provide the received remote program encryption key to the NIC encryption engine to allow the NIC encryption engine to encrypt packets being transmitted to the remote program with the received remote program encryption key,
wherein the NIC communication protocol program is configured to provide the local program primary encryption key to the NIC encryption engine to allow the NIC encryption engine to decrypt packets being received from the remote program,
wherein the NIC encryption engine and the network interface develop an ingress derived encryption key based on the local program primary encryption key and at least one field contained in packets received from the remote program, and
wherein the NIC encryption engine uses the ingress derived encryption key to decrypt packets received from the remote program.

### Claim 8 (depends on 7)

The NIC of claim 7, wherein the local program provides the local program primary encryption key to the NIC communication protocol program.

### Claim 9 (depends on 7)

The NIC of claim 7, wherein the protocol is remote direct memory access (RDMA) and the at least one field contained in the packet that is used to develop the derived encryption key includes the queue pair number.

### Claim 10 (depends on 7)

The NIC of claim 7, wherein the protocol is QUIC and the at least one field contained in the packet that is used to develop the derived encryption key includes the connection ID.

### Claim 11 (depends on 7)

The NIC of claim 7, wherein the protocol is IPsec and the at least one field contained in the packet that is used to develop the derived encryption key includes security parameter index and the source and destination IP addresses.

### Claim 12 (depends on 7)

The NIC of claim 7, wherein the protocol is WireGuard and the at least one field contained in the packet that is used to develop the derived encryption key includes the source and destination ID addresses.

### Claim 13

A computer non-transitory machine readable storage medium for use in a computer cooperating with a network interface controller (NIC), the computer including:
a computer processor;
a memory controller coupled to the computer processor;
computer memory coupled to the computer processor and the memory controller, the computer memory including session encryption key storage for encryption keys used for communications between the computer and a remote program according to a protocol;
a computer peripheral device interface coupled to the computer processor and to the computer memory; and
the computer non-transitory storage for programs to execute from computer memory on the computer processor; and
the NIC including:
a NIC peripheral device interface for connection to the computer;
a network interface for connection to a network;
a NIC processor coupled to the NIC peripheral device interface and the network interface;
NIC memory coupled to the NIC processor, the NIC memory including session encryption key storage for encryption keys used for the communications between the computer and a remote program over a network;
NIC non-transitory storage for programs to execute from the NIC memory on the NIC processor, the NIC non-transitory storage including a NIC communication protocol program for use with the communications between the computer and the remote program; and
a NIC encryption engine coupled to the NIC peripheral device interface, the network interface, and the session encryption key storage to encrypt and decrypt data communications over the network interface using keys stored in the session encryption key storage, wherein the NIC encryption engine is configured to encrypt data leaving the NIC through the network interface and decrypt data entering the NIC through the network interface;
wherein the computer peripheral device interface and the NIC peripheral device interface are configured to provide a peripheral device communication path between the computer and the NIC and a data transfer path between the computer and the NIC;
wherein the NIC communication protocol program is configured to utilize a local primary encryption key in conjunction with at least one field contained in packets being exchanged to develop a derived encryption key and to provide the derived encryption key to the computer for exchange with the remote program, the derived encryption key to be used by the remote program to encrypt packets sent to the computer;
wherein the NIC communication protocol program is configured to provide a received remote program encryption key to the NIC encryption engine to allow the NIC encryption engine to encrypt packets being transmitted to the remote program with the received remote program encryption key,
wherein the NIC communication protocol program is configured to provide the local primary encryption key to the NIC encryption engine to allow the NIC encryption engine to decrypt packets being received from the remote program,
wherein the NIC encryption engine and the network interface develop an ingress derived encryption key based on the local primary encryption key and at least one field contained in packets received from the remote program, and
wherein the NIC encryption engine uses the ingress derived encryption key to decrypt packets received from the remote program,
the computer non-transitory machine readable storage medium having stored thereon instructions to perform operations comprising:
exchanging encryption keys with the remote program to be used in egress encryption operations of data being transmitted in packets to the other program, the packets conforming to a protocol; and
providing the received remote program encryption key to the NIC communication protocol program in conjunction.

### Claim 14 (depends on 13)

The computer non-transitory machine readable storage medium of claim 13, the computer non-transitory machine readable storage medium further having stored thereon instructions to cause the computer to perform operations comprising:
providing the local primary encryption key to the NIC communication protocol program.

### Claim 15 (depends on 13)

The computer non-transitory machine readable storage medium of claim 13, wherein the protocol is remote direct memory access (RDMA) and the at least one field contained in the packet that is used to develop the derived encryption key includes the queue pair number.

### Claim 16 (depends on 13)

The computer non-transitory machine readable storage medium of claim 13, wherein the protocol is QUIC and the at least one field contained in the packet that is used to develop the derived encryption key includes the connection ID.

### Claim 17 (depends on 13)

The computer non-transitory machine readable storage medium of claim 13, wherein the protocol is IPsec and the at least one field contained in the packet that is used to develop the derived encryption key includes security parameter index and the source and destination IP addresses.

### Claim 18 (depends on 13)

The computer non-transitory machine readable storage medium of claim 13, wherein the protocol is WireGuard and the at least one field contained in the packet that is used to develop the derived encryption key includes the source and destination ID addresses.
