# US 2023/0053821 A1 · System on a chip (soc) communications to prevent direct memory access (dma) attacks

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

- Number: US 2023/0053821 A1
- Document ID: US20230053821A1
- Status: Published application
- Kind: A1
- Application number: 18/048,302
- Filed: 2022-10-20
- Published: 2023-02-23
- Earliest claimed: 2019-11-15
- Assignees: Meta Platforms Technologies, LLC
- Applicants: Meta Platforms Technologies, LLC
- Inventors: Sudhir Satpathy; Wojciech Stefan Powiertowski; Neeraj Upasani; Dinesh Patil
- Web page: https://patentgrep.com/patent/US20230053821A1

## CPC

- G06F 12/1408: {by using cryptography (for digital transmission H04L9/00)}
- G06F 12/1433: {for a module or a part of a module}
- G02B 27/017: {Head mounted}
- G06F 12/1081: for peripheral access to main memory, e.g. direct memory access [DMA]
- G06F 15/7807: {System on chip, i.e. computer system on a single chip; System in package, i.e. computer system on one or more chips in a single package}
- G06F 21/606: {by securing the transmission between two devices or processes}
- G06T 19/006: {Mixed reality (object pose determination, tracking or camera calibration for mixed reality G06T7/00)}
- H04L 63/0435: {wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption (cryptographic mechanisms or cryptographic arrangements for symmetric key encryption H04L9/06)}
- H04W 12/03: Protecting confidentiality, e.g. by encryption
- G06F 2212/1052: Security improvement
- H04L 63/126: {the source of the received data}
- H04W 12/108: Source integrity
- H04W 12/33: using wearable devices, e.g. using a smartwatch or smart-glasses
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G02B: OPTICAL ELEMENTS, SYSTEMS OR APPARATUS
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

This disclosure describes system on a chip (SOC) communications that prevent direct memory access (DMA) attacks. An example SoC includes an encryption engine and a security processor. The encryption engine is configured to encrypt raw input data using a cipher key to form an encrypted payload. The security processor is configured to select the cipher key from a key store holding a plurality of cipher keys based on a channel ID describing a {source subsystem, destination subsystem} tuple for the encrypted payload, to form an encryption header that includes the channel ID, to encapsulate the encrypted payload with the encryption header that includes the channel ID to form a crypto packet, and to transmit the crypto packet to a destination SoC that is external to the SoC.

## Claims

### Claim at position 1

1-22. (canceled)

### Claim 23

A method comprising:
selecting, by one or more processors, a cipher key from a key store holding a plurality of cipher keys based on a channel ID describing source and destination information for encrypted payload;
forming, by the one or more processors, an encryption header that includes the channel ID;
encapsulating the encrypted payload with the encryption header that includes the channel ID to form an encrypted packet; and
transmitting, by the security processor, the encrypted packet to a destination SoC.

### Claim 24 (depends on 23)

The method of claim 23, wherein selecting the cipher key based on the channel ID further includes selecting the cipher key on a unique per-channel ID basis.

### Claim 25 (depends on 23)

The method of claim 23, wherein the security processor is configured to identify the channel ID at least in part by identifying, from a plurality of subsystems of the SoC, the source subsystem that originated the raw input data.

### Claim 26 (depends on 25)

The method of claim 25, further comprising a direct memory access (DMA) engine configured to load the raw input data from an address memory reserved for the source subsystem in a shared memory (SMEM) to a wireless memory (WMEM) of the SoC.

### Claim 27 (depends on 23)

The method of claim 23, wherein the SoC is coupled to an egress interface, and wherein to transmit the crypto packet to the destination SoC, the security processor is further configured to transmit the crypto packet to the destination SoC via the egress interface.

### Claim 28 (depends on 23)

The method of claim 23, wherein the SoC comprises a source SoC, and wherein to form the encryption header, the security processor is further configured to include a source SoC-identifier in the encryption header.

### Claim 29 (depends on 28)

The method of claim 28, wherein the security processor is further configured to:
apply the cipher key to the source SoC-identifier and the channel ID to form a cryptographic signature; and
sign the encryption header and encrypted payload of the crypto packet using the cryptographic signature.

### Claim 30 (depends on 23)

The method of claim 23, wherein the SoC is integrated into one of a head-mounted device (HMD) of an artificial reality system or a peripheral device of the artificial reality system.

### Claim 31 (depends on 23)

The method of claim 23, wherein the destination SOC is external to the SoC.

### Claim 32 (depends on 23)

The method of claim 23, wherein transmitting the encrypted packet to the destination SoC further includes transmitting the encrypted packet to a destination SoC via an egress interface.

### Claim 33

A method comprising:
receiving an encapsulated encrypted packet including an encryption header and encrypted payload, wherein the encryption header includes a channel ID describing source and destination information for the encrypted payload;
decapsulating the encapsulated encrypted packet to obtain the encryption header and the encrypted payload;
parsing the encryption header to obtain the channel ID describing the source and destination information for the encrypted payload; and
selecting a decryption key from a key store holding a plurality of decryption keys based on the channel ID obtained from the encryption header.

### Claim 34 (depends on 33)

The method of claim 33, further comprising:
decrypting the encrypted payload using the decryption key to form a decrypted payload.

### Claim 35 (depends on 33)

The method of claim 33, wherein selecting the decryption key further includes selecting the decryption key on a unique per-channel ID basis.

### Claim 36 (depends on 33)

The method of claim 33, wherein receiving an encapsulated encrypted packet further includes receiving an encapsulated encrypted packet via an ingress interface.
