# US 2021/0288944 A1 · Methods and apparatus for encrypted communication

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

- Number: US 2021/0288944 A1
- Document ID: US20210288944A1
- Status: Published application
- Kind: A1
- Application number: 16/817,852
- Filed: 2020-03-13
- Published: 2021-09-16
- Earliest claimed: 2020-03-13
- Assignees: ARM IP Limited
- Applicants: Arm IP Limited
- Inventors: Gustavo Federico PETRI; Guilhem Floréal BRYANT; Dominic Phillip MULLIGAN; Brendan James MORAN
- Web page: https://patentgrep.com/patent/US20210288944A1

## CPC

- H04L 63/0428: {wherein the data content is protected, e.g. by encrypting or encapsulating the payload}
- H04L 9/0825: {using asymmetric-key encryption or public key infrastructure [PKI], e.g. key signature or public key certificates}
- H04L 9/0838: {Key agreement, i.e. key establishment technique in which a shared key is derived by parties as a function of information contributed by, or associated with, each of these (network architectures or network communication protocols for key exchange in a packet data network H04L63/061)}
- H04L 9/0841: {involving Diffie-Hellman or related key agreement protocols}
- H04L 9/0897: {involving additional devices, e.g. trusted platform module [TPM], smartcard or USB}
- H04L 63/0245: {Filtering by information in the payload}
- H04L 63/045: {wherein the sending and receiving network entities apply hybrid encryption, i.e. combination of symmetric and asymmetric encryption (cryptographic mechanisms or cryptographic arrangements using a plurality of keys or algorithms H04L9/14)}
- H04L 63/061: {for key exchange, e.g. in peer-to-peer networks (cryptographic mechanisms or cryptographic arrangements for key agreement H04L9/0838)}
- H04L 63/065: {for group communications (cryptographic mechanisms or cryptographic arrangements for key management involving conference or group key H04L9/0833)}
- H04L 63/123: {received data contents, e.g. message integrity}
- H04L 63/126: {the source of the received data}
- H04L 63/166: {at the transport layer}
- H04L 67/14: Session management (for real-time applications in data packet communications networks H04L65/1066)
- H04L 2209/76: Proxy, i.e. using intermediary entity to perform cryptographic operations
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Aspects of the present disclosure relate to an apparatus comprising first interface circuitry to communicate with a first computing device and second interface circuitry to communicate with a second computing device. The first interface circuitry is configured to receive a handshake message from the first computing device. The second interface circuitry is configured to transmit the handshake message to the second computing device and to receive a handshake response message from the second computing device. The first interface circuitry is configured to transmit the handshake response message to the first computing device, whereby to establish a communication session between the first computing device and the second computing device. Apparatus comprises trusted execution environment circuitry to determine a cryptographic session key associated with said communication session, and use said session key to decrypt content of messages transmitted between the first and second computing devices via the apparatus, and analyse said decrypted content.

## Claims

### Claim 1

An apparatus comprising:
first interface circuitry to communicate with a first computing device;
second interface circuitry to communicate with a second computing device, wherein:
the first interface circuitry is configured to receive a handshake message from the first computing device;
the second interface circuitry is configured to transmit the handshake message to the second computing device and to receive a handshake response message from the second computing device; and
the first interface circuitry is configured to transmit the handshake response message to the first computing device, whereby to establish a communication session between the first computing device and the second computing device, and trusted execution environment circuitry to execute computer instructions to:
determine a cryptographic session key associated with said communication session; and
use said session key to decrypt content of encrypted messages transmitted between the first computing device and the second computing device via the apparatus, and to analyse said decrypted content.

### Claim 2 (depends on 1)

An apparatus according to claim 1, wherein:
the first interface circuitry is configured to provide the handshake message unmodified to the second interface circuitry; and
the second interface circuitry is configured to provide the handshake response message unmodified to the first interface circuitry.

### Claim 3 (depends on 1)

An apparatus according to claim 1, wherein:
the trusted execution environment circuitry is configured to determine the session key by receiving, from one of the first computing device and the second computing device, a message comprising said session key, said session key having been generated by said one of the first computing device and the second computing device responsive to at least one of said handshake message and said handshake response message.

### Claim 4 (depends on 1)

An apparatus according to claim 1, wherein the trusted execution environment circuitry is configured to:
receive, from the first computing device, a cryptographic private key associated with the first computing device;
use said private key to determine content of the handshake response message; and
determine the session key based on said content of the handshake response message.

### Claim 5 (depends on 1)

An apparatus according to claim 1, wherein the trusted execution environment circuitry is configured to, based on said analysing of the decrypted content of a given encrypted message directed to a recipient device, said recipient device being one of the first computing device and the second computing device, determine whether to block or allow transmission of said given encrypted message to the recipient device.

### Claim 6 (depends on 5)

An apparatus according to claim 5, wherein the trusted execution environment circuitry is configured to:
receive blocking policy information from a computing device external to the trusted execution environment; and
determine whether to block or allow transmission of said given encrypted message to the recipient device based on said blocking policy information.

### Claim 7 (depends on 6)

An apparatus according to claim 6, wherein the blocking policy information indicates whether to block or allow transmission of said given encrypted message based on the decrypted content of said given encrypted message.

