An encryption and decryption system based on SRAM PUF and its encryption method and decryption method

Through the key generation and sharing mechanism based on SRAM PUF devices, the problem of leakage risk during key management and transmission is solved, the automatic generation and secure transmission of keys are realized, key management is simplified, and the security of data transmission is improved Sex and stability.

CN118631453BActive Publication Date: 2024-11-19GUANGDONG LVSUAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411075545.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-11-19
Estimated Expiration
2044-08-07

Smart Images

  • Figure CN118631453B_ABST
    Figure CN118631453B_ABST
Patent Text Reader

Abstract

The present application relates to a data encryption method, a decryption method, an encryption system, a decryption system and an encryption and decryption system, wherein a first SRAM PUF device receives original data sent by an encryption device and obtains first key information, first response information and second response information from device registration information, generates a first key based on the first response information and the second response information, and the first key information includes first incentive information and second incentive information; the first SRAM PUF device encrypts the original data based on the first key to obtain encrypted data, and sends the encrypted data and the first key information to the encryption device; the encryption device sends the encrypted data and the first key information to the decryption device, and the decryption device sends the encrypted data and the first key information to the second SRAM PUF device, so that the second SRAM PUF device decrypts the encrypted data through the first response information and the second response information of the device registration information to obtain the original data, and sends the original data to the decryption device. The above method can ensure the security of the key.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data encryption method, a decryption method, an encryption system, a decryption system, and an encryption / decryption system based on SRAM PUF. Background Art

[0002] Information security has always been a critical issue in today's society. With the continuous development of the digital age, people's demand for data protection has become more and more urgent. In the field of information security, encryption technology is a core measure used to protect the confidentiality and integrity of data. However, with the improvement of computing power and the evolution of traditional encryption algorithms, the need to resist various attack methods is also increasing.

[0003] In order to ensure the security of communication data during transmission and prevent malicious users from illegally obtaining sensitive information, data is usually encrypted using a key. After receiving the encrypted data, the receiver will use the decryption key to restore it to the original plaintext information. In symmetric encryption algorithms, the same key is used for encryption and decryption. Therefore, before transmitting plaintext messages, the sender and receiver need to negotiate the key in advance. This will not only lead to additional communication overhead, but also the management of decryption keys corresponding to different data will also cause a heavy key management burden for both parties in communication. The above problems have been alleviated in the subsequent development of the public key cryptography system. Limited by the current computing level, the public key cryptography system is considered to be difficult to crack to a certain extent. Therefore, some attackers have turned their attention to obtaining the key itself. Whether it is symmetric encryption or asymmetric encryption, users are involved in the storage and management of keys during use. Once the key itself is leaked, it will bring information security problems. Summary of the invention

[0004] Based on this, it is necessary to provide a data encryption method, decryption method, encryption system, decryption system and encryption / decryption system based on SRAM PUF to address the above technical issues, which can utilize the difficult-to-imitate characteristics of SRAM PUF device stimulus and response to ensure the security of the key. In addition, the key used is generated by the SRAM PUF device itself, which reduces the key exchange steps and avoids the key leakage problem in this process.

[0005] A data encryption method based on SRAM PUF is applied to an encryption system, the encryption system includes an encryption device and a first SRAM PUF device, including: the encryption device sends the original data to be encrypted to the first SRAM PUF device; the first SRAM PUF device obtains device registration information, obtains first key information, first response information and second response information from the device registration information, and generates a first key based on the first response information and the second response information, wherein the first SRAM PUF device and the second SRAM PUF device share the device registration information through device registration, the device registration information includes first stimulus information of the first SRAM PUF device and first response information generated based on the first stimulus information, and second stimulus information of the second SRAM PUF device and second response information generated based on the second stimulus information, and the first key information includes the first stimulus information and the second stimulus information; the first SRAM PUF device encrypts the original data based on the first key to obtain encrypted data, and sends the encrypted data and the first key information to the encryption device; the encryption device sends the encrypted data and the first key information to the decryption device, wherein the decryption device sends the encrypted data and the first key information to the second SRAM PUF device, and the second SRAM The PUF device obtains first response information and second response information from the device registration information based on the first key information, decrypts the encrypted data through the first response information and the second response information to obtain original data, and sends the original data to the decryption device.

[0006] In one of the embodiments, the first SRAM PUF device encrypts the original data based on the first key to obtain encrypted data, and sends the encrypted data and the first key information to the encryption device, including: the first SRAM PUF device obtains the current timestamp and the service life of the original data, and generates a second key and second key information according to the current timestamp and the service life; the first SRAM PUF device encrypts the second key information by using the first key to obtain the first encrypted information, and encrypts the original data by using the second key to obtain an encrypted file; the first SRAM PUF device generates encrypted data by using the first encrypted information and the encrypted file; wherein the second SRAM PUF device determines the first key based on the first response information and the second response information, parses the first encrypted information based on the first key to obtain the second key information, determines the second key based on the second key information, and decrypts the encrypted file by using the second key to obtain the original data.

[0007] In one embodiment, generating a first key based on the first response information and the second response information includes: obtaining a global quantity predetermined by the first SRAM PUF device and the second SRAM PUF device and global quantities ; Get the key generation formula for generating the first key; According to the global quantity and global quantities , the first response information, the second response information and the key generation formula to generate a first key.

[0008] In one embodiment, the key generation formula is: ;in, represents the first key, , , Indicates the first response information. Indicates the second response information, Represents a modulo operation.

[0009] In one embodiment, generating a second key and second key information according to a current timestamp and a usage period includes: determining the length of the current timestamp represented by a binary sequence , and the length of the lifetime expressed as a binary sequence ; According to the length and length The difference between the first binary sequence and the second binary sequence in the current timestamp is obtained; the key root is obtained according to the first binary sequence, and the elapsed time is determined according to the second binary sequence And according to the time elapsed The expiration date is modified to obtain the modification time; the second key is calculated based on the key root and the expiration date; the second key is calculated based on the length of the expiration date. And the correction time obtains the second key information.

[0010] In one embodiment, the second SRAM PUF device obtains the current timestamp and obtains the length of the usage period from the second key information. and modification time, based on the current timestamp, length of the expiration period The second key is determined based on the correction time.

[0011] In one of the embodiments, the encryption device sends encrypted data and first key information to the decryption device, and also includes: the encryption device receives a verification code sent by the first SRAM PUF device, combines the encrypted data, the first key information and the verification code, and sends them to the decryption device; wherein the decryption device sends the encrypted data, the first key information and the verification code to the second SRAM PUF device, and after verifying the validity of the verification code, the second SRAM PUF device obtains first response information and second response information from the device registration information based on the first key information to decrypt the encrypted data.

[0012] A data decryption method based on SRAM PUF is applied to a decryption system. The decryption system includes a decryption device and a second SRAM PUF device, including: the decryption device receives encrypted data and first key information sent by the encryption device, and sends the encrypted data and the first key information to the second SRAM PUF device, wherein the encrypted data is obtained by encrypting the original data provided by the encryption device by the first SRAM PUF device based on the first key, the first key is generated by the first response information and the second response information obtained by the first SRAM PUF device from the device registration information, the first response information is generated by the first SRAM PUF device based on the first stimulus information, the second response information is generated by the second SRAM PUF device based on the second stimulus information, and the first key information includes the first stimulus information and the second stimulus information; the second SRAM PUF device obtains the first response information and the second response information from the device registration information based on the first key information, decrypts the encrypted data through the first response information and the second response information to obtain the original data, and sends the original data to the decryption device.

