Lightweight key extraction method based on memory PUF response reshaping
Through the memory PUF response reshaping method, the hash function and response reshaping method are used to generate a highly stable new response and directly extract the key, which solves the key extraction problem caused by the instability of the memory PUF response and achieves easy key extraction. Quantification and security to adapt to resource-constrained IoT terminals.
Patent Information
- Application Number
- CN202110599347.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-31
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-05-31
AI Technical Summary
The instability of memory PUF response results in high calculation overhead of error correction logic required for key extraction, making it difficult to deploy in resource-constrained IoT terminals, and the error correction logic has security risks.
Through a lightweight key extraction method based on memory PUF response reshaping, the hash function and Hamming weight or differential Hamming weight response reshaping method is used to generate a highly stable new response, avoiding error correction logic and directly extracting the key.
It achieves lightweight and secure key extraction, reduces computing overhead and security threats, and improves the security of IoT terminals.
Smart Images

Figure CN115426099B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of information security technology, and in particular relates to a lightweight key extraction method based on memory PUF response reshaping. Background Art
[0002] Due to the low cost, low power consumption, and limited computing resources of IoT terminals, it is difficult to directly configure the standard security policies designed for conventional devices such as mobile phones to IoT terminals, resulting in low security capabilities of the terminals themselves and difficulty in resisting network security attacks. The "White Paper on IoT Terminal Security (2019)" points out that a working mechanism of "endogenous enhancement, external empowerment, and security and trustworthiness" should be established to improve the security capabilities of IoT terminals in a targeted manner. Among them, "endogenous enhancement" refers to the use of existing terminal resources to provide IoT terminals with a security assurance system that integrates security authentication, data encryption, and secure storage. The cornerstone provides a security key for IoT terminals as a root of trust. As a natural component widely integrated in IoT terminals, memory can extract "digital fingerprints" through hardware manufacturing difference characteristics, which is called Physical Unclonable Function (PUF for short). As the security root of trust for terminal devices, it improves the security protection capabilities of terminals from within. The "Annual Report on IoT Security (2019)" lists PUF as an important security technology to improve the security capabilities of terminals themselves.
[0003] As a low-cost device digital fingerprint technology, PUF is increasingly being used in security chips. Given an input stimulus, PUF outputs a corresponding response that is unique to this PUF entity. This input-output pair is called a Challenge Response Pair (CRP). PUF has attracted much attention from the industry and academia because of its unique security advantages. First, it is random, providing the basic key "raw material" for encryption algorithms. Secondly, it is unique, using the differences in the physical structure of the chip caused by uncontrollable factors in the chip manufacturing process to generate a completely random identity (ID), which cannot be physically copied. Furthermore, it is easy to use and does not require a secure storage medium such as a securely protected non-volatile memory. PUF has broad applications in information security fields such as device authentication, intellectual property (IP) protection, and secure key extraction.
[0004] Based on different random source characteristics, there are many types of PUFs, and each type has multiple specific implementations. Among them, memory PUF is the most important one. Commonly used ones include static random access memory PUF (SRAM PUF), flash memory PUF (Flash PUF) and dynamic random access memory PUF (DRAM PUF). Memory is widely integrated in electronic devices and commonly exists in the underlying hardware modules of IoT terminals. Therefore, memory PUF is an inherent PUF and does not require any additional hardware modification or area overhead. Although recent studies have shown that other naturally integrated components of the terminal, such as gyroscopes and cameras, can also extract device hardware digital fingerprints, these integrated components have limited coverage in IoT terminals compared to memory. Therefore, using inherent memory PUF as the root of trust for IoT terminals has the main advantages of no additional hardware overhead and a wide range of integrated terminals.
[0005] Intrinsic memory PUF is very suitable for extracting security keys. As the root of trust for terminal devices, the two key indicators for evaluating PUF performance are uniqueness and stability. Uniqueness means that the same stimulus input to different PUF entities will have different output responses. Stability means that the same stimulus is repeatedly input into the same PUF entity, and ideally the regenerated response should be the same. The EU PUF research project UNIQUE has conducted actual test results on different types of PUF wafer manufacturing, showing that uniqueness is relatively easy to meet. However, as a physical implementation, the regeneration of PUF responses is affected by the external environment including voltage, temperature, aging, and thermal noise. The regenerated responses are not exactly the same and have a certain degree of instability. Therefore, how to deal with the instability of PUF is a difficult problem that needs to be solved urgently.
[0006] Since the PUF response is not completely stable, when extracting the key, it is usually necessary to first detect and correct the erroneous regeneration response to meet the extremely low failure rate requirement of the key, which is usually less than 10 -6 Traditional memory PUF key extraction relies on fuzzy extractors (FEs). However, memory PUF key extraction based on fuzzy extractors still faces two major problems: (1) The required error correction logic has a large computational overhead and is difficult to deploy in resource-constrained IoT terminals. (2) The auxiliary data required for error correction can be abused by new auxiliary data tampering attacks, posing a threat to security.
[0007] Traditional key extraction based on fuzzy extractors has the disadvantages of high execution overhead and security threats, mainly due to the use of error correction. If the use of error correction logic can be avoided, the computational overhead and security risks of the memory PUF key extractor in the terminal can be greatly reduced, thereby improving security. Summary of the invention
[0008] Aiming at the problem that the current common memory PUF security key extraction of SRAM PUF, Flash PUF and DRAM PUF is difficult to adapt to the deployment of resource-constrained IoT terminals, the present invention provides a lightweight key extraction method based on memory PUF response reshaping.
[0009] The technical solutions to achieve the above objectives are as follows:
[0010] A lightweight key extraction method based on memory PUF response reshaping includes the following steps:
[0011] Step 1: The service platform performs a one-time registration of the key, including:
[0012] Step 1.1, reshape the original response of the memory PUF to generate a new response e;
[0013] Step 1.2, screening highly stable new responses e according to the error rate of the new responses;
[0014] Step 1.3, use the hash function H1 to extract the entropy of the high-stability new response e bit, obtain the registration key sk, expressed as: sk←H1(e), and generate the position mask of the high-stability new response e at the same time;
[0015] Step 1.4: Use the hash function H2 to perform a hash operation on the position mask mask and the registration key sk to obtain the registration authenticator, which is expressed as: u←H2(sk, mask);
[0016] Step 2: The IoT terminal reconstructs the key sk, including:
[0017] Step 2.1, the terminal performs response reshaping on the original response, and determines the regenerated high-stability new response e' according to the position mask;
[0018] Step 2.2, use the hash function H1 to extract entropy from the regenerated high-stability new response e' and reconstruct the key sk', expressed as: sk'←H1(e');
[0019] Step 2.3, use the hash function H2 to perform a hash operation on the position mask mask and the reconstruction key sk' to obtain the reconstruction authenticator u', which is expressed as: u'←H2(sk',mask), and pass sk' into MUX at the same time;
[0020] Step 2.4, compare the reconstructed authentication symbol u' with the registered authentication symbol u, and pass the comparison result to MUX;
[0021] Step 2.5: If u=u', the reconstructed key sk' is equal to the registered key sk, MUX outputs the reconstructed key sk', and the terminal extracts the key successfully; otherwise, MUX outputs an invalid flag, and the key extraction fails.
[0022] Furthermore, the reshaping of the original response in step 1.1 and step 2.1 includes two new response generation mechanisms: Hamming weight HW response reshaping method and differential Hamming weight DHW response reshaping method.
[0023] The Hamming weight HW response reshaping method is as follows: n storage units of the memory are divided into a group, and the n storage units generate n-bit original responses, and the Hamming weight HW of the n original responses of the group is calculated, that is, the number of response bits that are 1 in the n original responses, and the Hamming weight HW of the group is compared with the expected value n / 2. If HW>n / 2, the reshaped new response bit value is 1, otherwise the reshaped new response bit value is 0, and the HW itself is used as the error rate indication information of the new response, and the sum of the error rate and the stability is 1, wherein n≥1;
[0024] The differential Hamming weight DHW response reshaping method is as follows: n storage units of the memory are divided into a group, and the differential Hamming weight DHW response reshaping method uses the original response in a block to generate a one-bit new response, wherein a block contains m consecutive groups. For m groups in a block, the HW value of each group of n-bit original responses is first calculated respectively, and then the HW is found. max and HW min , calculated by HW max and HW min The memory address is determined by DHW = HW max and HW min HW-HW at high memory addresses max and HW min For HW of medium and low memory addresses, if DHW<0, then m*n original responses in a block are reshaped to 0, otherwise m*n original responses in a block are reshaped to 1, and DHW is used as the error rate indication information of the new response, where m≥2.
[0025] The maximum stability of the HW response reshaping method is n, and the maximum stability of the DHW response reshaping method is 2*n. The DHW response reshaping method establishes a bimodal fingerprint stability distribution, and the stability confidence range is expanded, that is, the tolerance to the number of errors in the original response flip is increased.
[0026] Furthermore, n in the Hamming weight HW response reshaping method is an odd number.
[0027] Furthermore, in step 1.2, the method for screening highly stable new responses e according to the HW value or DHW value of the new responses is:
[0028] For the HW response remodeling method: the farther the HW is from the expected value n / 2, the more stable the new response obtained by remodeling is. According to the number x of highly stable responses required, x remodeling responses with the farthest HW from n / 2 are selected, where x ≥ 1;
[0029] For the DHW response remodeling method: the farther the DHW is from 0, the more stable the new response obtained by remodeling. According to the required number of highly stable responses y, select y remodeling responses whose DHW is farthest from 0, where y ≥ 1.
[0030] Furthermore, the method for generating the position mask of the highly stable new response e in step 1.3 is:
[0031] For the HW response reshaping method: a group is a block, and a block has n original responses. For the DHW response reshaping method, a block contains m groups, a group of n responses, that is, a block has m*n original responses. The selected block is the block that generates the screened high-stability new response.
[0032] For the HW response reshaping method: the starting address of the block is always set to 0, and only the offset of the selected block is recorded, which is the position mask of the new response;
[0033] For DHW response reshaping method: the starting address is set to 0, the starting address within the block is also 0, the offset of the selected block and the two internal offsets of the selected block are recorded, and the two internal offsets point to HW max and HW min location.
[0034] Compared with the prior art, the present invention has the following beneficial effects:
[0035] (1) Based on the relationship between the memory PUF response generation mechanism and the lightweight security key extraction, the present invention proposes a method for generating a highly stable response of the memory PUF from the perspective of improving the response generation mechanism, so as to facilitate the measurement of the difference error rate of the new response bits;
[0036] (2) Based on the new response bit error rate, the present invention proposes a new direct key extraction method for memory PUF, which ultimately avoids error correction logic and realizes lightweight and secure key extraction; it realizes lightweight and secure key security applications supported by key extraction using terminal memory PUF, adapts to the resource-constrained characteristics of terminals, and achieves the purpose of enhancing the security of IoT terminals and reducing execution overhead by the underlying physical module. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 is a schematic diagram of the reshaping of Hamming weighted responses to produce new responses.
[0038] Figure 2 is a schematic diagram of the differential Hamming weight response reshaping to produce a new response.
[0039] Figure 3 This is a flow chart of a lightweight key extraction method based on memory PUF response reshaping. DETAILED DESCRIPTION
[0040] The present invention will be described in further detail below in conjunction with the accompanying drawings.
[0041] Combination Figure 3 , a lightweight key extraction method based on memory PUF response reshaping, comprising the following steps:
[0042] Step 1: During the key registration phase, the service platform performs a one-time registration of the key, including:
[0043] Step 1.1, reshape the original response of the memory PUF to generate a new response e;
[0044] Step 1.2, screening highly stable new responses e according to the error rate of the new responses;
[0045] Step 1.3, use the hash function H1 to extract the entropy of the high-stability new response e bit, obtain the registration key sk, expressed as: sk←H1(e), and generate the position mask of the high-stability new response e at the same time;
[0046] Step 1.4: Use the hash function H2 to perform a hash operation on the position mask mask and the registration key sk to obtain the registration authenticator, which is expressed as: u←H2(sk, mask);
[0047] Only the location mask and the registration authentication identifier u are public information and can be obtained by the IoT terminal.
[0048] Step 2: In the key reconstruction phase, the IoT terminal reconstructs the key sk (extracts the key sk), which includes:
[0049] Step 2.1, the terminal performs response reshaping on the original response, and determines the regenerated high-stability new response e' according to the position mask;
[0050] Step 2.2, use the hash function H1 to extract entropy from the regenerated high-stability new response e' and reconstruct the key sk', expressed as: sk'←H1(e');
[0051] Step 2.3, use the hash function H2 to perform a hash operation on the position mask mask and the reconstruction key sk' to obtain the reconstruction authenticator u', which is expressed as: u'←H2(sk',mask), and pass sk' into MUX at the same time;
[0052] Step 2.4, compare the reconstructed authentication symbol u' with the registered authentication symbol u, and pass the comparison result to MUX;
[0053] Step 2.5: If u=u', the reconstructed key sk' is equal to the registered key sk, MUX outputs the reconstructed key sk', and the terminal extracts the key successfully; otherwise, MUX outputs an invalid flag, key recovery is terminated, and key extraction fails.
[0054] Furthermore, the reshaping of the original response in step 1.1 and step 2.1 includes two new response generation mechanisms: Hamming weight HW response reshaping method and differential Hamming weight DHW response reshaping method.
[0055] Memories are generally composed of cell arrays, with rows as word lines and columns as bit lines. Currently, the one-bit response of memory PUF is generated based on one memory cell. Each cell generates a 1-bit response r. When trying to obtain the stability of the response r of a specific cell, it is difficult to measure it accurately and conveniently: repeated measurements are hindered by the need for repeated startup. In this case, the operating conditions may undergo unseen changes, and the stability of r obtained is inaccurate.
[0056] In order to solve the above problems, the present invention takes improving the memory PUF response generation mechanism as a new idea, utilizes the existing, free and sufficient memory PUF original response to recombine and generate a new response, that is, the new response bits are generated by recombination (reshaping) of a group of multiple original response bits, and proposes a new response generation method based on Hamming weight (HW) response reshaping and differential Hamming weight (DHW) reshaping.
[0057] Combination Figure 1 The Hamming weight HW response reshaping method is as follows: n storage cells of the memory are divided into a group. Here, cells located on the same word line are taken as an example. The n storage cells generate n-bit original responses. In order to ensure that the probability of the new response generating 0 and 1 is about 50%, n is limited to an odd number. Figure 1 In the example, the value of n is 15 (the first 15). Calculate the Hamming weight (HW) of the n original responses, that is, the number of response bits that are 1 in the n original responses. Compare the HW of the group with the expected value n / 2. If HW>n / 2, the new response bit value is 1, otherwise the new response bit value is 0. The HW itself is used as the error rate indication information of the new response. The sum of the error rate and stability is 1, where n≥1;
[0058] Combination Figure 2 The differential Hamming weight (DHW) response reshaping method is as follows: n memory cells of the memory are grouped into one group, where cells located on the same word line are taken as one group as an example. The differential Hamming weight (DHW) response reshaping method generates a one-bit new response using the original response in one block. One block contains m consecutive groups, each of which contains n memory cells. Figure 2The static DHW response reshaping method is described in the example using a fixed m(4) groups of n(16) bit raw responses as a static block. In practice, m can also be set dynamically to perform dynamic DHW response reshaping. For m groups in a block, first calculate the HW value of each group of n-bit raw responses, and then find the HW max and HW min , calculated by HW max and HW min The memory address is determined by DHW = HW max and HW min HW-HW at high memory addresses max and HW min For HW of medium and low memory addresses, if DHW<0, then m*n original responses in a block are reshaped to 0, otherwise m*n original responses in a block are reshaped to 1, and DHW is used as the error rate indication information of the new response, where m≥2.
[0059] The maximum stability of the HW response reshaping method is n, and the maximum stability of the DHW response reshaping method is 2*n. The DHW response reshaping method establishes a bimodal fingerprint stability distribution, and the stability confidence range is expanded, that is, the tolerance to the number of errors in the original response flip is increased.
[0060] Furthermore, n in the Hamming weight HW response reshaping method is an odd number.
[0061] Furthermore, in step 1.2, the method for screening highly stable new responses e according to the HW value or DHW value of the new responses is:
[0062] For the HW response remodeling method: the farther the HW is from the expected value n / 2, the more stable the new response obtained by remodeling is. According to the number x of highly stable responses required, x remodeling responses with the farthest HW from n / 2 are selected, where x ≥ 1;
[0063] For the DHW response remodeling method: the farther the DHW is from 0, the more stable the new response obtained by remodeling. According to the required number of highly stable responses y, select y remodeling responses whose DHW is farthest from 0, where y ≥ 1.
[0064] Furthermore, the method for generating the position mask of the highly stable new response e in step 1.3 is:
[0065] For the HW response reshaping method: a group is a block, and a block has n original responses. For the DHW response reshaping method, a block contains m groups, a group of n responses, that is, a block has m*n original responses. The selected block is the block that generates the screened high-stability new response.
[0066] For the HW response reshaping method: the starting address of the block is always set to 0, and only the offset of the selected block is recorded, which is the position mask of the new response;
[0067] For DHW response reshaping method: the starting address is set to 0, the starting address within the block is also 0, the offset of the selected block and the two internal offsets of the selected block are recorded, and the two internal offsets point to HW max and HW min location.
[0068] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A lightweight key extraction method based on memory PUF response reshaping, characterized in that: The following steps are involved: Step 1: The service platform performs a one-time registration of the key, including: Step 1.1, reshape the original response of the memory PUF to generate a new response e; Step 1.2, screening highly stable new responses e according to the error rate of the new responses; Step 1.3, use the hash function H1 to extract the entropy of the high-stability new response e bit, obtain the registration key sk, expressed as: sk←H1(e), and generate the position mask of the high-stability new response e at the same time; Step 1.4: Use the hash function H2 to perform a hash operation on the position mask mask and the registration key sk to obtain the registration authenticator, which is expressed as: u←H2(sk, mask); Step 2: The IoT terminal reconstructs the key sk, including: Step 2.1, the terminal performs response reshaping on the original response, and determines the regenerated high-stability new response e' according to the position mask; Step 2.2, use the hash function H1 to extract entropy from the regenerated high-stability new response e' and reconstruct the key sk', expressed as: sk'←H1(e'); Step 2.3, use the hash function H2 to perform a hash operation on the position mask mask and the reconstruction key sk' to obtain the reconstruction authenticator u', which is expressed as: u'←H2(sk',mask), and pass sk' into MUX at the same time; Step 2.4, compare the reconstructed authentication symbol u' with the registered authentication symbol u, and pass the comparison result to MUX; Step 2.5, if u=u', the reconstructed key sk' is equal to the registered key sk, MUX outputs the reconstructed key sk', and the terminal extracts the key successfully; otherwise, MUX outputs an invalid flag, and the key extraction fails; The reshaping of the original response in step 1.1 and step 2.1 includes two new response generation mechanisms: Hamming weight HW response reshaping method and differential Hamming weight DHW response reshaping method. The Hamming weight HW response reshaping method is as follows: n storage units of the memory are divided into a group, and the n storage units generate n-bit original responses, and the Hamming weight HW of the n original responses of the group is calculated, that is, the number of response bits that are 1 in the n original responses, and the Hamming weight HW of the group is compared with the expected value n / 2. If HW>n / 2, the reshaped new response bit value is 1, otherwise the reshaped new response bit value is 0, and the HW itself is used as the error rate indication information of the new response, and the sum of the error rate and the stability is 1, wherein n≥1; The differential Hamming weight DHW response reshaping method is as follows: n storage units of the memory are divided into a group, and the differential Hamming weight DHW response reshaping method uses the original response in a block to generate a one-bit new response, wherein a block contains m consecutive groups. For m groups in a block, the HW value of each group of n-bit original responses is first calculated respectively, and then the HW is found. max and HW min , calculated by HW max and HW min The memory address is determined by DHW = HW max and HW min HW-HW at high memory addresses max and HW min For HW of medium and low memory addresses, if DHW<0, then m*n original responses in a block are reshaped to 0, otherwise m*n original responses in a block are reshaped to 1, and DHW is used as the error rate indication information of the new response, where m≥2.
2. The lightweight key extraction method based on memory PUF response reshaping according to claim 1 is characterized in that: The n in the Hamming weight HW response reshaping method is an odd number.
3. The lightweight key extraction method based on memory PUF response reshaping according to claim 2 is characterized in that: The method for selecting a highly stable new response e according to the HW value or DHW value of the new response in step 1.2 is: For the HW response remodeling method: the farther the HW is from the expected value n / 2, the more stable the new response obtained by remodeling is. According to the number x of highly stable responses required, x remodeling responses with the farthest HW from n / 2 are selected, where x ≥ 1; For the DHW response remodeling method: the farther the DHW is from 0, the more stable the new response obtained by remodeling. According to the required number of highly stable responses y, select y remodeling responses whose DHW is farthest from 0, where y ≥ 1.
4. The lightweight key extraction method based on memory PUF response reshaping according to claim 3 is characterized in that: The method for generating the position mask of the highly stable new response e in step 1.3 is: For the HW response reshaping method: a group is a block, and a block has n original responses. For the DHW response reshaping method, a block contains m groups, a group of n responses, that is, a block has m*n original responses. The selected block is the block that generates the screened high-stability new response. For the HW response reshaping method: the starting address of the block is always set to 0, and only the offset of the selected block is recorded, which is the position mask of the new response; For DHW response reshaping method: the starting address is set to 0, the starting address within the block is also 0, the offset of the selected block and the two internal offsets of the selected block are recorded, and the two internal offsets point to HW max and HW min location.
