# US 2023/0069781 A1 · Microprocessor, data processing method, electronic device, and storage medium

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

- Number: US 2023/0069781 A1
- Document ID: US20230069781A1
- Status: Published application
- Kind: A1
- Application number: 17/889,880
- Filed: 2022-08-17
- Published: 2023-03-02
- Earliest claimed: 2021-09-01
- Assignees: Phytium Technology Co., Ltd.
- Applicants: Phytium Technology Co., Ltd.
- Inventors: Yufeng GUO; Qiang DOU; Yanzhao FENG; Zhuo MA; Ming ZHANG; Qingshan ZHU; Jianyue WANG; Qiang DENG
- Web page: https://patentgrep.com/patent/US20230069781A1

## CPC

- G06F 12/1408: {by using cryptography (for digital transmission H04L9/00)}
- G06F 21/602: {Providing cryptographic facilities or services}
- G06F 12/1441: {for a range}
- G06F 21/604: {Tools and structures for managing or administering access control systems}
- G06F 21/74: operating in dual or compartmented mode, i.e. at least one secure mode
- G06F 12/0857: {by multiple requestors}
- G06F 2212/1052: Security improvement
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A microprocessor includes a cryptographic engine, M buffer units, and a controller. The cryptographic engine is configured to execute cryptographic algorithms. The M buffer units are configured to cache data required by an access request of a corresponding execution environment. M is an integer greater than or equal to 1. The controller is connected to the cryptographic engine and the M buffer units. The controller is configured to receive the access request from a first execution environment and instruct the cryptographic engine to execute the cryptographic algorithm requested by the access request using the required data cached by the buffer unit corresponding to the first execution environment from which the access request comes. The access request is used to access the cryptographic engine to execute a cryptographic algorithm. The first execution environment is one execution environment among N execution environments. N is an integer greater than or equal to 1.

## Claims

### Claim 1

A microprocessor comprising:
a cryptographic engine configured to execute cryptographic algorithms;
M buffer units configured to cache data required by an access request of a corresponding execution environment, M being an integer greater than or equal to 1;
a controller connected to the cryptographic engine and the M buffer units, the controller being configured to:
receive the access request from a first execution environment, the access request being used to access the cryptographic engine to execute a cryptographic algorithm, the first execution environment being one execution environment among N execution environments, N being an integer greater than or equal to 1; and
instruct the cryptographic engine to execute the cryptographic algorithm requested by the access request using the required data cached by the buffer unit corresponding to the first execution environment from which the access request comes.

### Claim 2 (depends on 1)

The microprocessor of claim 1, wherein:
the M buffer units are separated from each other when M is greater than 1.

### Claim 3 (depends on 1)

The microprocessor of claim 1, wherein:
the M buffer units are in one-to-one correspondence with the N execution environments when M equals to N.

### Claim 4 (depends on 1)

The microprocessor of claim 1, wherein:
the N buffer units in the M buffer units in one-to-one correspondence with the N execution environments when N is greater than 1, M is greater than 1, and N is less than M.

### Claim 5 (depends on 1)

The microprocessor of claim 1, wherein:
one or more of the N execution environments corresponds to one buffer unit of the M buffer units when N is greater than 1, M is greater than 1, and N is greater than M.

### Claim 6 (depends on 5)

The microprocessor of claim 5, wherein:
a difference between priorities of multiple execution environments corresponding to one buffer unit is less than a predetermined threshold.

### Claim 7 (depends on 6)

The microprocessor of claim 6, wherein:
the N execution environments include one or more of a trusted execution environment TEE, a common execution environment REE, and a security subsystem SE.

### Claim 8 (depends on 1)

The microprocessor of claim 1, further comprising:
a direct memory access (DMA) unit, wherein the controller is further configured to:
instruct the DMA unit to transfer data required to perform the cryptographic algorithm; or,
instruct the DMA unit to transfer result of performing the electronic device for the access request.

### Claim 9

A data processing method implemented by a microprocessor, the microprocessor comprising:
a cryptographic engine configured to execute cryptographic algorithms;
M buffer units configured to cache data required by an access request of a corresponding execution environment, M being an integer greater than or equal to 1;
a controller connected to the cryptographic engine and the M buffer units, the data processing method causing the controller to:
receive the access request from a first execution environment, the access request being used to access the cryptographic engine to execute a cryptographic algorithm, the first execution environment being one execution environment among N execution environments, N being an integer greater than or equal to 1; and
instruct the cryptographic engine to execute the cryptographic algorithm requested by the access request using the required data cached by the buffer unit corresponding to the first execution environment from which the access request comes from.

### Claim 10 (depends on 9)

The data processing method of claim 9, wherein:
the M buffer units are separated from each other when M is greater than 1.

### Claim 11 (depends on 9)

The data processing method of claim 9, wherein:
the M buffer units are in one-to-one correspondence with the N execution environments when M equals to N.

### Claim 12 (depends on 9)

The data processing method of claim 9, wherein:
the N buffer units in the M buffer units in one-to-one correspondence with the N execution environments when N is greater than 1, M is greater than 1, and N is less than M.

### Claim 13 (depends on 9)

The data processing method of claim 9, wherein:
one or more of the N execution environments corresponds to one buffer unit of the M buffer units when N is greater than 1, M is greater than 1, and N is greater than M.

### Claim 14 (depends on 13)

The data processing method of claim 13, wherein:
a difference between priorities of multiple execution environments corresponding to one buffer unit is less than a predetermined threshold.

### Claim 15 (depends on 9)

The data processing method of claim 9, wherein:
the N execution environments include one or more of a trusted execution environment TEE, a common execution environment REE, and a security subsystem SE.

### Claim 16 (depends on 9)

The data processing method of claim 9, wherein:
the microprocessor further includes a direct memory access (DMA) unit, and the data processing method further causes the controller to:
instruct the DMA unit to transfer data required to perform the cryptographic algorithm; or,
instruct the DMA unit to transfer result of performing the electronic device for the access request.

### Claim 17

A non-transitory computer-readable storage medium comprising:
a plurality of computer program codes that, when being executed by a processor, cause the processor to:
receive an access request from a first execution environment, the access request being used to access a cryptographic engine to execute a cryptographic algorithm, the first execution environment being one execution environment among N execution environments, N being an integer greater than or equal to 1; and
instruct the cryptographic engine to execute a cryptographic algorithm requested by the access request using required data cached by a buffer unit corresponding to the first execution environment from which the access request comes.

### Claim 18 (depends on 17)

The computer-readable storage medium of claim 17, wherein:
the M buffer units are separated from each other when M is greater than 1.

### Claim 19 (depends on 17)

The computer-readable storage medium of claim 17, wherein:
the M buffer units are in one-to-one correspondence with the N execution environments when M equals to N.

### Claim 20 (depends on 17)

The computer-readable storage medium of claim 17, wherein:
the N execution environments include one or more of a trusted execution environment TEE, a common execution environment REE, and a security subsystem SE.