[0013] In one of the embodiments, the first SRAM PUF device obtains a current timestamp and an expiration date of the original data, generates a second key and second key information according to the current timestamp and the expiration date, encrypts the second key information by using the first key to obtain first encrypted information, and encrypts the original data by using the second key to obtain an encrypted file, and generates encrypted data by using the first encrypted information and the encrypted file; the second SRAM PUF device decrypts the encrypted data by using the first response information and the second response information to obtain the original data, including: the second SRAM PUF device determines the first key based on the first response information and the second response information, parses the first encrypted information based on the first key to obtain the second key information, determines the second key based on the second key information, and decrypts the encrypted file by using the second key to obtain the original data.

[0014] In one embodiment, the first SRAM PUF device obtains a global quantity predetermined by the first SRAM PUF device and the second SRAM PUF device. and global quantities , obtain the key generation formula for generating the first key, according to the global quantity and global quantities , the first response information, the second response information and the key generation formula to generate a first key.

[0015] In one embodiment, the key generation formula is: ;in, represents the first key, , , Indicates the first response information. Indicates the second response information, Represents a modulo operation.

[0016] In one embodiment, the first SRAM PUF device determines the length of the current timestamp represented by the binary sequence , and the length of the lifetime expressed as a binary sequence , according to the length and length The difference between the first binary sequence and the second binary sequence in the current timestamp is obtained, the key root is obtained according to the first binary sequence, and the elapsed time is determined according to the second binary sequence And according to the time elapsed The expiration date is modified to obtain the modification time, and the second key is calculated based on the key root and the expiration date. and correction time to obtain second key information; determining the second key based on the second key information, including: the second SRAM PUF device obtains the current timestamp, and obtains the length of the usage period from the second key information and modification time, based on the current timestamp, length of the expiration period The second key is determined based on the correction time.

[0017] In one of the embodiments, the encryption device receives a verification code sent by a first SRAM PUF device, combines the encrypted data, the first key information and the verification code, and sends the combined data to a decryption device; a data decryption method based on SRAM PUF also includes: the decryption device sends the encrypted data, the first key information and the verification code to a second SRAM PUF device; after verifying the validity of the verification code, the second SRAM PUF device obtains the first response information and the second response information from the device registration information based on the first key information to decrypt the encrypted data.

[0018] An encryption system based on SRAM PUF, the encryption system comprises an encryption device and a first SRAM PUF device; the encryption device sends original data to be encrypted to the first SRAM PUF device; the first SRAM PUF device obtains device registration information, obtains first key information, first response information and second response information from the device registration information, and generates a first key based on the first response information and the second response information, wherein the first SRAM PUF device and the second SRAM PUF device share the device registration information by means of device registration, and the device registration information comprises first stimulus information of the first SRAM PUF device and first response information generated based on the first stimulus information, as well as second stimulus information of the second SRAM PUF device and second response information generated based on the second stimulus information; the first SRAM PUF device encrypts the original data based on the first key to obtain encrypted data, and sends the encrypted data and the first key information to the encryption device; the encryption device sends the encrypted data and the first key information to the decryption device, wherein the decryption device sends the encrypted data and the first key information to the second SRAM PUF device, and the second SRAM The PUF device obtains first response information and second response information from the device registration information based on the first key information, decrypts the encrypted data through the first response information and the second response information to obtain original data, and sends the original data to the decryption device.

[0019] A decryption system based on SRAM PUF, the decryption system comprising a decryption device and a second SRAM PUF device; the decryption device receives encrypted data and first key information sent by the encryption device, and sends the encrypted data and the first key information to the second SRAM PUF device; wherein the encrypted data is obtained by encrypting the original data provided by the encryption device by the first SRAM PUF device based on the first key, the first key is generated by the first response information and the second response information obtained by the first SRAM PUF device from the device registration information, the first response information is generated by the first SRAM PUF device based on the first stimulus information, the second response information is generated by the second SRAM PUF device based on the second stimulus information, and the first key information includes the first stimulus information and the second stimulus information; the second SRAM PUF device obtains the first response information and the second response information from the device registration information based on the first key information, decrypts the encrypted data through the first response information and the second response information, obtains the original data, and sends the original data to the decryption device.

[0020] A SRAM PUF-based encryption and decryption system, the encryption and decryption system comprising an encryption system and a decryption system, the encryption system comprising an encryption device and a first SRAM PUF device, the decryption system comprising a decryption device and a second SRAM PUF device; the encryption device sends original data to be encrypted to the first SRAM PUF device; the first SRAM PUF device obtains device registration information, obtains first key information, first response information, and second response information from the device registration information, and generates a first key based on the first response information and the second response information, wherein the first SRAM PUF device and the second SRAM PUF device share the device registration information by registering between devices, and the device registration information comprises first stimulus information of the first SRAM PUF device and first response information generated based on the first stimulus information, as well as second stimulus information of the second SRAM PUF device and second response information generated based on the second stimulus information; the first SRAM PUF device encrypts the original data based on the first key to obtain encrypted data, and sends the encrypted data and the first key information to the encryption device; the encryption device sends the encrypted data and the first key information to the decryption device; the decryption device sends the encrypted data and the first key information to the second SRAM PUF device; the second SRAM The PUF device obtains first response information and second response information from the device registration information based on the first key information, decrypts the encrypted data through the first response information and the second response information to obtain original data, and sends the original data to the decryption device.

[0021] The above-mentioned data encryption method, decryption method, encryption system, decryption system and encryption / decryption system based on SRAM PUF. The encryption system includes an encryption device and a first SRAM PUF device, the encryption device sends the original data to be encrypted to the first SRAM PUF device; the first SRAM PUF device obtains device registration information, obtains first key information, first response information and second response information from the device registration information, and generates a first key based on the first response information and the second response information, wherein the first SRAM PUF device and the second SRAM PUF device share the device registration information through device registration, the device registration information includes first stimulus information of the first SRAM PUF device and first response information generated based on the first stimulus information, and second stimulus information of the second SRAM PUF device and second response information generated based on the second stimulus information, and the first key information includes first stimulus information and second stimulus information; the first SRAM PUF device encrypts the original data based on the first key to obtain encrypted data, and sends the encrypted data and the first key information to the encryption device; the encryption device sends the encrypted data and the first key information to the decryption device, wherein the decryption device sends the encrypted data and the first key information to the second SRAM PUF device, and the second SRAM The PUF device obtains first response information and second response information from the device registration information based on the first key information, decrypts the encrypted data through the first response information and the second response information to obtain original data, and sends the original data to the decryption device.

