CN109784098B - Encryption device of AI accelerator and data processing method thereof - Google Patents

Encryption device of AI accelerator and data processing method thereof Download PDF

Info

Publication number
CN109784098B
CN109784098B CN201910064863.8A CN201910064863A CN109784098B CN 109784098 B CN109784098 B CN 109784098B CN 201910064863 A CN201910064863 A CN 201910064863A CN 109784098 B CN109784098 B CN 109784098B
Authority
CN
China
Prior art keywords
data
unit
instruction
decryption
operator
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910064863.8A
Other languages
Chinese (zh)
Other versions
CN109784098A (en
Inventor
马爱永
赵修齐
袁涛
王洪利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Goke Microelectronics Co Ltd
Original Assignee
Hunan Goke Microelectronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Goke Microelectronics Co Ltd filed Critical Hunan Goke Microelectronics Co Ltd
Priority to CN201910064863.8A priority Critical patent/CN109784098B/en
Publication of CN109784098A publication Critical patent/CN109784098A/en
Application granted granted Critical
Publication of CN109784098B publication Critical patent/CN109784098B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application discloses an encryption device of an AI accelerator and a data processing method thereof, which are used for respectively carrying out encryption and decryption on data used by the AI accelerator, including operator data, network coefficients and data after AI operator operation, and completing data operation processing. The encryption device of the AI accelerator encrypts the data used by the AI accelerator, and even if the data used by the AI accelerator is received by an abnormal user, the data is only ciphertext data and plaintext data cannot be obtained, so that the data is kept secret, the safety characteristic of the AI accelerator is improved, and the using process of the data is safer.

Description

Encryption device of AI accelerator and data processing method thereof
Technical Field
The present disclosure relates to the field of computer integrated circuits, and more particularly, to an encryption apparatus for an AI accelerator and a data processing method thereof.
Background
AI (Artificial Intelligence) is a technical science that studies and develops theories, methods, techniques and application systems for simulating, extending and expanding human Intelligence. At present, AI technology has been widely applied, including intelligent robots, image recognition, voice recognition, intelligent sensing, unmanned driving, and the like. Of course, the development of AI technology also requires the development and motivation of related industrial applications, such as modules for specially handling a large number of computational tasks in artificial intelligence, i.e., AI chips. The AI chip is the basic cell of artificial intelligence, and its development can advance the development of the whole industry.
The AI chip, also known as AI accelerator or computing card, is a module dedicated to handling a large number of computing tasks in artificial intelligence applications (other non-computing tasks are still handled by the traditional chip CPU), and is mainly classified into GPU, FPGA, ASIC. Compared with the traditional architecture-based processors such as a CPU (central processing unit), a DSP (digital signal processor), a GPU (graphics processing unit) and the like for realizing acceleration of the AI operator, the special AI hardware accelerator has more advantages in the aspects of energy efficiency ratio and hardware resource utilization rate, so that chip manufacturers and algorithm companies in various places develop corresponding AI accelerators according to own requirements, and accordingly, the AI accelerators are widely applied.
With the increasing application of the AI accelerator, a large amount of data is put on the AI accelerator for processing, including a large amount of personal information, such as privacy information of images, sounds, locations, and the like. Therefore, the issue of whether data is secure becomes increasingly prominent. However, the current development of the AI accelerator mainly focuses on the implementation of the AI acceleration function, and the data security is not much related. Therefore, there is a need for an AI accelerator having a supported safety feature to improve the safety feature of the AI accelerator.
Disclosure of Invention
The application provides an encryption device of an AI accelerator and a data processing method thereof, which are used for solving the problem that the conventional AI accelerator does not support the safety characteristic.
The application provides an encryption device of an AI accelerator, which comprises a data request unit, a data decryption unit, an AI operator unit and a data encryption unit which are connected in sequence;
the data request unit is used for sending a data request signal, receiving valid data and generating a data decryption instruction to the data decryption unit;
the data decryption unit is used for decrypting the effective data to obtain decrypted data and sending a data operation instruction to the AI operator unit;
the AI operator unit is used for calculating the decrypted data to obtain operation data and sending a data decryption instruction to the data encryption unit;
and the data encryption unit is used for encrypting the operation data to obtain encrypted data.
Optionally, an output end of the data encryption unit is connected to a data sending unit, and the data sending unit is configured to send encrypted data.
Optionally, the data request unit specifically includes,
the idle signal receiving module is used for receiving the operation idle signal sent by the AI operator unit;
the request signal sending module is used for sending a data request signal when receiving the operation idle signal;
the system comprises an effective data receiving module, a data processing module and a data processing module, wherein the effective data receiving module is used for receiving effective data, and the effective data comprises effective information data and effective operator instructions;
and the decryption instruction sending module is used for sending a data decryption instruction to the data decryption unit.
Optionally, the data decryption unit specifically includes,
the decryption instruction receiving module is used for receiving the data decryption instruction sent by the data request unit;
the valid data reading module is used for reading valid data from the data request unit;
the data decryption module is used for decrypting the read effective data to obtain decrypted data, wherein the decrypted data comprises decrypted information data and a decryption operator instruction;
and the operation instruction sending module is used for sending a data operation instruction to the AI operator unit.
Optionally, the AI operator units specifically include,
the operation instruction receiving module is used for receiving the data operation instruction sent by the data decryption unit; the decryption data reading module is used for reading decryption data from the data decryption unit when a data operation instruction is received, wherein the decryption data comprises decryption information data and a decryption operator instruction; the operator control module is used for controlling the operator operation module to operate the decrypted data; the operator operation module is used for operating the decryption information data according to the decryption operator instruction under the control of the operator control module to obtain operation data; the operation instruction sending module is used for sending a data encryption instruction to the data encryption unit; the idle signal sending module is used for sending an operation idle signal to the data request unit when no data is processed;
the data encryption unit specifically comprises a data encryption unit,
the encryption instruction receiving module is used for receiving a data encryption instruction sent by the AI operator unit; the operation data reading module is used for reading operation data from the AI operator unit when a data encryption instruction is received; the data encryption module is used for encrypting the operation data to obtain encrypted data; the encryption instruction sending module is used for generating a data sending instruction to the data sending unit;
the data transmission unit specifically includes a data transmission unit,
the encryption instruction receiving module is used for receiving a data sending instruction sent by the data encryption unit; the encrypted data reading module is used for reading the encrypted data from the data encryption unit when receiving the data sending instruction; and the encrypted data sending module is used for sending the encrypted data when the encrypted data is obtained.
The application also provides a data processing method based on the acceleration of the AI operator, which comprises the following steps,
the data request unit sends a data request signal, receives valid data and generates a data decryption instruction to the data decryption unit;
the data decryption unit decrypts the effective data to obtain decrypted data and sends a data operation instruction to the AI operator unit;
the AI operator unit calculates the decrypted data to obtain operation data and sends a data encryption instruction to the data encryption unit;
the data encryption unit encrypts the operation data to obtain encrypted data.
Optionally, the obtaining of the encrypted data further comprises the data sending unit sending the encrypted data.
Optionally, the data request unit sends a data request signal, receives valid data, and generates a data decryption instruction to the data decryption unit, specifically including,
the idle signal receiving module receives an operation idle signal sent by the AI operator unit;
when receiving the operation idle signal, the request signal sending module sends a data request signal;
the effective data receiving module receives effective data, wherein the effective data comprises effective information data and effective operator instructions;
and the effective instruction sending module sends a data decryption instruction to the data decryption unit.
Optionally, the data decryption unit decrypts the valid data to obtain decrypted data, and sends a data operation instruction to the AI operator unit, specifically including,
the effective instruction receiving module receives a data decryption instruction sent by the data request unit;
the effective data reading module reads effective data from the data request unit;
the data decryption module decrypts the read effective data to obtain decrypted data, wherein the decrypted data comprises decrypted information data and a decryption operator instruction;
and the decryption instruction sending module sends a data operation instruction to the AI operator unit.
Optionally, the AI operator unit calculates the decrypted data to obtain operation data, and sends a data encryption instruction to the data encryption unit, specifically including,
the decryption instruction receiving module receives a data operation instruction sent by the data decryption unit; when a data budget instruction is received, a decrypted data reading module reads decrypted data from a data decryption unit, wherein the decrypted data comprises decrypted information data and a decryption operator instruction; the operator control module controls the operator operation module to operate the decrypted data; the operator operation module operates the decryption information data according to the decryption operator instruction under the control of the operator control module to obtain operation data; the operation instruction sending module sends a data encryption instruction to the data encryption unit; when no data is processed, the idle signal sending module sends an operation idle signal to the data request unit;
the data encryption unit encrypts the operation data to obtain encrypted data, and specifically comprises,
the operation instruction receiving module receives a data encryption instruction sent by the AI operator unit; when a data encryption instruction is received, the operation data reading module reads operation data from the AI operator unit; the data encryption module encrypts the operation data to obtain encrypted data; the encryption instruction sending module generates a data sending instruction to the data sending unit;
the data transmission unit transmits the encrypted data, specifically including,
the encryption instruction receiving module receives a data sending instruction sent by the data encryption unit;
when a data sending instruction is received, the encrypted data reading module reads the encrypted data from the data encryption unit;
when the encrypted data is obtained, the encrypted data transmitting module transmits the encrypted data.
The application provides an encryption device of an AI accelerator and a data processing method thereof, which are used for respectively carrying out encryption and decryption on data used by the AI accelerator, including operator data, network coefficients and data after AI operator operation, and completing data operation processing. The encryption device of the AI accelerator encrypts the data used by the AI accelerator, and even if the data used by the AI accelerator is received by an abnormal user, the data is only ciphertext data and plaintext data cannot be obtained, so that the data is kept secret, the safety characteristic of the AI accelerator is improved, and the using process of the data is safer.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments are briefly described below, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic structural diagram of an encryption device of an AI accelerator according to the present application;
FIG. 2 is a flowchart illustrating the operation of a data request unit according to the present application;
FIG. 3 is a flowchart illustrating the operation of the data decryption unit of the present application;
FIG. 4 is a flowchart illustrating the operation of the AI operator unit according to the present application;
FIG. 5 is a flowchart illustrating the operation of the data encryption unit of the present application;
fig. 6 is a flowchart illustrating the operation of the data transmission unit according to the present application.
The reference numerals in fig. 1-6 refer to: 1-a data request unit, 2-a data decryption unit, 3-an operator unit, 4-a data encryption unit and 5-a data transmission unit.
Detailed Description
The application provides an encryption device of an AI accelerator, which is used for data used by the AI accelerator, comprising operator data, network coefficients and data after AI operator operation, respectively carrying out encryption and decryption processing, and completing data operation processing. Fig. 1 is a schematic structural diagram of an encryption apparatus of an AI accelerator according to the present application, and as shown in fig. 1, the encryption apparatus of the AI accelerator includes a data request unit 1, a data decryption unit 2, an AI operator unit 3, a data encryption unit 4, and a data transmission unit 5, which are connected in sequence.
The data request unit 1 is configured to send a data request signal to a CPU, a memory controller, or a shared storage unit of the AI accelerator when receiving an operation idle signal sent by the AI operator unit 3, and send a data decryption instruction to the data decryption unit 2 when receiving valid data sent by the CPU, the memory controller, or the shared storage unit, where the valid data includes valid information data and a valid operator instruction.
The data decryption unit 2 is configured to, when receiving a data decryption instruction, decrypt the valid data to obtain decrypted data, and send a data operation instruction to the AI operator unit 3, where the decrypted data includes decryption information data and a decryption operator instruction.
The AI operator unit 3 is used for calculating the decryption information data according to the decryption operator instruction when receiving the data operation instruction, obtaining operation data, and sending a data encryption instruction to the data encryption unit 4.
The data encryption unit 4 is configured to, when receiving the data encryption instruction, perform encryption processing on the arithmetic data to obtain encrypted data, and send a data transmission instruction to the data transmission unit 5.
The data transmission unit 5 is configured to transmit the encrypted data to a CPU, a memory controller, or a shared memory unit of the AI accelerator upon receiving the data transmission instruction.
In this embodiment, the data request unit specifically includes an idle signal receiving module, a request signal sending module, an effective data receiving module, and an effective instruction sending module. Fig. 2 is a flowchart illustrating the operation of the data request unit of the present application, and as shown in fig. 2, the idle signal receiving module receives the operation idle signal sent by the AI operator unit 3; the request signal sending module sends a data request signal to a CPU, a memory controller or a shared storage unit of the AI accelerator; the effective data receiving module receives effective data sent by a CPU (central processing unit), a memory controller or a shared storage unit of the AI accelerator; when the effective data is received, the effective instruction sending module sends a data decryption instruction to the data decryption unit.
In this embodiment, the data decryption unit specifically includes an effective instruction receiving module, an effective data reading module, a data decryption module, and a decryption instruction sending module. Fig. 3 is a flowchart illustrating the operation of the data decryption unit of the present application, and as shown in fig. 3, the valid command receiving module receives the data decryption command sent by the data request unit; when a data decryption instruction is received, the effective data reading module reads effective data from the data request unit; the data decryption module decrypts the read effective data to obtain decrypted data; and when the decrypted data is obtained, the decryption instruction sending module sends a data operation instruction to the AI operator unit.
In this embodiment, the AI operator unit specifically includes a decryption instruction receiving module, a decryption data reading module, an operator operation module, an operator control module, and an operation instruction transmitting module. Fig. 4 is a flowchart of an AI operator unit according to the present application, and as shown in fig. 4, the decryption instruction receiving module receives a data operation instruction sent by the data decryption unit; when a data operation instruction is received, the decrypted data reading module reads the decrypted data from the data decryption unit; the operator control module controls the operator operation module to operate the decrypted data; under the control of the operator control module, the operator operation module operates the decryption information data according to the decryption operator instruction to obtain operation data; and the operation instruction sending module sends a data encryption instruction to the data encryption unit. In this embodiment, the AI operator unit further includes an idle signal sending module, and when there is no data processing in the AI operator unit, the idle signal sending module sends an operation idle signal to the data request unit 1.
In this embodiment, the data encryption unit specifically includes an operation instruction receiving module, an operation data reading module, a data encryption module, and an encryption instruction sending module. Fig. 5 is a flowchart of a data encryption unit according to the present application, and as shown in fig. 5, the operation instruction receiving module receives a data encryption instruction sent by the AI operator unit; when a data encryption instruction is received, the operation data reading module reads operation data from the AI operator unit; the data encryption module encrypts the operation data to obtain encrypted data; when the encrypted data is obtained, the encryption instruction sending module generates a data sending instruction to the data sending unit.
In this embodiment, the data sending unit specifically includes an encrypted instruction receiving module, an encrypted data reading module, and an encrypted data sending module. Fig. 6 is a flowchart of the data sending unit of the present application, and as shown in fig. 6, the encryption command receiving module receives a data sending command sent by the data encryption unit; when a data sending instruction is received, the encrypted data reading module reads the encrypted data from the data encryption unit; when the encrypted data is obtained, the encrypted data transmitting module transmits the encrypted data to a CPU, a memory controller, or a shared memory unit of the AI accelerator.
The application also provides a data processing method based on the acceleration of the AI operator, which comprises the following steps,
step S100, a data request unit sends a data request signal, receives valid data and generates a data decryption instruction to a data decryption unit;
step S200, the data decryption unit decrypts the effective data to obtain decrypted data and sends a data operation instruction to the AI operator unit;
step S300, the AI operator unit calculates the decrypted data to obtain operation data and sends a data encryption instruction to the data encryption unit;
in step S400, the data encryption unit encrypts the operation data to obtain encrypted data.
In this application, after obtaining the encrypted data, the method further includes step S500, in which the data transmitting unit transmits the encrypted data.
In this embodiment, in step S100, the data request unit sends a data request signal, receives valid data, and generates a data decryption command to the data decryption unit, which specifically includes,
step S101, an idle signal receiving module receives an operation idle signal sent by an AI operator unit;
step S102, the request signal sending module sends a data request signal to a CPU, a memory controller or a shared storage unit of the AI accelerator;
step S103, the effective data receiving module receives effective data sent by a CPU (central processing unit), a memory controller or a shared storage unit of the AI accelerator, wherein the effective data comprises effective information data and effective operator instructions;
step S104, the effective instruction sending module sends a data decryption instruction to the data decryption unit.
In this embodiment, in step S200, the data decryption unit decrypts the valid data to obtain decrypted data, and sends a data operation instruction to the AI operator unit, which specifically includes,
s201, an effective instruction receiving module receives a data decryption instruction sent by a data request unit;
s202, the effective data reading module reads effective data from the data request unit;
s203, the data decryption module decrypts the read effective data to obtain decrypted data, wherein the decrypted data comprises decrypted information data and a decryption operator instruction;
and S204, when the decrypted data is obtained, the decryption instruction sending module sends a data operation instruction to the AI operator unit.
In this embodiment, in step S300, the AI operator unit calculates the decrypted data to obtain operation data, and sends a data encryption instruction to the data encryption unit, specifically including,
step S301, a decryption instruction receiving module receives a data operation instruction sent by a data decryption unit;
step S302, when a data operation instruction is received, a decrypted data reading module reads decrypted data from a data decryption unit, wherein the decrypted data comprises decrypted information data and a decryption operator instruction;
step S303, the operator control module controls the operator operation module to operate the decrypted data;
step S304, the operator operation module operates the decryption information data according to the decryption operator instruction under the control of the operator control module to obtain operation data;
in step S305, the operation instruction sending module sends a data encryption instruction to the data encryption unit.
In this embodiment, the AI operator unit further includes an idle signal sending module, and when there is no data processing in the AI operator unit, the idle signal sending module sends an operation idle signal to the data request unit 1.
Step S400, the data encryption unit encrypts the operation data to obtain encrypted data, including,
step S401, an operation instruction receiving module receives a data encryption instruction sent by an AI operator unit;
step S402, when a data encryption instruction is received, the operation data reading module reads operation data from the AI operator unit;
step S403, the data encryption module encrypts the operation data to obtain encrypted data;
in step S404, when the encrypted data is obtained, the encryption instruction sending module generates a data sending instruction to the data sending unit.
In this embodiment, in step S500, the data sending unit sends the encrypted data, specifically including,
step S501, an encryption instruction receiving module receives a data sending instruction sent by a data encryption unit;
step S502, when receiving a data sending command, the encrypted data reading module reads the encrypted data from the data encryption unit;
in step S503, when the encrypted data is obtained, the encrypted data sending module sends the encrypted data to the CPU, the memory controller, or the shared storage unit of the AI accelerator.
The application provides an encryption device of an AI accelerator and a data processing method thereof, which are used for respectively carrying out encryption and decryption on data used by the AI accelerator, including operator data, network coefficients and data after AI operator operation, and completing data operation processing. The encryption device of the AI accelerator encrypts the data used by the AI accelerator, and even if the data used by the AI accelerator is received by an abnormal user, the data is only ciphertext data and plaintext data cannot be obtained, so that the data is kept secret, the safety characteristic of the AI accelerator is improved, and the using process of the data is safer.

Claims (8)

1. An encryption device of an AI accelerator is characterized by comprising a data request unit (1), a data decryption unit (2), an AI operator unit (3) and a data encryption unit (4) which are connected in sequence;
the data request unit (1) is used for sending a data request signal, receiving valid data and generating a data decryption instruction to the data decryption unit (2), and the data request unit (1) is used for sending the data request signal to a CPU, a memory controller or a shared storage unit of an AI accelerator when receiving an operation vacancy signal sent by the AI operator unit (3) and sending the data decryption instruction to the data decryption unit (2) when receiving the valid data sent by the CPU, the memory controller or the shared storage unit, wherein the valid data comprises valid information data and the valid operator instruction;
the data decryption unit (2) is used for decrypting the effective data to obtain decrypted data and sending a data operation instruction to the AI operator unit (3);
the AI operator unit (3) is used for calculating the decrypted data to obtain operation data and sending a data encryption instruction to the data encryption unit (4), and the AI operator unit (3) specifically comprises an operation instruction receiving module used for receiving the data operation instruction sent by the data decryption unit (2); the decryption data reading module is used for reading decryption data from the data decryption unit (2) when a data operation instruction is received, wherein the decryption data comprises decryption information data and a decryption operator instruction; the operator control module is used for controlling the operator operation module to operate the decrypted data; the operator operation module is used for operating the decryption information data according to the decryption operator instruction under the control of the operator control module to obtain operation data; the operation instruction sending module is used for sending a data encryption instruction to the data encryption unit (4); the idle signal sending module is used for sending an operation idle signal to the data request unit (1) when no data is processed;
the data encryption unit (4) is used for encrypting the operation data to obtain encrypted data, and the data encryption unit (4) specifically comprises an encryption instruction receiving module used for receiving a data encryption instruction sent by the AI operator unit (3); the operation data reading module is used for reading operation data from the AI operator unit (3) when a data encryption instruction is received; the data encryption module is used for encrypting the operation data to obtain encrypted data; the encryption instruction sending module is used for sending a data sending instruction to the data sending unit (5);
the data sending unit (5) specifically comprises a sending instruction receiving module for receiving the data sending instruction sent by the data encryption unit; an encrypted data reading module for reading encrypted data from the data encryption unit (4) when receiving a data transmission instruction; and the encrypted data sending module is used for sending the encrypted data to a CPU, a memory controller or a shared storage unit of the AI accelerator when the encrypted data is obtained.
2. The encryption apparatus according to claim 1, wherein the output of the data encryption unit (4) is connected to a data transmission unit (5), and the data transmission unit (5) is used for transmitting encrypted data.
3. The encryption device according to claim 1, characterized in that the data request unit (1) comprises in particular,
the idle signal receiving module is used for receiving the operation idle signal sent by the AI operator unit (3);
the request signal sending module is used for sending a data request signal when receiving the operation idle signal;
the system comprises an effective data receiving module, a data processing module and a data processing module, wherein the effective data receiving module is used for receiving effective data, and the effective data comprises effective information data and effective operator instructions;
and the decryption instruction sending module is used for sending a data decryption instruction to the data decryption unit (2).
4. The encryption device according to claim 1, characterized in that the data decryption unit (2) comprises in particular,
the decryption instruction receiving module is used for receiving a data decryption instruction sent by the data request unit (1);
the effective data reading module is used for reading effective data from the data request unit (1);
the data decryption module is used for decrypting the read effective data to obtain decrypted data, wherein the decrypted data comprises decrypted information data and a decryption operator instruction;
and the operation instruction sending module is used for sending a data operation instruction to the AI operator unit (3).
5. A data processing method based on AI operator acceleration is characterized by comprising the following steps,
the data decryption method comprises the following steps that a data request unit sends a data request signal, receives effective data and sends a data decryption instruction to a data decryption unit, wherein the data request unit sends the data request signal, receives the effective data and generates the data decryption instruction to the data decryption unit; the request signal sending module sends a data request signal to a CPU, a memory controller or a shared storage unit of the AI accelerator; the effective data receiving module receives effective data sent by a CPU (central processing unit), a memory controller or a shared storage unit of the AI accelerator, wherein the effective data comprises effective information data and an effective operator instruction; the effective instruction sending module sends a data decryption instruction to the data decryption unit;
the data decryption unit decrypts the effective data to obtain decrypted data and sends a data operation instruction to the AI operator unit;
the AI operator unit calculates the decrypted data to obtain operation data and sends a data encryption instruction to the data encryption unit, wherein the AI operator unit calculates the decrypted data to obtain operation data and sends the data encryption instruction to the data encryption unit, and the operation instruction receiving module specifically receives the data operation instruction sent by the data decryption unit; when a data operation instruction is received, a decrypted data reading module reads decrypted data from a data decryption unit, wherein the decrypted data comprises decrypted information data and a decryption operator instruction; the operator control module controls the operator operation module to operate the decrypted data; the operator operation module operates the decryption information data according to the decryption operator instruction under the control of the operator control module to obtain operation data; the operation instruction sending module sends a data encryption instruction to the data encryption unit;
the data encryption unit encrypts the operation data to obtain encrypted data, and specifically comprises an encryption instruction receiving module, an AI operator unit and an AI operator unit, wherein the data encryption instruction receiving module receives a data encryption instruction sent by the AI operator unit; when a data encryption instruction is received, the operation data reading module reads operation data from the AI operator unit; the data encryption module encrypts the operation data to obtain encrypted data; the encryption instruction sending module sends a data sending instruction to the data sending unit;
the data sending unit sends the encrypted data, and specifically comprises a sending instruction receiving module which receives a data sending instruction sent by the data encryption unit; when a data sending instruction is received, the encrypted data reading module reads the encrypted data from the data encryption unit; when the encrypted data is obtained, the encrypted data sending module sends the encrypted data to a CPU, a memory controller or a shared storage unit of the AI accelerator.
6. The data processing method of claim 5, further comprising, after obtaining the encrypted data, the data transmitting unit transmitting the encrypted data.
7. The data processing method of claim 5, wherein the data request unit sends a data request signal, receives valid data, and generates a data decryption command to the data decryption unit, specifically comprising,
the idle signal receiving module receives an operation idle signal sent by the AI operator unit;
when receiving the operation idle signal, the request signal sending module sends a data request signal;
the effective data receiving module receives effective data, wherein the effective data comprises effective information data and effective operator instructions;
and the decryption instruction sending module sends a data decryption instruction to the data decryption unit.
8. The data processing method according to claim 5, wherein the data decryption unit decrypts the valid data to obtain decrypted data, and sends a data operation instruction to the AI operator unit, specifically including,
the decryption instruction receiving module receives a data decryption instruction sent by the data request unit;
the effective data reading module reads effective data from the data request unit;
the data decryption module decrypts the read effective data to obtain decrypted data, wherein the decrypted data comprises decrypted information data and a decryption operator instruction;
and the operation instruction sending module sends a data operation instruction to the AI operator unit.
CN201910064863.8A 2019-01-23 2019-01-23 Encryption device of AI accelerator and data processing method thereof Active CN109784098B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910064863.8A CN109784098B (en) 2019-01-23 2019-01-23 Encryption device of AI accelerator and data processing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910064863.8A CN109784098B (en) 2019-01-23 2019-01-23 Encryption device of AI accelerator and data processing method thereof

Publications (2)

Publication Number Publication Date
CN109784098A CN109784098A (en) 2019-05-21
CN109784098B true CN109784098B (en) 2023-01-17

Family

ID=66502157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910064863.8A Active CN109784098B (en) 2019-01-23 2019-01-23 Encryption device of AI accelerator and data processing method thereof

Country Status (1)

Country Link
CN (1) CN109784098B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110648273B (en) * 2019-09-27 2021-07-06 中国科学院长春光学精密机械与物理研究所 Real-time image processing apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102510431A (en) * 2011-10-26 2012-06-20 中国联合网络通信集团有限公司 Method, system, device and user terminal for obtaining remote resource
CN104217175A (en) * 2014-09-05 2014-12-17 北京邮电大学 Data read-write method and device
CN106295404A (en) * 2015-06-17 2017-01-04 北京虎符科技有限公司 Integrated SOC based on security kernel
CN106469124A (en) * 2015-08-20 2017-03-01 深圳市中兴微电子技术有限公司 A kind of memory access control method and device
CN107528829A (en) * 2017-07-31 2017-12-29 湖南国科微电子股份有限公司 BMC chip, server end and its remote monitoring and administration method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10192062B2 (en) * 2014-06-20 2019-01-29 Cypress Semiconductor Corporation Encryption for XIP and MMIO external memories

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102510431A (en) * 2011-10-26 2012-06-20 中国联合网络通信集团有限公司 Method, system, device and user terminal for obtaining remote resource
CN104217175A (en) * 2014-09-05 2014-12-17 北京邮电大学 Data read-write method and device
CN106295404A (en) * 2015-06-17 2017-01-04 北京虎符科技有限公司 Integrated SOC based on security kernel
CN106469124A (en) * 2015-08-20 2017-03-01 深圳市中兴微电子技术有限公司 A kind of memory access control method and device
CN107528829A (en) * 2017-07-31 2017-12-29 湖南国科微电子股份有限公司 BMC chip, server end and its remote monitoring and administration method

Also Published As

Publication number Publication date
CN109784098A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
EP3780483A1 (en) Cryptographic operation method, method for creating work key, and cryptographic service platform and device
CN115065472B (en) Security chip encryption and decryption method and device based on multi-key encryption and decryption
CN109784098B (en) Encryption device of AI accelerator and data processing method thereof
JP2017163470A (en) Cipher communication system, cipher communication method, security chip, communication device, and communication method and control program therefor
JP2023533319A (en) FIRMWARE DATA VERIFICATION APPARATUS AND METHOD AND FIRMWARE UPDATE APPARATUS, METHOD AND SYSTEM
KR20200046481A (en) A random number generator, an encryption device including the same and a operating method thereof
CN109428876B (en) Handshake connection method and device
CN113810169A (en) Homomorphic encryption device and ciphertext arithmetic method thereof
CN116070240B (en) Data encryption processing method and device of multi-chip calling mechanism
JP2013143653A (en) Information processing apparatus and information processing method
KR100817048B1 (en) Method and apparatus of Different Faults AnalysisDFA countermeasure based on different point representation for Elliptic Curve CryptographyECC
WO2020229586A1 (en) Implementation of a butterfly key expansion scheme
CN113595742B (en) Data transmission method, system, computer device and storage medium
CN113489706B (en) Data processing method, device, system, equipment and storage medium
CN113961931A (en) Adb tool using method and device and electronic equipment
CN114499958A (en) Control method and device, vehicle and storage medium
CN113783879A (en) Carrier control method, system, carrier, equipment and medium
CN114338629A (en) Data processing method, device, equipment and medium
CN111866057A (en) Communication system, communication method, and program
CN115934031B (en) Computing engine, data processing method, device and storage medium
KR20190058914A (en) Electronic device and method for managing service key in the electronic device
CN115085925B (en) Security chip processing method and device for key information combination encryption
CN116527257B (en) Heterogeneous computing system and resource processing method based on same
CN114900292B (en) Pre-computing system, pre-computing data processing method and device
US20240137213A1 (en) Method for Arranging a Shared Cryptographic Key and Method for Encrypted Communication, Computer Program Product and Device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant