# US 2024/0004803 A1 · Secure element and electronic device including the same

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

- Number: US 2024/0004803 A1
- Document ID: US20240004803A1
- Status: Published application
- Kind: A1
- Application number: 18/342,969
- Filed: 2023-06-28
- Published: 2024-01-04
- Earliest claimed: 2022-06-29
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Sunghyun KIM; Keunyoung PARK
- Web page: https://patentgrep.com/patent/US20240004803A1

## CPC

- G06F 12/1408: {by using cryptography (for digital transmission H04L9/00)}
- G06F 13/28: using burst mode transfer, e.g. direct memory access {DMA}, cycle steal (G06F13/32 takes precedence)
- G06F 21/72: in cryptographic circuits
- H04L 9/3242: {involving keyed hash functions, e.g. message authentication codes [MACs], CBC-MAC or HMAC}
- G06F 21/71: to assure secure computing or processing of information
- G06F 21/79: in semiconductor storage media, e.g. directly-addressable memories
- G06F 2212/1052: Security improvement
- H04L 63/10: {for controlling access to devices or network resources}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A secure element (SE) coupled to a system-on-chip (SoC) includes an internal memory, virtual secure direct memory access (DMA) circuitry configured to perform a secure operation using an external memory connected to the SoC in association with the internal memory, and SE interface circuitry configured to output secure data and a write request generated by the virtual secure DMA circuitry to the SoC, the secure data being stored in the external memory.

## Claims

### Claim 1

A secure element (SE) coupled to a system-on-chip (SoC), the SE comprising:
an internal memory;
virtual secure direct memory access (DMA) circuitry configured to perform a secure operation using an external memory connected to the SoC in association with the internal memory; and
SE interface circuitry configured to output first secure data and a write request generated by the virtual secure DMA circuitry to the SoC,
the first secure data being stored in the external memory.

### Claim 2 (depends on 1)

The SE of claim 1, wherein the virtual secure DMA circuitry is configured to
perform a hash operation using a hash key on a first packet including first data and an anti-replay counter (ARC) to generate a first tag and
perform an encryption operation using an encryption key on a second packet including the first tag and the first data to generate the first secure data.

### Claim 3 (depends on 2)

The SE of claim 2, wherein the internal memory includes a non-volatile memory storing an ARC table including the ARC.

### Claim 4 (depends on 3)

The SE of claim 3, wherein
the SE interface circuitry is configured to output second secure data received from the SoC to the virtual secure DMA circuitry in response to a read request for the first secure data, and
the virtual secure DMA circuitry is configured to perform a decryption operation using a decryption key on the second secure data to generate a third packet including second data and a second tag, perform a hash operation using the hash key on a fourth packet including the second data and the ARC read from the non-volatile memory to generate a third tag, and perform integrity verification on the second data by comparing the second tag with the third tag.

### Claim 5

(canceled)

### Claim 6 (depends on 1)

The SE of claim 1, wherein
the internal memory includes:
a cache memory configured to store a plurality of secure applications; and
a non-volatile memory configured to store hash keys, encryption keys, and ARC tables corresponding to each of the plurality of secure applications.

### Claim 7 (depends on 6)

The SE of claim 6, wherein
the SE interface circuitry includes a plurality of SE interfaces, and
the virtual secure DMA circuitry is configured to
select one of the plurality of SE interfaces for communication with the SoC, and
perform a secure operation based on an executed secure application, among the plurality of secure applications.

### Claim 8 (depends on 7)

The SE of claim 7, wherein
the plurality of SE interfaces are configured to support different communication rates, and
the virtual secure DMA circuitry is configured to select any one of the plurality of SE interfaces based on a data update frequency of the executed secure application.

### Claim 9

(canceled)

### Claim 10 (depends on 6)

The SE of claim 6, wherein
the virtual secure DMA circuitry includes a plurality of submodules configured to perform a secure operation based on each of executed secure applications among the plurality of secure applications, and
the SE interface circuitry includes a plurality of SE interfaces that are respectively dedicated to the plurality of submodules and configured to perform communication with the SoC.