[0022] The SRAM unit of the SRAM PUF device is independent and usually powered off. It does not store any key information. When the algorithm needs to use the excitation and response pairs, the MCU control circuit of the SRAM PUF device is powered on to generate the response pairs in real time, thereby generating the negotiated first key, which is difficult for attackers to steal based on key storage. Therefore, the SRAM PUF device provides security for data distribution and ensures the security of the first key by using the difficult-to-imitate characteristics of the SRAM PUF device's excitation and response. In addition, the first key used is generated by the SRAM PUF device itself, which reduces the key exchange steps and avoids the key leakage problem in this process. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 is a structural block diagram of an encryption and decryption system based on SRAM PUF in one embodiment;

[0024] Figure 2 is a flow chart of a data encryption method based on SRAM PUF in one embodiment;

[0025] Figure 3is a schematic diagram of an exemplary structure of an encryption system in one embodiment;

[0026] Figure 4 FIG. 1 is a schematic diagram showing an exemplary size of an SRAM PUF device in an embodiment;

[0027] Figure 5 is a flowchart of an exemplary SRAM PUF device-to-device registration in one embodiment;

[0028] Figure 6 is another exemplary flow chart of SRAM PUF device-to-device registration in one embodiment;

[0029] Figure 7 A schematic diagram of two SRAM PUF devices directly connected to an encryption device via a USB-A interface in one embodiment;

[0030] Figure 8 A schematic diagram of an embodiment in which a first SRAM PUF device is directly connected to an encryption device via a USB-A interface and a second SRAM PUF device is connected to the first SRAM PUF device via a TTL communication pin;

[0031] Fig. 9 FIG. 1 is a schematic diagram of a process for generating stimulus-response pairs of an SRAM PUF device in one embodiment;

[0032] Fig.10 A schematic diagram of a process of negotiating a first key with an SRAM PUF device in one embodiment;

[0033] Fig.11 A data encryption flow chart based on an SRAM PUF device in one embodiment;

[0034] Fig.12 is a flow chart of a data decryption method based on SRAM PUF in one embodiment;

[0035] Fig.13 A data decryption flow chart based on an SRAM PUF device in one embodiment;

[0036] Fig.14 A schematic diagram of the structure of encrypted data in an embodiment. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0038] The present application provides a data encryption method based on SRAM PUF and a data decryption method based on SRAM PUF. In one embodiment, Figure 1 As shown, a data encryption method based on SRAM PUF is applied to an encryption system 100, and the encryption system 100 includes an encryption device 102 and a first SRAM PUF device 104. A data decryption method based on SRAM PUF is applied to a decryption system 200, and the decryption system 200 includes a decryption device 202 and a second SRAM PUF device 204. The first SRAM PUF device 104 and the second SRAM PUF device 204 share device registration information through inter-device registration, and the device registration information includes first excitation information of the first SRAM PUF device 104 and first response information generated based on the first excitation information, and second excitation information of the second SRAM PUF device 204 and second response information generated based on the second excitation information. Specifically, the first SRAM PUF device 104 randomly generates the first excitation information and generates the first response information based on the first excitation information. The second SRAM PUF device 204 randomly generates the second excitation information and generates the second response information based on the second excitation information. The first SRAM PUF device 104 and the second SRAM PUF device 204 exchange their respective excitation information and response information. The encryption system 100 and the decryption system 200 perform encryption and decryption based on the device registration information, and use the key negotiated by the SRAM PUF device to ensure the data encryption strength. The specific encryption process of the encryption system 100 and the specific decryption process of the decryption system 200 are described below.

[0039] The present application provides a data encryption method based on SRAM PUF. In one embodiment, a data encryption method based on SRAM PUF is applied to Figure 1 The encryption system 100 shown in FIG. Figure 2 As shown, a data encryption method based on SRAM PUF includes the following steps:

[0040] S202: The encryption device sends the original data to be encrypted to the first SRAM PUF device.

[0041] In this embodiment, SRAM: Static Random-Access Memory. PUF: physical unclonable function. SRAM PUF device refers to a device with a static random access memory physically unclonable function. The SRAM PUF device includes a circuit board, a housing, and an electronic interface of the circuit board exposed to the outside. The circuit board and part of the electronic interface are placed in the housing. The electronic interface includes two, the first interface is the computer USB universal serial bus interface, and the second interface is the TTL serial communication pin exposed on the side of the housing. The first SRAM PUF device is plugged into the encryption device through the electronic interface to achieve communication between the first SRAM PUF device and the encryption device. At the same time, the first SRAM PUF devices can exchange registration information between devices through the TTL communication pin or the USB serial bus through the encryption device. Specifically, as Figure 3 As shown, the circuit board of the first SRAM PUF device includes an MCU module, an SRAM unit, a communication module, a power module, a crystal oscillator, and a download and debugging module (not shown). Exemplarily, the first SRAM PUF device can be miniaturized to the size of a USB flash drive, so that it is convenient for users to carry and use. For example, Figure 4 FIG. 1 is a schematic diagram showing an exemplary size of the first SRAM PUF device. Figure 4 As shown, the electronic interface width of the first SRAM PUF device is 8.70 mm and the length is 10.30 mm, which meets the standard U-port size; the circuit board length can be 50 mm and the width can be 30 mm. At the same time, a power supply and communication interface with a length of 15 mm and a width of 6 mm is exposed on the side of the first SRAM PUF device.

[0042] S204, the first SRAM PUF device obtains device registration information, obtains first key information, first response information, and second response information from the device registration information, and generates a first key based on the first response information and the second response information; wherein the first SRAM PUF device and the second SRAM PUF device share the device registration information through inter-device registration, the device registration information includes first stimulus information of the first SRAM PUF device and first response information generated based on the first stimulus information, as well as second stimulus information of the second SRAM PUF device and second response information generated based on the second stimulus information, and the first key information includes the first stimulus information and the second stimulus information.

[0043] In this embodiment, the second SRAM PUF device is identical to the first SRAM PUF device in terms of structure and function, and "first" and "second" are used to distinguish the two SRAM PUF devices. The two SRAM PUF devices implement inter-device registration in advance to obtain each other's SRAM PUF device registration information. Inter-device registration includes: the first SRAM PUF device returns the first response information based on the randomly generated first stimulus information, and exchanges the first stimulus information and the first response information with the second SRAM PUF device; the second SRAM PUF device returns the second response information based on the randomly generated second stimulus information, and exchanges the second stimulus information and the second response information with the first SRAM PUF device. The device registration information includes the first stimulus information and the first response information of the first SRAM PUF device, and the second stimulus information and the second response information of the second SRAM PUF device. In one example, the first stimulus information and the second stimulus information are the same. That is, the first SRAM PUF device and the second SRAM PUF device use the same stimulus information for stimulus and generate different response information. At this time, the first key information only needs to contain one stimulus information, that is, it contains the first stimulus information. Therefore, the amount of data transmission can be reduced.

[0044] The method of inter-device registration between the first SRAM PUF device and the second SRAM PUF device may be: Figure 5 As shown, the first SRAM PUF device and the second SRAM PUF device are respectively connected to the encryption device for communication, and the encryption device is used as a communication bridge to realize the exchange of stimulus information and response information between the two. Figure 6 As shown, the first SRAM PUF device and the second SRAM PUF device are directly connected via a TTL serial port to achieve the exchange of stimulus information and response information between the two.

