# US 2023/0069047 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/0069047 A1
- Document ID: US20230069047A1
- Status: Published application
- Kind: A1
- Application number: 17/889,798
- Filed: 2022-08-17
- Published: 2023-03-02
- Earliest claimed: 2021-09-01
- Assignees: Phytium Technology Co., Ltd.
- Applicants: Phytium Technology Co., Ltd.
- Inventors: Yanzhao FENG; Qiang DOU; Yufeng GUO; Ming ZHANG; Zhuo MA; Qiaoqiao HU; Yongpeng LIU
- Web page: https://patentgrep.com/patent/US20230069047A1

## CPC

- G06F 21/602: {Providing cryptographic facilities or services}
- G06F 21/74: operating in dual or compartmented mode, i.e. at least one secure mode
- G06F 9/468: {Specific access rights for resources, e.g. using capability register}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/5038: {considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration (scheduling strategies G06F9/4881 and subgroups)}
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 21/57: Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
- G06F 21/604: {Tools and structures for managing or administering access control systems}
- G06F 21/72: in cryptographic circuits
- G06F 2209/484: Precedence
- G06F 2209/5021: Priority
- G06F 2221/2105: Dual mode as a secondary aspect
- G06F 2221/2141: Access rights, e.g. capability lists, access control lists, access tables, access matrices
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A microprocessor comprising a cryptographic engine and a controller. The controller is connected to the cryptographic engine and configured to receive a plurality of access requests from a plurality of execution environments, respectively and respond to one of the plurality of access requests and instruct the cryptographic engine to execute a cryptographic algorithm.

## Claims

### Claim 1

A microprocessor comprising:
a cryptographic engine;
a controller connected to the cryptographic engine, and configured to:
receive a plurality of access requests from a plurality of execution environments, respectively; and
respond to one of the plurality of access requests and instruct the cryptographic engine to execute a cryptographic algorithm.

### Claim 2 (depends on 1)

The microprocessor of claim 1, wherein the controller is further configured to:
store a priority of each of the plurality of execution environments; and
based on the stored priority, respond preferentially to an access request from an execution environment with a highest priority.

### Claim 3 (depends on 1)

The microprocessor of claim 1, wherein:
the plurality of access requests include a first access request from a first execution environment and a second access request from a second execution environment;
a priority of the first execution environment is higher than a priority of the second execution environment; and
the controller is further configured to:
determine whether execution of a first cryptographic algorithm requested by the first access request is completed; and
in response to completion of the execution of the first cryptographic algorithm, respond to the second request and instruct the cryptographic engine to execute a second cryptographic algorithm requested by the second access request.

### Claim 4 (depends on 1)

The microprocessor of claim 1, wherein:
the plurality of access requests include a first access request from a first execution environment and a second access request from a second execution environment;
a priority of the first execution environment is lower than a priority of the second execution environment; and
the controller is further configured to:
determine whether storage of an intermediate cryptography operation result of the first cryptographic algorithm requested by the first access request is completed; and
in response to completion of the storage of the intermediate cryptography operation result, respond to the second access request, and instruct the cryptographic engine to execute a second cryptographic algorithm requested by the second access request.

### Claim 5 (depends on 4)

The microprocessor of claim 4, wherein the controller is further configured to:
determine whether execution of the second cryptographic algorithm requested by the second access request is completed; and
in response to completion of the execution of the second cryptographic algorithm, instruct the cryptographic engine to continue to execute the first cryptographic algorithm requested by the first access request based on the stored intermediate cryptography operation result.

### Claim 6 (depends on 1)

The microprocessor of claim 1, wherein the plurality of execution environments include at least one of trusted execution environment (TEE), rich execution environment (REE), and secure element (SE).

### Claim 7 (depends on 1)

The microprocessor of claim 1, further comprising:
a direct memory access (DMA) circuit;
wherein the controller is further configured to:
instruct the DMA circuit to transfer data required to execute the cryptographic algorithm; or
instruct the DMA circuit to transfer a result of execution of the cryptographic algorithm requested by the access request.

### Claim 8

A data processing method implemented by a microprocessor, comprising:
receiving, by a controller of the microprocessor, a plurality of access requests from a plurality of execution environments, respectively; and
responding, by the controller, to one of the plurality of access requests and instructing a cryptographic engine of the microprocessor to execute a cryptographic algorithm.