### Claim 8 (depends on 5)

An apparatus according to claim 5, wherein the trusted execution environment circuitry is configured, responsive to a determination to allow transmission of said given encrypted message, to transmit said given encrypted message to the recipient device via the corresponding one of the first interface and the second interface.

### Claim 9 (depends on 1)

An apparatus according to claim 1, wherein the trusted execution environment circuitry is configured to perform an attestation process in respect of at least one of:
said computer instructions to be executed by the trusted execution environment circuitry; and
initial data, associated with the trusted execution environment circuitry, in respect of which the trusted execution environment circuitry is to perform said computer instructions.

### Claim 10 (depends on 9)

An apparatus according to claim 9, wherein the attestation process comprises:
receiving, from one of the first computing device and the second computing device, an attestation request message; and
responsive to said attestation request message, transmitting to said one of the first computing device and the second computing device an attestation token for verification.

### Claim 11 (depends on 10)

An apparatus according to claim 10, wherein the attestation token comprises at least one of:
a cryptographic hash of said computer instructions; and
a cryptographic hash of said initial data.

### Claim 12 (depends on 1)

An apparatus according to claim 1, wherein the trusted execution environment circuitry is configured to disallow unencrypted transmission of said decrypted content of said encrypted messages outside of the trusted execution environment circuitry.

### Claim 13 (depends on 1)

An apparatus according to claim 1, wherein the trusted execution environment circuitry is configured to disallow transmission of said session key outside of the trusted execution environment circuitry.

### Claim 14 (depends on 1)

An apparatus according to claim 1, wherein the trusted execution environment circuitry is configured to protect said computing instructions executed by the trusted execution environment circuitry from modification by untrusted computing instructions executed by the apparatus.

### Claim 15

A method comprising:
transmitting a handshake message from a first computing device to a middlebox device;
transmitting the handshake message from the middlebox device to a second computing device;
responsive to receiving the handshake message at the second computing device, transmitting a handshake response message from the second computing device to the first computing device, via the middlebox device, whereby to establish a communication session between the first computing device and the second computing device;
determining, by trusted execution environment circuitry of the middlebox device, a cryptographic session key associated with said communication session; and
using, by the trusted execution environment circuitry, said session key to decrypt content of encrypted messages transmitted between the first computing device and the second computing device via the apparatus, and to analyse said decrypted content.

### Claim 16 (depends on 15)

A method according to claim 15, comprising performing an attestation process in respect of computer instructions to be executed by the trusted execution environment circuitry, said computer instructions defining said determining the cryptographic session key and said using the session key.

### Claim 17 (depends on 16)

A method according to claim 16, wherein the attestation process comprises:
transmitting an attestation request message from one of the first computing device and the second computing device to the trusted execution environment circuitry;
responsive to said attestation request message, transmitting an attestation token from the trusted execution environment circuitry to said one of the first computing device and the second computing device;
certifying the attestation token as genuine by the first computing device.

### Claim 18 (depends on 16)

A method according to claim 16, further comprising:
responsive to receiving the handshake message at the middlebox device, transmitting the handshake message with a first attestation token to a second middlebox device, the first attestation token being in respect of the trusted execution environment circuitry of the middlebox device;
responsive to receiving the handshake message at the second middlebox device, transmitting the handshake message with the first attestation token and a second attestation token to the second computing device, the second attestation token being in respect of the trusted execution environment circuitry of the second middlebox device;
by the second computing device, verifying the first and second attestation tokens and, based on the verifying, generating first attestation group key agreement information for a group key agreement; and
transmitting the handshake response message from the second computing device to the first computing device, via the second middlebox device and the middlebox device, with the first attestation group key agreement information.
transmitting the handshake response message from the second computing device to the second middlebox device, with the first attestation group key agreement information;
by the second middlebox device, generating second attestation group key agreement information for the group key agreement and transmitting the handshake response message to the middlebox device with the second attestation group key agreement information;
by the middlebox device, generating third attestation group key agreement information for the group key agreement and transmitting the handshake response message to the first computing device with the third attestation group key agreement information;
by the first computing device, verifying the third attestation group key information to complete the group key agreement.

### Claim 19 (depends on 18)

A method according to claim 18, comprising:
completing a second key agreement between the first computing device and the second computing device; and
by the first computing device and the second computing device, using a shared secret associated with the second key agreement to perform an integrity assurance in respect of messages transmitted between the first computing device and the second computing device.

### Claim 20

A first computing device comprising:
interface circuitry to communicate with a middlebox device;
session key determination circuitry to determine a cryptographic session key associated with a communication session between the first computing device and a second computing device, the communication session being conducted via the middlebox device; and
trusted execution environment circuitry to execute computer instructions to:
analyse plaintext content of encrypted messages to be transmitted to the second computing device via the middlebox device;
determine metadata for each encrypted message to be transmitted, the metadata for each message being indicative of an outcome of the analysing the plaintext content of that message; and
for each encrypted message to be transmitted, provide the metadata for that message to the interface circuitry for transmission, with that message, for the middlebox device to determine, based on the metadata, whether to block or allow transmission of that message.