[0045] Specifically, for the first method, when the two SRAM PUF devices have not yet been registered, the encryption device needs to communicate with the first SRAM PUF device and the second SRAM PUF device through an electronic interface to achieve registration between the SRAM PUF devices. Figure 7 As shown, the first SRAM PUF device and the second SRAM PUF device are directly connected to the encryption device via the USB-A interface. Figure 8As shown, the first SRAM PUF device is directly connected to the encryption device through the USB-A interface, and the second SRAM PUF device is connected to the first SRAM PUF device through the TTL serial port communication pin. The first SRAM PUF device and the second SRAM PUF device exchange the device registration information generated by each. The device registration information generated by each includes the stimulus information and response information generated by each. The number of device registration information generated by each should be greater than 100 to ensure that the needs of multiple data exchanges are met.

[0046] The specific process of any of the above SRAM PUF devices generating response information based on stimulus information is as follows Fig. 9 As shown. During the device initialization phase, the SRAMPUF device generates auxiliary information through BCH encoding (error correction code). During the formal use process, a stable random entropy source is generated with the help of auxiliary information. The key derivation function of the SRAM PUF device is expressed as: PUF (x / r') = Hash (stimulus x / r' XOR Key_rec), where r' is the randomly generated stimulus information, x is the stimulus information selected in the subsequent encryption and decryption process, and Key_rec is the stable random entropy source of the SRAM unit. Since each SRAM PUF device generates response information based on the random stimulus information, each SRAM PUF device has stimulus information and response information, and the number of such information is more than one. Here, in addition to the stimulus information and response information, since the whole process contains multiple encrypted information and other contents, they are named "first" and "second" according to the order in which they appear in the encryption process. The randomly generated stimulus information can be a random number. For example, a system function or a third-party library can be called to generate a random stimulus using the current time of the encryption device as the seed Seed. At the same time, in order to save storage space and simplify the authentication process, the two SRAM PUF devices use the same stimulus information.

[0047] The first SRAM PUF device obtains first response information of the first SRAM PUF device and second response information of the second SRAM PUF device, and generates a first key based on the two response information. In one example, generating the first key based on the first response information and the second response information includes: obtaining a global quantity predetermined by the first SRAM PUF device and the second SRAM PUF device and global quantities ; Get the key generation formula for generating the first key; According to the global quantity and global quantities , the first response information, the second response information and the key generation formula, generate the first key. The key generation formula is: ; represents the first key, , , Indicates the first response information. Indicates the second response information, Represents a modulo operation.

[0048] Specifically, the process of generating the first key is as follows: Fig.10 As shown: First agree on large numbers p and q; the first key ,in , , , .here , They are the first response information and the second response information respectively. is the first excitation information, ie, x / r' in the above embodiment.

[0049] S206: The first SRAM PUF device encrypts the original data based on the first key to obtain encrypted data, and sends the encrypted data and the first key information to the encryption device.

[0050] In this embodiment, the first SRAM PUF device uses the first key to encrypt the original data to obtain encrypted data, and sends the encrypted data and the first key information to the encryption device. When the first incentive information and the second incentive information are different, the first key information includes two incentive information. When the first incentive information and the second incentive information are the same, the first key information includes the first incentive information.

[0051] S208, the encryption device sends the encrypted data and the first key information to the decryption device; wherein the decryption device sends the encrypted data and the first key information to the second SRAM PUF device, the second SRAM PUF device obtains the first response information and the second response information from the device registration information based on the first key information, and decrypts the encrypted data through the first response information and the second response information to obtain the original data, and sends the original data to the decryption device.

[0052] In one embodiment, the encryption device sends encrypted data and first key information to the decryption device, and also includes: the encryption device receives a verification code sent by the first SRAM PUF device, combines the encrypted data, the first key information and the verification code, and sends them to the decryption device; wherein the decryption device sends the encrypted data, the first key information and the verification code to the second SRAM PUF device, and after verifying the validity of the verification code, the second SRAM PUF device obtains first response information and second response information from the device registration information based on the first key information to decrypt the encrypted data.

[0053] In this embodiment, the encryption device sends the encrypted data, the first key information, and the check code to the decryption device. The decryption device sends the encrypted data, the first key information, and the check code to the second SRAM PUF device for decryption by the second SRAM PUF device. The second SRAM PUF device decrypts the original data after determining the validity of the check code. The check code can specifically be a CRC check code. Therefore, the data check of the check code is added to the outermost layer of the data to prevent data confusion during transmission and greatly improve the stability of data transmission.

[0054] In the above-mentioned data encryption method based on SRAM PUF, the first SRAM PUF device itself does not store the information related to the first key. The independent SRAM unit in the first SRAM PUF device is in a closed state when not called. When the response pair of excitation and response is needed, the MCU control circuit of the first SRAM PUF device is powered on, and the response information is generated in real time, and the first key is negotiated in combination with the excitation and response of the second SRAM PUF device; the SRAM unit of the first SRAM PUF device is independent and usually in a power-off state, and does not store any key information, making it difficult for attackers to steal based on key storage. Therefore, the first SRAM PUF device provides security for data distribution, and uses the characteristics of the first SRAM PUF device that are difficult to imitate in terms of excitation and response to ensure the security of the first key. In addition, the first key used is generated by the first SRAM PUF device itself, which reduces the first key exchange steps and avoids the key leakage problem in this process.

[0055] In one embodiment, the first SRAM PUF device encrypts the original data based on the first key to obtain encrypted data, and sends the encrypted data and the first key information to the encryption device, including: the first SRAM PUF device obtains the current timestamp and the service life of the original data, and generates a second key and second key information according to the current timestamp and the service life; the first SRAM PUF device encrypts the second key information by using the first key to obtain the first encrypted information, and encrypts the original data by using the second key to obtain an encrypted file; the first SRAM PUF device generates encrypted data by using the first encrypted information and the encrypted file; wherein the second SRAM PUF device determines the first key based on the first response information and the second response information, parses the first encrypted information based on the first key to obtain the second key information, determines the second key based on the second key information, and decrypts the encrypted file by using the second key to obtain the original data.

[0056] In one example, generating a second key and second key information according to a current timestamp and a usage period includes: determining the length of the current timestamp represented by a binary sequence , and the length of the lifetime expressed as a binary sequence ; According to the length and length The difference between the first binary sequence and the second binary sequence in the current timestamp is obtained; the key root is obtained according to the first binary sequence, and the elapsed time is determined according to the second binary sequence And according to the time elapsed The expiration date is modified to obtain the modification time; the second key is calculated based on the key root and the expiration date; the second key is calculated based on the length of the expiration date. And the correction time obtains the second key information.

[0057] The second SRAM PUF device obtains the current timestamp and obtains the length of the usage period from the second key information. and modification time, based on the current timestamp, length of the expiration period The second key is determined based on the correction time.

[0058] Specifically, the current timestamp is represented as a binary sequence, with a total of n bits. Get the allowed viewing period of the original data , expressed as a binary sequence, with a total of m bits. Keep the first (nm) bits of the timestamp to get the binary sequence D, and subtract 1 from the binary sequence D to get the binary sequence key root N. Get the last m bits of the truncated timestamp binary sequence and convert it to the elapsed time. ; For the period of use Make corrections, The second key information includes the expiration date Occupies m bits of this information and modifies the expiration date The first key encrypts the second key information, so that the second key information is the first encrypted information in non-plaintext. The second key is generated by adding the binary sequence key root N to the validity period. , and then perform hash calculation, the calculation result is the second key. Finally, the original data is encrypted with the second key to obtain an encrypted file, and then the encrypted data is generated through the first encrypted information and the encrypted file.