### Claim 9 (depends on 8)

The data processing method of claim 8, further comprising:
storing, by the controller, a priority of each of the plurality of execution environments; and
based on the stored priority, responding preferentially to an access request from an execution environment with a highest priority.

### Claim 10 (depends on 8)

The data processing method of claim 8,
wherein:
the plurality of access requests include a first access request from a first execution environment and a second access request from a second execution environment; and
a priority of the first execution environment is higher than a priority of the second execution environment;
the data processing method further comprising:
determining whether execution of a first cryptographic algorithm requested by the first access request is completed; and
in response to completion of the execution of the first cryptographic algorithm, responding to the second request and instructing the cryptographic engine to execute a second cryptographic algorithm requested by the second access request.

### Claim 11 (depends on 8)

The data processing method of claim 8,
wherein:
the plurality of access requests include a first access request from a first execution environment and a second access request from a second execution environment; and
a priority of the first execution environment is lower than a priority of the second execution environment;
the data processing method further comprising:
determining whether storage of an intermediate cryptography operation result of the first cryptographic algorithm requested by the first access request is completed; and
in response to completion of the storage of the intermediate cryptography operation result, responding to the second access request, and instructing the cryptographic engine to execute a second cryptographic algorithm requested by the second access request.

### Claim 12 (depends on 11)

The data processing method of claim 11, further comprising:
determining whether execution of the second cryptographic algorithm requested by the second access request is completed; and
in response to completion of the execution of the second cryptographic algorithm, instructing the cryptographic engine to continue to execute the first cryptographic algorithm requested by the first access request based on the stored intermediate cryptography operation result.

### Claim 13 (depends on 8)

The data processing method of claim 8, wherein the plurality of execution environments include at least one of trusted execution environment (TEE), rich execution environment (REE), and secure element (SE).

### Claim 14 (depends on 1)

The data processing method of claim 1, further comprising:
instructing, by the controller, a direct memory access (DMA) circuit to transfer data required to execute the cryptographic algorithm; or
instructing the DMA circuit to transfer a result of execution of the cryptographic algorithm requested by the access request.

### Claim 15

An electronic device comprising:
a processor,
a memory connected to the processor and configured to store instructions, when read by the processor, the instructions causing the processor to:
receive a plurality of access requests from a plurality of execution environments, respectively; and
respond to one of the plurality of access requests and instruct a cryptographic engine to execute a cryptographic algorithm.

### Claim 16 (depends on 15)

The electronic device of claim 15, wherein when read by the processor, the instructions further cause the processor to:
store a priority of each of the plurality of execution environments; and
based on the stored priority, respond preferentially to an access request from an execution environment with a highest priority.

### Claim 17 (depends on 15)

The electronic device of claim 15, wherein
the plurality of access requests include a first access request from a first execution environment and a second access request from a second execution environment;
a priority of the first execution environment is higher than a priority of the second execution environment; and
when read by the processor, the instructions further cause the processor to:
determine whether execution of a first cryptographic algorithm requested by the first access request is completed; and
in response to completion of the execution of the first cryptographic algorithm, respond to the second request and instruct the cryptographic engine to execute a second cryptographic algorithm requested by the second access request.

### Claim 18 (depends on 15)

The electronic device of claim 15, wherein:
the plurality of access requests include a first access request from a first execution environment and a second access request from a second execution environment;
a priority of the first execution environment is lower than a priority of the second execution environment; and
when read by the processor, the instructions further cause the processor to:
determine whether storage of an intermediate cryptography operation result of the first cryptographic algorithm requested by the first access request is completed; and
in response to completion of the storage of the intermediate cryptography operation result, responding to the second access request, and instruct the cryptographic engine to execute a second cryptographic algorithm requested by the second access request.

### Claim 19 (depends on 18)

The electronic device of claim 18, when read by the processor, the instructions further cause the processor to:
determine whether execution of the second cryptographic algorithm requested by the second access request is completed; and
in response to completion of the execution of the second cryptographic algorithm, instruct the cryptographic engine to continue to execute the first cryptographic algorithm requested by the first access request based on the stored intermediate cryptography operation result.

### Claim 20 (depends on 15)

The electronic device of claim 15, wherein the plurality of execution environments include at least one of trusted execution environment (TEE), rich execution environment (REE), and secure element (SE).