### Claim 11 (depends on 6)

The SE of claim 6, wherein
the SE interface circuitry includes a plurality of SE interfaces configured to perform communication with the SoC, and
the virtual secure DMA circuitry includes:
a plurality of submodules configured to perform a secure operation based on each of executed secure applications among the plurality of secure applications; and
a switching module configured to control a connection between the plurality of submodules and the plurality of SE interfaces.

### Claim 12 (depends on 1)

The SE of claim 1, further comprising:
a memory management unit (MMU) configured to determine whether an available page exists in the internal memory using a translation lookaside buffer (TLB),
wherein the virtual secure DMA circuitry is configured to perform the secure operation based on a result of the determination.

### Claim 13

(canceled)

### Claim 14 (depends on 1)

The SE of claim 1, further comprising:
a pin configured to receive a signal indicating whether the external memory is available from the SoC,
wherein the virtual secure DMA circuitry is configured to perform the secure operation based on the signal.

### Claim 15

An electronic device comprising:
an external memory;
a system-on-chip (SoC) coupled to the external memory; and
a first secure element (SE) coupled to the SoC,
the first SE including:
first SE interface circuitry configured to transmit first secure data to the SoC to write the first secure data to the external memory and receive the first secure data read from the external memory, from the SoC; and
first virtual secure DMA circuitry configured to generate the first secure data and perform a verification operation on the first secure data.

### Claim 16 (depends on 15)

The electronic device of claim 15, wherein
the SoC includes:
first interface circuitry configured to transmit and receive the first secure data to and from the first SE interface circuitry;
a first input/output (I/O) interface circuitry configured to transmit and receive the first secure data to and from the external memory; and
first DMA circuitry configured to control writing of the first secure data to and reading of the first secure data from the external memory.

### Claim 17 (depends on 15)

The electronic device of claim 15, further comprising:
a second SE coupled to the SoC,
wherein the second SE includes:
second SE interface circuitry configured to transmit second secure data to the SoC to write the second secure data to the external memory and receive the second secure data read from the external memory, from the SoC; and
second virtual secure DMA circuitry configured to generate the second secure data and perform a verification operation on the second secure data.

### Claim 18 (depends on 17)

The electronic device of claim 17, wherein the external memory includes:
a first memory region for the first SE; and
a second memory region for the second SE and physically or logically separated from the first memory region.

### Claim 19

(canceled)

### Claim 20 (depends on 15)

The electronic device of claim 15, wherein
the first SE further includes a non-volatile memory configured to store a hash key, an encryption key, and an anti-replay counter (ARC) table,
the first virtual secure DMA circuitry is configured to generate the first secure data based on a set ARC and the hash key and the encryption key read from the non-volatile memory, and
the set ARC is included in the ARC table.

### Claim 21

(canceled)

### Claim 22 (depends on 15)

The electronic device of claim 15, wherein the first SE includes:
a cache memory configured to store a plurality of secure applications; and
a non-volatile memory configured to store hash keys, encrypt keys, and ARC tables corresponding to each of the plurality of secure applications.

### Claim 23 (depends on 22)

The electronic device of claim 22, wherein the first virtual secure DMA circuitry is configured to perform a generation operation or a verification operation on the first secure data based on an executed secure application among the plurality of secure applications.

### Claim 24 (depends on 23)

The electronic device of claim 23, wherein
the first SE interface circuitry includes a plurality of SE interfaces, and
the first virtual secure DMA circuitry is configured to select any one of the plurality of SE interfaces based on the executed secure application for communication with the SoC.

### Claim at position 25

25-26. (canceled)

### Claim 27

An electronic device comprising:
a first external memory;
a second external memory;
a first integrated circuit (IC) coupled to the first external memory; and
a second IC coupled to the second external memory,
the first IC including:
first interface circuitry configured to transmit first secure data to the second IC to write the first secure data to the second external memory and receive the first secure data read from the second external memory, from the second IC; and
first virtual secure direct memory access (DMA) circuitry configured to generate the first secure data in a generation operation and perform a verification operation on the first secure data.

### Claim at position 27

28-30. (canceled)