[0059] Decryption of the second SRAM PUF device: As described above, the first SRAM PUF device generates the first key. The first response information and the second response information are obtained from the device registration information to generate the first key. The first encrypted information is parsed using the first key to obtain the second key information in plain text. As described above, the expiration date can be obtained. Occupies m bits of this information and modifies the expiration date Based on this, the binary sequence key root N and the expiration date can be determined , and then calculate the result to get the second key. Finally, use the second key to decrypt the encrypted file to get the original data.

[0060] Therefore, the SRAM PUF device stimulus response is difficult to imitate, which ensures the security of the first key and achieves identity authentication. At the same time, the time-related second key is used to encrypt the original data. The transmitted first key information does not reduce the security of the first key itself, and is strongly related to the time when the user decrypts the encrypted data, thus realizing a "fault-tolerant" mechanism for data distribution. Two-level encryption achieves identity authentication and revocable data encryption.

[0061] To further illustrate the data encryption method based on SRAM PUF in the above embodiments, please refer to Fig.11 .

[0062] Data preparation stage: After the encryption device obtains the original data to be encrypted, it communicates with the first SRAM PUF device through the USB-A interface, transmits the data stream to the first SRAM PUF device, and sends the receiver ID. The receiver ID is used to identify the second SRAM PUF device so that the first SRAM PUF device can select the corresponding first stimulus information; the first SRAM PUF device queries whether the recipient has registration information. If so, it proceeds to the next step. If it fails, it returns a warning that the target device is not registered.

[0063] Inter-device registration phase: The first SRAM PUF device and the second SRAM PUF device are registered as follows: Figure 5 or Figure 6 The first SRAM PUF device randomly generates the first stimulus information r' and generates the first response information PUF ( )=Hash(Incentive XOR Key_rec), the second SRAM PUF device receives the first stimulus information , and generate the second response information. The second response information is generated as follows: PUF'(x) = Hash(stimulus x XOR Key_rec). PUF'(x) is sent to the first SRAM PUF device. Here, due to the slight differences in the physical properties between SRAM PUF devices, although x = , but PUF'(x)≠PUF( ).

[0064] Key generation phase: negotiate the first key process, such as Fig.10 As shown, first agree on large numbers p, q; the first key ,in , , , The process of generating the second key includes: obtaining the current timestamp, represented by a binary sequence, with a total of n bits; obtaining the current raw data viewing permission and usage period according to user needs; , expressed as a binary sequence, a total of m bits; retain the (nm) bits before the current timestamp, and the retained binary sequence is D; subtract the binary sequence D-1 to obtain the binary sequence key root N; obtain the m bits after the truncated current timestamp and convert it to the elapsed time ; For the period of use Make corrections, ; Generating the second key includes: adding the binary sequence key root N to the validity period , perform hash calculation and obtain the second key.

[0065] Data encryption stage: Use the first key to encrypt the second key information to obtain the first encrypted information; use the second key to encrypt the original data to obtain the ciphertext data, integrate the first key information, the first encrypted information, and the ciphertext data to obtain the second encrypted information; then perform CRC check on the second encrypted information to generate a check code, and combine the second encrypted information with the check code to generate the final encrypted data. The encrypted data is then sent to the decryption device.

[0066] Based on the above-mentioned encryption method based on SRAM PUF, a corresponding encryption system based on SRAM PUF is provided. The encryption system includes an encryption device and a first SRAM PUF device; the encryption device sends the original data to be encrypted to the first SRAM PUF device; the first SRAM PUF device obtains device registration information, obtains first key information, first response information and second response information from the device registration information, and generates a first key based on the first response information and the second response information, wherein the first SRAM PUF device and the second SRAM PUF device share the device registration information through device registration, and the device registration information includes the first stimulus information of the first SRAM PUF device and the first response information generated based on the first stimulus information, as well as the second stimulus information of the second SRAM PUF device and the second response information generated based on the second stimulus information; the first SRAM PUF device encrypts the original data based on the first key to obtain encrypted data, and sends the encrypted data and the first key information to the encryption device; the encryption device sends the encrypted data and the first key information to the decryption device, wherein the decryption device sends the encrypted data and the first key information to the second SRAM PUF device, and the second SRAM The PUF device obtains first response information and second response information from the device registration information based on the first key information, decrypts the encrypted data through the first response information and the second response information to obtain original data, and sends the original data to the decryption device.

[0067] Based on the above-mentioned data encryption method based on SRAM PUF, the present application also provides a data decryption method based on SRAM PUF, which is applied to a decryption system, and the decryption system includes a decryption device and a second SRAM PUF device. Fig.12 As shown, a data encryption method based on SRAM PUF includes the following steps:

[0068] S1202, the decryption device receives the encrypted data and the first key information sent by the encryption device, and sends the encrypted data and the first key information to the second SRAM PUF device; wherein the encrypted data is obtained by the first SRAM PUF device encrypting the original data provided by the encryption device based on the first key, the first key is generated by the first response information and the second response information obtained by the first SRAM PUF device from the device registration information, the first response information is generated by the first SRAM PUF device based on the first incentive information, the second response information is generated by the second SRAM PUF device based on the second incentive information, and the first key information includes the first incentive information and the second incentive information.

[0069] S1204, the second SRAM PUF device obtains first response information and second response information from the device registration information based on the first key information, decrypts the encrypted data through the first response information and the second response information to obtain original data, and sends the original data to the decryption device.

[0070] In one embodiment, the first SRAM PUF device obtains a current timestamp and an expiration date of the original data, generates a second key and second key information according to the current timestamp and the expiration date, encrypts the second key information by using the first key to obtain first encrypted information, and encrypts the original data by using the second key to obtain an encrypted file, and generates encrypted data by using the first encrypted information and the encrypted file; wherein the second SRAM PUF device decrypts the encrypted data by using the first response information and the second response information to obtain the original data, including: the second SRAM PUF device determines the first key based on the first response information and the second response information, parses the first encrypted information based on the first key to obtain the second key information, determines the second key based on the second key information, and decrypts the encrypted file by using the second key to obtain the original data.

[0071] In one embodiment, the first SRAM PUF device obtains a global quantity predetermined by the first SRAM PUF device and the second SRAM PUF device. and global quantities ; Get the key generation formula for generating the first key; According to the global quantity and global quantities , the first response information, the second response information and the key generation formula, generate the first key. The key generation formula is: ; represents the first key, , , Indicates the first response information. Indicates the second response information, Represents a modulo operation.

[0072] In one embodiment, the first SRAM PUF device determines the length of the current timestamp represented by the binary sequence , and the length of the lifetime expressed as a binary sequence , according to the length and length The difference between the first binary sequence and the second binary sequence in the current timestamp is obtained, the key root is obtained according to the first binary sequence, and the elapsed time is determined according to the second binary sequence And according to the time elapsed The expiration date is modified to obtain the modification time, and the second key is calculated based on the key root and the expiration date. and correction time to obtain the second key information; the above-mentioned determination of the second key based on the second key information includes: the second SRAM PUF device obtains the current timestamp, obtains the length of the usage period from the second key information and modification time, based on the current timestamp, length of the expiration period The second key is determined based on the correction time.

[0073] In one embodiment, the encryption device receives the verification code sent by the first SRAM PUF device, combines the encrypted data, the first key information and the verification code, and sends them to the decryption device; before the step in which the second SRAM PUF device obtains the first response information and the second response information from the device registration information based on the first key information, the method further includes: the decryption device sends the encrypted data, the first key information and the verification code to the second SRAM PUF device; after verifying the validity of the verification code, the second SRAM PUF device obtains the first response information and the second response information from the device registration information based on the first key information to decrypt the encrypted data.

[0074] For the data decryption method based on SRAM PUF in each of the above embodiments, please refer to the explanation in the data encryption method based on SRAM PUF in the above corresponding embodiment. Since the decryption process is the reverse operation of the encryption process, the steps of the data decryption method based on SRAM PUF will not be described in detail here.

[0075] To further illustrate the data decryption method based on SRAM PUF in each of the above embodiments, please refer to Fig.13 .

[0076] Data preparation stage: After the decryption device obtains the encrypted data to be decrypted, it communicates with the second SRAMPUF device through the USB-A interface and transmits the data stream to the second SRAM PUF device. Calculate the checksum of the encrypted data. When the checksum of the encrypted data is the same as the checksum of the received encrypted data, parse the first key information, the first encryption information, the encrypted data, etc. from the encrypted data; otherwise, it means that an error occurred during the transmission process, and a data transmission error warning is issued, and the sender ID is transmitted. The sender ID is used to identify the first SRAM PUF device so that the second SRAM PUF device can select the corresponding first stimulus information; the second SRAM PUF device queries whether the sender has registration information. If so, it proceeds to the next step. If it fails, it returns a warning that the first SRAM PUF device is not registered.

[0077] Key generation phase: The process of negotiating the first key, such as Fig.10 As shown, first agree on large numbers p, q; the first key ,in , , , The process of generating the second key includes: obtaining the current timestamp, expressing it in a binary sequence, processing the binary sequence according to the second key information, and then adding the binary sequence key root N to the expiration date. , perform hash calculation and obtain the second key.

[0078] Data decryption stage: parse the first key information, the first encryption information, and the encrypted data from the second encrypted information, use the first key to decrypt the first encrypted information to obtain the second key information, use the second key to decrypt the original data to obtain the original data in plain text, and send the original data to the decryption device.

[0079] Based on the above-mentioned decryption method based on SRAM PUF, a corresponding decryption system based on SRAM PUF is provided. The decryption system includes a decryption device and a second SRAM PUF device; the decryption device receives the encrypted data and the first key information sent by the encryption device, and sends the encrypted data and the first key information to the second SRAM PUF device; wherein the encrypted data is obtained by the first SRAM PUF device encrypting the original data provided by the encryption device based on the first key, the first key is generated by the first response information and the second response information obtained by the first SRAM PUF device from the device registration information, the first response information is generated by the first SRAM PUF device based on the first stimulus information, the second response information is generated by the second SRAM PUF device based on the second stimulus information, and the first key information includes the first stimulus information and the second stimulus information; the second SRAM PUF device obtains the first response information and the second response information from the device registration information based on the first key information, and decrypts the encrypted data through the first response information and the second response information to obtain the original data, and sends the original data to the decryption device.

[0080] Based on the above-mentioned encryption method and decryption method based on SRAM PUF, a corresponding encryption and decryption system based on SRAM PUF is provided. Figure 1As shown, the encryption and decryption system includes an encryption system 100 and a decryption system 200. The encryption system 100 includes an encryption device 102 and a first SRAM PUF device 104. The decryption system 200 includes a decryption device 202 and a second SRAM PUF device 204; the encryption device 102 sends the original data to be encrypted to the first SRAM PUF device 104; the first SRAM PUF device 104 obtains device registration information, obtains first key information, first response information and second response information from the device registration information, and generates a first key based on the first response information and the second response information, wherein the first SRAM PUF device 104 and the second SRAM PUF device 204 share the device registration information through inter-device registration, and the device registration information includes the first stimulus information of the first SRAM PUF device 104 and the first response information generated based on the first stimulus information, and the second stimulus information of the second SRAM PUF device 204 and the second response information generated based on the second stimulus information; the first SRAM PUF device 104 encrypts the original data based on the first key to obtain encrypted data, and sends the encrypted data and the first key information to the encryption device 102; the encryption device 102 sends the encrypted data and the first key information to the decryption device 202; the decryption device 202 sends the encrypted data and the first key information to the second SRAM PUF device 204; the second SRAM PUF device 204 obtains the first response information and the second response information from the device registration information based on the first key information, decrypts the encrypted data through the first response information and the second response information to obtain the original data, and sends the original data to the decryption device 202.

[0081] Specifically, the encryption device is used to store original data and distribute encrypted data. The encryption device is connected and communicated with the first SRAM PUF device and the second SRAM PUF device through an electronic interface, and serves as a bridge for inter-device registration between the first SRAM PUF device and the second SRAM PUF device. The encryption device is connected and communicated with the first SRAM PUF device through an electronic interface, sends original data to the first SRAM PUF device and receives encrypted data processed by the first SRAM PUF device, and sends the encrypted data to the decryption device.

[0082] The decryption device receives the encrypted data, connects and communicates with the second SRAM PUF device through an electronic interface and sends the received encrypted data, and receives the original data decrypted by the second SRAM PUF device.

[0083] The first SRAM PUF device and the second SRAM PUF device are used to generate first response information and second response information according to the randomly generated first stimulus information when communicating with the encryption device through an electronic interface at the same time, and send the generated response information to the other party's SRAM PUF device. The first SRAM PUF device is used to obtain the first key information and negotiate the first key by using the device registration information of the second SRAM PUF device when communicating with the encryption device through an electronic interface; the first key information includes: the first stimulus information negotiated by the selected first SRAM PUF device and the second SRAM PUF device (the two devices use the same stimulus information). Negotiating the first key includes: negotiating to obtain the first key according to the first key information, the first key information obtained by the first SRAM PUF device corresponding to the first response information and the second response information; generating original data; obtaining the current timestamp, and generating the second key and the second key information according to the preset processing method. Specifically, the second key information is generated according to the timestamp; the first encrypted information is generated according to the first key, the second key information and the preset encryption algorithm. According to the first key information, the first encrypted information, the second key, the original data and the preset encryption algorithm, the second encrypted information and the second encrypted information check code are generated, and the second encrypted information and the second encrypted information check code are synthesized into encrypted data. Fig.14 As shown, the first key encrypts the second key information to obtain the first encrypted information. The second key encrypts the original data to obtain an encrypted file. The first key information, the first encrypted information and the encrypted file are spliced ​​to obtain the second encrypted information. The second encrypted information and the second encrypted information check code are spliced ​​to obtain the final encrypted data. The encrypted data is sent to the decryption device.

[0084] The second SRAM PUF device is used to receive the encrypted data sent by the decryption device when communicating with the decryption device through the electronic interface. Fig.14 As shown, the second encrypted information, the second encrypted information check code, the first key information, the first encrypted information and the encrypted file are determined respectively according to the encrypted data. The first key is generated according to the first key information; the first encrypted information is decrypted according to the first key, the first encrypted information and the preset encryption algorithm to obtain the second key information; the second key is generated according to the second key information, the current timestamp and the preset processing method; the encrypted file is decrypted according to the second key and the preset encryption algorithm to obtain the original data.

[0085] The present application discloses a data encryption method, decryption method, encryption system, decryption system and encryption / decryption system based on SRAM PUF, which provides security for data distribution based on SRAM PUF devices. The first key used is jointly generated by the response information of two SRAM PUF devices registered between the devices in the early stage; the response to the stimulus response of the SRAM PUF device is difficult to imitate, which ensures the security of the first key and achieves the identity authentication effect; at the same time, the second key related to time is used to encrypt the original data, and the transmitted first key information does not reduce the security of the first key itself, and is strongly related to the time when the user decrypts the encrypted data, thus realizing a "fault-tolerant" mechanism for data distribution. Compared with the existing digital encryption scheme, the present application has the following advantages:

[0086] 1) True random entropy source for key generation: Thanks to the subtle physical differences introduced during the production process, the initial state of each tiny structure between SRAM cells in the SRAM PUF device is in an unstable intermediate state before power is turned on. Based on this physical property, the key generated by the SRAM PUF device has a very high randomness, which means the strength of the key.

[0087] 2) The key is calculated as it is used and is not stored when it is not needed. The SRAM PUF device itself does not store key-related information. The independent SRAM unit in the SRAM PUF device is in a closed state when not called. When the algorithm needs to use the response pair of stimulus response, the MCU control circuit in the SRAM PUF device is powered on and generates response information in real time to generate the negotiated key; the SRAM unit of the SRAM PUF device is independent and usually in a power-off state, and does not store any secret information, so it is difficult for attackers to steal based on key storage.

[0088] 3) The encryption process is secure and has low file format requirements. The entire encryption and decryption process flows from the computer to the SRAM PUF device in the form of binary stream data, and then flows back to the computer after encryption / decryption. The entire encryption and decryption algorithm is not exposed to the computer, eliminating the problem of memory leakage in the data processing process.

[0089] 4) Computing power and environment are liberated. The encryption and decryption process does not require the hardware configuration and software environment of the host computer, and is easy to use. Files are processed in the form of binary data streams, so no matter what form of data can be processed through this process, which expands the scope of application of this method.

[0090] 5) Data is "revocable" and management is "fault-tolerant". Two-level encryption realizes identity authentication and revocable data encryption effects. The encryption strength is guaranteed by the key negotiated by the SRAM PUF device. The hierarchical "key information + ciphertext" merging method is adopted to optimize the key exchange problem in the data distribution process. The key can be generated by the SRAM PUF device based on the data header key information, which reduces the key exchange steps and eliminates the key leakage problem in this process. Data verification is added to the outermost layer of the data to prevent data confusion during transmission, which greatly improves the stability of data transmission. Compared with the existing technology, the present application scheme has a higher level of security in data storage and distribution, solves the key difficulties of key management in data security protection, and provides a "fault-tolerant" mechanism in actual scenarios.

[0091] It should be noted that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0092] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification.

[0093] In the specification, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality of components. Certain measures are recorded in different embodiments, but this does not mean that these measures cannot be combined to produce good effects.

[0094] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.

Claims

1. A data encryption method based on SRAM PUF, characterized in that: Applied to an encryption system, the encryption system includes an encryption device and a first SRAM PUF device, the method includes: The encryption device sends the original data to be encrypted to the first SRAM PUF device; The first SRAM PUF device obtains device registration information, obtains first key information, first response information, and second response information from the device registration information, and generates a first key based on the first response information and the second response information, wherein the first SRAM PUF device and the second SRAM PUF device share the device registration information by means of inter-device registration, the device registration information includes first stimulus information of the first SRAM PUF device and first response information generated based on the first stimulus information, as well as second stimulus information of the second SRAM PUF device and second response information generated based on the second stimulus information, and the first key information includes the first stimulus information and the second stimulus information; The first SRAM PUF device encrypts the original data based on the first key to obtain encrypted data, and sends the encrypted data and the first key information to the encryption device; The encryption device sends the encrypted data and the first key information to the decryption device, wherein the decryption device sends the encrypted data and the first key information to the second SRAM PUF device, the second SRAM PUF device obtains the first response information and the second response information from the device registration information based on the first key information, decrypts the encrypted data through the first response information and the second response information to obtain the original data, and sends the original data to the decryption device; The first SRAM PUF device encrypts the original data based on the first key to obtain encrypted data, including: the first SRAM PUF device obtains a current timestamp and the lifespan of the original data, and generates a second key and second key information according to the current timestamp and the lifespan; the first SRAM PUF device encrypts the second key information by using the first key to obtain first encrypted information, and encrypts the original data by using the second key to obtain an encrypted file; the first SRAM PUF device generates the encrypted data by using the first encrypted information and the encrypted file; The second SRAM PUF device determines the first key based on the first response information and the second response information, parses the first encrypted information based on the first key to obtain the second key information, determines the second key based on the second key information, and decrypts the encrypted file using the second key to obtain the original data.

2. The method according to claim 1, characterized in that: The generating a first key based on the first response information and the second response information includes: Obtaining a global quantity predetermined by the first SRAM PUF device and the second SRAM PUF device and global quantities ; Obtaining a key generation formula for generating the first key; According to the global and the global quantity , the first response information, the second response information and the key generation formula to generate the first key.

3. The method according to claim 2, characterized in that The key generation formula is: ; in, represents the first key, , , Indicates the first response information. Indicates the second response information, Represents a modulo operation.

4. The method according to claim 1, characterized in that: The generating the second key and the second key information according to the current timestamp and the usage period includes: Determines the length of the current timestamp represented as a binary sequence , and the length of the lifetime expressed as a binary sequence ; According to the length and length obtain a first binary sequence that is ranked earlier and a second binary sequence that is ranked later in the current timestamp by using a difference of Acquire a key root according to the first binary sequence, and determine an elapsed time according to the second binary sequence and according to the elapsed time Modifying the usage period to obtain a modification time; Calculate a second key based on the key root and the usage period; According to the length of the period of use and the correction time to obtain the second key information.

5. The method according to claim 4, characterized in that The second SRAM PUF device obtains the current timestamp and obtains the length of the usage period from the second key information and the correction time, based on the current timestamp, the length of the usage period The second key is determined based on the correction time.

6. The method according to claim 1, characterized in that The encryption device sends the encrypted data and the first key information to the decryption device, further comprising: The encryption device receives the verification code sent by the first SRAM PUF device, combines the encrypted data, the first key information and the verification code, and sends the combined data to the decryption device; The decryption device sends the encrypted data, the first key information and the verification code to the second SRAM PUF device, and after verifying the validity of the verification code, the second SRAM PUF device obtains the first response information and the second response information from the device registration information based on the first key information to decrypt the encrypted data.

7. A data decryption method based on SRAM PUF, characterized in that: Applied to a decryption system, the decryption system includes a decryption device and a second SRAM PUF device, the method includes: The decryption device receives the encrypted data and the first key information sent by the encryption device, and sends the encrypted data and the first key information to the second SRAM PUF device, wherein the encrypted data is obtained by the first SRAM PUF device encrypting the original data provided by the encryption device based on the first key, the first key is generated by the first response information and the second response information obtained by the first SRAM PUF device from the device registration information, the first response information is generated by the first SRAM PUF device based on the first incentive information, the second response information is generated by the second SRAM PUF device based on the second incentive information, the first key information includes the first incentive information and the second incentive information, wherein the first SRAM PUF device obtains the current timestamp and the lifespan of the original data, generates the second key and the second key information according to the current timestamp and the lifespan, encrypts the second key information by the first key to obtain the first encrypted information, and encrypts the original data by the second key to obtain the encrypted file, and generates the encrypted data by the first encrypted information and the encrypted file; The second SRAM PUF device obtains the first response information and the second response information from the device registration information based on the first key information, determines the first key based on the first response information and the second response information, parses the first encrypted information based on the first key to obtain the second key information, determines the second key based on the second key information, decrypts the encrypted file using the second key to obtain the original data, and sends the original data to the decryption device.

8. The method according to claim 7, characterized in that The first SRAM PUF device obtains a global quantity predetermined by the first SRAM PUF device and the second SRAM PUF device and global quantities , obtain the key generation formula for generating the first key, according to the global quantity and the global quantity , the first response information, the second response information and the key generation formula to generate the first key.

9. The method according to claim 8, characterized in that The key generation formula is: ; in, represents the first key, , , Indicates the first response information. Indicates the second response information, Represents a modulo operation.

10. The method according to claim 7, characterized in that The first SRAM PUF device determines the length of the current timestamp represented by the binary sequence , and the length of the lifetime expressed as a binary sequence , according to the length and length The difference between the first binary sequence and the second binary sequence in the current timestamp is obtained, the key root is obtained according to the first binary sequence, and the elapsed time is determined according to the second binary sequence. and according to the elapsed time The expiration date is modified to obtain a modification time, a second key is calculated based on the key root and the expiration date, and a second key is calculated based on the length of the expiration date. and the correction time to obtain second key information; The determining the second key based on the second key information includes: The second SRAM PUF device obtains the current timestamp and obtains the length of the usage period from the second key information and the correction time, based on the current timestamp, the length of the usage period The second key is determined based on the correction time.

11. The method according to claim 7, characterized in that The encryption device receives the verification code sent by the first SRAM PUF device, combines the encrypted data, the first key information and the verification code, and sends the combined data to the decryption device; The method further comprises: The decryption device sends the encrypted data, the first key information and the verification code to the second SRAM PUF device; After verifying the validity of the verification code, the second SRAM PUF device obtains the first response information and the second response information from the device registration information based on the first key information to decrypt the encrypted data.

12. An encryption system based on SRAM PUF, characterized in that: The encryption system includes an encryption device and a first SRAM PUF device; The encryption device sends the original data to be encrypted to the first SRAM PUF device; The first SRAM PUF device obtains device registration information, obtains first key information, first response information, and second response information from the device registration information, and generates a first key based on the first response information and the second response information, wherein the first SRAM PUF device and the second SRAM PUF device share the device registration information by means of inter-device registration, and the device registration information includes first stimulus information of the first SRAM PUF device and first response information generated based on the first stimulus information, as well as second stimulus information of the second SRAM PUF device and second response information generated based on the second stimulus information; The first SRAM PUF device obtains a current timestamp and a usage period of the original data, generates a second key and second key information according to the current timestamp and the usage period, encrypts the second key information by using the first key to obtain first encrypted information, and encrypts the original data by using the second key to obtain an encrypted file, generates the encrypted data by using the first encrypted information and the encrypted file, and sends the encrypted data and the first key information to the encryption device; The encryption device sends the encrypted data and the first key information to a decryption device, wherein the decryption device sends the encrypted data and the first key information to a second SRAM PUF device, the second SRAM PUF device determines the first key based on the first response information and the second response information, parses the first encrypted information based on the first key to obtain the second key information, determines the second key based on the second key information, and decrypts the encrypted file using the second key to obtain the original data.

13. A decryption system based on SRAM PUF, characterized in that: The decryption system includes a decryption device and a second SRAM PUF device; The decryption device receives the encrypted data and the first key information sent by the encryption device, and sends the encrypted data and the first key information to the second SRAM PUF device; wherein the encrypted data is obtained by the first SRAM PUF device encrypting the original data provided by the encryption device based on the first key, the first key is generated by the first response information and the second response information obtained by the first SRAM PUF device from the device registration information, the first response information is generated by the first SRAM PUF device based on the first incentive information, the second response information is generated by the second SRAM PUF device based on the second incentive information, and the first key information includes the first incentive information and the second incentive information; wherein the first SRAM PUF device obtains the current timestamp and the lifespan of the original data, and generates the second key and the second key information according to the current timestamp and the lifespan; the first SRAM PUF device encrypts the second key information by the first key to obtain the first encrypted information, and encrypts the original data by the second key to obtain the encrypted file; the first SRAM PUF device generates the encrypted data by the first encrypted information and the encrypted file; The second SRAM PUF device obtains the first response information and the second response information from the device registration information based on the first key information, determines the first key based on the first response information and the second response information, parses the first encrypted information based on the first key to obtain the second key information, determines the second key based on the second key information, decrypts the encrypted file using the second key to obtain the original data, and sends the original data to the decryption device.

14. An encryption and decryption system based on SRAM PUF, characterized in that: The encryption and decryption system includes an encryption system and a decryption system, the encryption system includes an encryption device and a first SRAM PUF device, and the decryption system includes a decryption device and a second SRAM PUF device; The encryption device sends the original data to be encrypted to the first SRAM PUF device; The first SRAM PUF device obtains device registration information, obtains first key information, first response information, and second response information from the device registration information, and generates a first key based on the first response information and the second response information, wherein the first SRAM PUF device and the second SRAM PUF device share the device registration information by means of inter-device registration, and the device registration information includes first stimulus information of the first SRAM PUF device and first response information generated based on the first stimulus information, as well as second stimulus information of the second SRAM PUF device and second response information generated based on the second stimulus information; The first SRAM PUF device obtains a current timestamp and a usage period of the original data, generates a second key and second key information according to the current timestamp and the usage period, encrypts the second key information by using the first key to obtain first encrypted information, and encrypts the original data by using the second key to obtain an encrypted file, generates encrypted data by using the first encrypted information and the encrypted file, and sends the encrypted data and the first key information to the encryption device; The encryption device sends the encrypted data and the first key information to the decryption device; The decryption device sends the encrypted data and the first key information to a second SRAM PUF device; The second SRAM PUF device determines the first key based on the first response information and the second response information, parses the first encrypted information based on the first key to obtain the second key information, determines the second key based on the second key information, decrypts the encrypted file using the second key to obtain the original data, and sends the original data to the decryption device.