SRAMPUF-based security parameter generation system and method

By designing the architecture of the entropy source acquisition layer, algorithm implementation layer and functional service layer in SRAM PUF, it solves the problems of unstable response and insufficient deployment, achieves stable security parameter generation in complex environments, and enhances power Endpoint trust and security.

CN118784242AActive Publication Date: 2024-10-15STATE GRID CORPORATION OF CHINA +2
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410843760.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-15
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

The response of SRAM PUF is not stable enough, and there are differences in multiple reads, which affects its reliability. The lack of unified test and evaluation standards results in its deployment in actual products being not widespread and mature enough.

Method used

It adopts a four-layer security parameter system of entropy source acquisition layer, algorithm implementation layer and functional service layer, and improves the stability and repeatability of SRAM PUF in complex environments through stable feature search, state data preprocessing and fuzzy extraction algorithms. Design a hierarchical modular architecture covering entropy source acquisition, algorithm implementation, configuration management and functional services.

Benefits of technology

It achieves the stable generation of SRAM PUF root security parameters in harsh environments such as temperature difference, humidity, and electromagnetic radiation, improves its ability to adapt to complex environments, enhances the diversity and reliability of security parameters, and supports cross-platform trust and trust of power terminals. Security parameters are dynamically updated.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784242A_ABST
    Figure CN118784242A_ABST
Patent Text Reader

Abstract

The invention relates to a security parameter generation system and method based on an SRAMPUF. The method comprises the steps that a challenge-response mechanism selection method is proposed for the security enhancement requirement of an electric power intelligent terminal, a security parameter generation function architecture is constructed, and a security parameter generation framework covering an entropy source acquisition layer, an algorithm implementation layer, a configuration management layer and a function service layer PUF is established; secondly, a series of algorithm design schemes covering algorithm implementation layers such as a stable feature search algorithm, a state data preprocessing algorithm, an auxiliary data generation algorithm, a fuzzy extraction algorithm, a key derivation function and an error correction coding algorithm are designed, and an algorithm foundation is laid for generation and processing of safety parameters; the security parameter generation system and method based on the SRAM PUF have good reliability, stability and security, and can effectively support the construction of a terminal trusted root system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data security, and in particular to a security parameter generation system and method based on SRAMPUF. Background Art

[0002] The security of parameters such as keys, random numbers, and trusted roots is the core of ensuring terminal data security. The heterogeneity of power smart terminals leads to problems such as difficulty in unifying the root of trust, weak trust transfer, and solidification of the root of trust. This has long restricted the terminal's cross-platform trust and the ability to dynamically update security parameters, and has also caused a lot of management overhead in the process of security parameter transfer and application. SRAMPUF uses tiny differences introduced in the manufacturing process to produce a unique "fingerprint". This physical property determines that it cannot be copied or imitated. It is more secure and reliable than traditional security parameters such as keys and trusted roots. At the same time, due to its portability and economy, SRAM PUF has excellent portability and economy, and has huge advantages in industrial applications.

[0003] However, since the response of SRAM PUF is affected by environmental factors such as temperature and voltage, the extracted PUF response is not stable enough. At the same time, the difference between multiple reads will affect the reliability of SRAM PUF. Therefore, it is urgent to improve the stability and repeatability of SRAM PUF. In addition, although SRAM PUF can provide a variety of security root parameters, there is still a lack of a complete and scalable root security system in practice. At the same time, the deployment of SRAM PUF in actual products is still not extensive and mature enough, and there is a lack of unified test and evaluation standards. Different SRAM PUF implementations are difficult to compare directly, and it is difficult for application developers to judge the actual performance of PUF. . Summary of the invention

[0004] In order to solve the above problems, the purpose of the present invention is to provide a security parameter generation method based on SRAMPUF, which can achieve stable and reliable generation of SRAM PUF root security parameters in extremely harsh environments with large temperature difference / humidity span, high electromagnetic radiation, and improve the ability of SRAM-PUF SPG to adapt to complex and changeable environments through stable feature search and state data preprocessing.

[0005] To achieve the above object, the present invention adopts the following technical solutions:

[0006] A security parameter generation system based on SRAMPUF, characterized by comprising an entropy source acquisition layer, an algorithm implementation layer, a configuration management layer, and a functional service layer;

[0007] The entropy source acquisition layer is responsible for extracting random information from SRAM as the entropy source of PUF security parameters. In addition, considering factors such as storage overhead and time overhead, an exclusive SRAM PUF is used to generate high-security parameters including root keys, key derivation seeds, trusted measurement keys, and authentication CRPs. A non-exclusive SRAM PUF is used to generate security parameters including true random numbers and terminal unique identifiers. At the same time, SRAM is allocated according to the frequency of parameter use and parameter length requirements.

[0008] The algorithm implementation layer performs pre-processing such as filtering, equalization, and quantization on the extracted entropy source information, and then uses the corresponding algorithm to convert it into random data, key data, and unique identification, and verifies the randomness, uniqueness, and stability of these data;

[0009] The configuration management layer is responsible for managing the configuration information of the PUF, including the generation of challenges and storage of responses, and provides a mechanism for resetting the PUF function, controlling access rights to the PUF configuration and interfaces, and implementing isolation and authorization mechanisms;

[0010] The functional service layer provides high-level encapsulation of security parameter functions and an interface for providing external services. Based on the lower-layer PUF hardware, algorithms, and configuration management infrastructure, it is responsible for providing security parameters to upper-layer security applications for security services.

[0011] A security parameter generation method for a security parameter generation system based on SRAMPUF is also provided, which is as follows: initial CRPs obtained from the physical characteristics of SRAM are processed by a stable feature search algorithm to sort out stable output bits and unstable output bits, wherein the unstable output bits are used as an entropy source to generate random seeds, and a random number post-processing algorithm is used to generate random numbers for other algorithms to call; the stable output bits are divided into two parts, and a small part of the output bits are selected to form stable CRPs for generating chip IDs and authentication CRPs respectively, and the IDs of several SRAM chips are fused and calculated to generate device fingerprints; the other part of the stable output bits are processed by a state data preprocessing algorithm and an adaptive error correction coding algorithm to generate a root key, wherein the data after multiple startups of the SRAM generate auxiliary data, and the output of the adaptive error correction coding algorithm is processed by a fuzzy extraction algorithm and a key derivation function to finally generate an asymmetric key, a session key, and a symmetric key.

[0012] The present invention has the following beneficial effects:

[0013] 1. Aiming at diversified and differentiated application scenarios of security parameters, the present invention designs a four-layer security parameter system covering entropy source acquisition layer, algorithm implementation layer, configuration management layer, and functional service layer, and establishes a hierarchical and modular SRAM-PUFSPG functional architecture to provide reconfigurable underlying security parameter generation services for diversified security applications;

[0014] 2. The present invention designs a series of algorithms including stable feature search algorithm, state data preprocessing algorithm, auxiliary data generation algorithm, fuzzy extraction algorithm, key derivation function, error correction coding algorithm, etc., and introduces relevant environmental parameters and adaptive thresholds into each algorithm to improve the ability of SRAM-PUF SPG to adapt to complex and changing environments;

[0015] 3. Aiming at the application requirements of productization and standardization of power terminals, the present invention designs the SRAM-PUF SPG related algorithm calling process and the collaborative application mode in the four stages of initialization, registration and authentication, key generation, and update and recovery. Through the cooperation of various algorithms, a SRAM-PUF SPG system covering initialization, authentication, key management, update and recovery is jointly constructed. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 This is a system architecture diagram of the present invention;

[0017] Figure 2 This is a security parameter generation algorithm call process based on SRAM PUF in one embodiment of the present invention;

[0018] Figure 3 This is the SRAM-PUF SPG stage division of the intelligent fusion terminal in the substation area in one embodiment of the present invention. DETAILED DESCRIPTION

[0019] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:

[0020] refer to Figure 1 ,In this embodiment, a security parameter generation system based on SRAMPUF is provided, which is characterized by including an entropy source acquisition layer, an algorithm implementation layer, a configuration management layer, and a functional service layer;

[0021] The entropy source acquisition layer is responsible for extracting random information from SRAM as the entropy source of PUF security parameters. In addition, considering factors such as storage overhead and time overhead, an exclusive SRAM PUF is used to generate high-security parameters including root keys, key derivation seeds, trusted measurement keys, and authentication CRPs. A non-exclusive SRAM PUF is used to generate security parameters including true random numbers and terminal unique identifiers. At the same time, SRAM is allocated according to the frequency of parameter use and parameter length requirements.

[0022] The algorithm implementation layer performs pre-processing such as filtering, equalization, and quantization on the extracted entropy source information, and then uses the corresponding algorithm to convert it into random data, key data, and unique identification, and verifies the randomness, uniqueness, and stability of these data;

[0023] The configuration management layer is responsible for managing the configuration information of the PUF, including the generation of challenges and storage of responses, and provides a mechanism for resetting the PUF function, controlling access rights to the PUF configuration and interfaces, and implementing isolation and authorization mechanisms;

[0024] The functional service layer provides high-level encapsulation of security parameter functions and an interface for providing external services. Based on the lower-layer PUF hardware, algorithms, and configuration management infrastructure, it is responsible for providing security parameters to upper-layer security applications for security services.

[0025] In order to select the characteristic positions with high stability and good randomness from the SRAM PUF challenge to generate the SRAM PUF response, the power intelligent terminal needs to be restarted multiple times, and the repeated measurement and statistical analysis of the SRAM PUF response are realized during the registration phase of the SRAM PUF function, and the stability and randomness indicators of each response position are evaluated, such as flip probability, Hamming distance, entropy, etc. Then all positions are sorted according to the comprehensive indicators, and the positions with higher quality are selected as stable features. The algorithm mainly relies on data collection, statistical calculation and feature selection.

[0026] In the data collection stage, assuming that the number of times the power intelligent terminal is powered on is m, a configurable measurement matrix set Ω is constructed for PUF measurement. k ={R, Τ, V, ..., I, Ε}, where R, Τ, V, I, Ε are respectively the response matrix of m power-on times, temperature matrix, voltage matrix, power matrix, electromagnetic radiation and other environmental condition matrices, and the matrix set can be expanded according to the expansion factor k.

[0027] In the indicator statistics stage, the three indicators of flip probability, Hamming distance, and mutual information are solved for stability, and entropy, autocorrelation coefficient, and NIST test suite are solved for randomness, and finally the comprehensive evaluation index is calculated. In the feature selection stage, the comprehensive vector S is sorted in descending order, the threshold t is set, and the bits greater than t are listed as candidate features. The specific algorithm is as follows:

[0028]

[0029]

[0030] Construct an SRAM regional indicator evaluation algorithm, which can effectively identify bits with good stability and high randomness by comprehensively evaluating multiple characteristic indicators. Compared with the traditional method based on individual bit evaluation, this algorithm takes into account the correlation between SRAM cells and improves the accuracy and reliability of screening. In addition, the algorithm introduces dynamic update and adjustment parameters to adapt to long-term changes in SRAM characteristics and maintain the stability of PUF response;

[0031] Based on the stable characteristic bits selected above, various high-frequency noises will inevitably be mixed into the original response signals collected by SRAM after registration, such as thermal noise, radio frequency noise, power supply noise, etc. These noises will cause the generation of security parameters to fluctuate in a short time and be unstable, so noise reduction processing is required. First, the mean filtering method is used to remove the high-frequency noise in the original response of the stable characteristic bits and extract the low-frequency features. The sliding window method is used for the original response sequence of length:

[0032]

[0033] For the current position i, take all SRAM cells in the sliding window with a length of l1 centered at it and calculate their arithmetic mean as the filtered output The noise is smoothed by sliding average filtering to extract the main features of the PUF response. It should be noted that when processing the beginning and end of the response sequence, the sliding window may exceed the boundary of the sequence. For these boundary conditions, methods such as zero padding and mirror padding can be used, or special processing can be applied to the boundary part to ensure the integrity and consistency of the filter.

[0034] Since the response distributions of different SRAM PUFs and the same SRAM PUF under different environmental conditions may be different, in order to achieve the adaptive response distribution of SRAM PUF, it is necessary to build an adaptive quantization mechanism to dynamically adjust the quantization threshold and improve the robustness of quantization. Sample, set as set Then its sample mean μ is The standard deviation σ is And set the upper and lower thresholds to t up =μ+k1σ and t down =μ-k2σ, where k1 and k2 are adjustable parameters. Each value in

[0035] 1) If Then the quantization is 1;

[0036] 2) If Then quantized to 0;

[0037] 3) Otherwise, it is regarded as an uncertain state and discarded or marked as a random bit.

[0038] Through the iterative algorithm, the adaptive quantized bit sequence is finally obtained.

[0039] Ideally, the SRAM PUF response should have uniformly distributed 0 and 1 bits. This means that the SRAM PUF response is most random, has no statistical bias, and is difficult to predict and clone. However, the actual response may be unbalanced, with unequal probabilities for 0 and 1 bits. This imbalance reduces the randomness of the PUF response and makes it more vulnerable to statistical attacks and predictions. Therefore, it is necessary to adjust the ratio of 0 and 1 bits in the PUF response through equalization correction to make it as close to uniform distribution as possible, so the calculation The number of 0s and 1s in z1 and z2, if |z1-z2|>k3, where k3 is an adjustable threshold, then the following equalization processing is performed:

[0040] 1) If z1>z2, randomly select u(u<|z1-z2|) 0s and invert them to 1;

[0041] 2) If z1<z2, randomly select u (u<|p1-p2|) 1s and invert them to 0;

[0042] Through the iterative algorithm, the bit sequence after equalization correction is finally obtained.

[0043] Since repetitive patterns in SRAM PUF responses, such as continuous sequences of 0s or 1s, fixed bit combinations, etc., reduce the randomness of the response and become potential security vulnerabilities, it is necessary to use repetitive pattern removal to detect and eliminate repetitive patterns and enhance the security of SRAM PUF as a random number source and key source. Carry out the following algorithm:

[0044]

[0045]

[0046] In this embodiment, a state data preprocessing algorithm of "noise filtering-adaptive quantization-equalization correction-repeated pattern removal" is proposed. The above four sub-algorithms can be organically combined to comprehensively consider various quality issues of PUF state data, such as noise interference, response imbalance, repetitive patterns, etc. Compared with the traditional single preprocessing method, this algorithm can improve the quality of PUF state data more comprehensively and systematically, and provides a flexible, scalable, and hardware-friendly state data preprocessing solution.

[0047] Auxiliary data generation algorithm: Repeat the calculation of the above state data preprocessing algorithm to finally generate a response sequence and select the median of the responses As a reference response, the reference response will be used as a benchmark for subsequent error correction and auxiliary data generation.

[0048] In this embodiment, the idea of ​​polynomial error correction code and permutation mapping is combined to propose an adaptive error correction coding algorithm, which is as follows:

[0049]

[0050]

[0051]

[0052] Since the algebraic structure of polynomial codes is simple, they are easy to implement and optimize in hardware, which helps to reduce hardware resource overhead. The permutation mapping mechanism is introduced to improve the efficiency of error correction coding and reduce the required redundancy by disrupting the position correlation of PUF responses. Adaptive coding strategies are adopted to dynamically adjust the coding parameters according to the actual quality of PUF responses, avoiding over-coding or under-coding, and balancing error correction capability and coding overhead. The iterative decoding algorithm can effectively utilize the soft information of PUF responses and improve the decoding success rate.

[0053] In this embodiment, considering the requirements of multi-dimensional and balanced optimization, the following fuzzy extractor construction algorithm is given, and the specific steps are as follows:

[0054]

[0055]

[0056]

[0057] The fuzzy extractor algorithm of the present invention adopts adaptive error correction coding, dynamically adjusts the coding strategy according to the noise characteristics of the PUF response, and improves the stability of the coding response. The randomness and unpredictability of the coding response are increased by permutation, thereby improving the security of the key. A random matrix M is introduced to generate auxiliary data AD, and the confidentiality and integrity of AD are protected by randomization and hashing. Matrix projection is used to extract the key from the permuted coding response to simplify key management. An adaptive threshold quantization method is adopted to dynamically adjust the quantization threshold according to the distribution characteristics of the projection result to improve the robustness of key extraction. In the auxiliary data reconstruction stage, the consistency and reliability of the auxiliary data are ensured by integrity verification. The success of key reconstruction is judged by key verification to enhance the fault tolerance of the system.

[0058] Preferably, a key derivation function (KDF) is introduced after the fuzzy extractor to convert the initial key into a final key that meets different application requirements. By introducing multi-factor fusion, high-security strength hash function, flexible parameter selection, hardware optimization implementation and other mechanisms, a key derivation algorithm is designed, as follows:

[0059]

[0060]

[0061] This algorithm combines multiple factors such as Salt and APP tags, and uses multiple adjustable parameters such as the number of iterations, key length, Salt length, and parallelism. It can make appropriate trade-offs based on the security requirements of the business. It uses multiple rounds of hash iterations to significantly improve the security strength of derived keys, increases parallel computing to fully utilize the processing power of multi-core MCUs, and can significantly improve the execution efficiency and throughput of KDF.

[0062] refer to Figure 2 In this embodiment, a security parameter generation method based on a security parameter generation system of SRAMPUF is also provided, which is as follows: the initial CRPs obtained from the physical characteristics of SRAM are processed by a stable feature search algorithm to sort out stable output bits and unstable output bits, wherein the unstable output bits are used as an entropy source to generate random seeds, and the random number post-processing algorithm generates random numbers for other algorithms to call; the stable output bits are divided into two parts, and a small part of the output bits are selected to form stable CRPs for generating chip IDs and authentication CRPs respectively, and the IDs of several SRAM chips are fused and calculated to generate device fingerprints; the other part of the stable output bits are processed by a state data preprocessing algorithm and an adaptive error correction coding algorithm to generate a root key, wherein the data after multiple startups of the SRAM generate auxiliary data, and the output of the adaptive error correction coding algorithm is processed by a fuzzy extraction algorithm and a key derivation function to finally generate an asymmetric key, a session key, and a symmetric key.

[0063] Preferably, reference Figure 3 ,The relevant algorithms in each SRAM PUF are divided into four stages of initialization, ,registration authentication, key generation, and update recovery according to the following framework. ,Each stage involves different algorithms and is closely linked with the ,functions of the configuration management layer.

[0064] In the initialization stage, the algorithm parameter configuration module provides initial parameters, calls the parameter verification algorithm, and verifies the integrity and validity of the SRAMPUF initialization parameters; in the registration and authentication stage, the algorithm parameter configuration and challenge-response management modules provide relevant parameters, store and manage CPRs of different functions, call the parameter verification algorithm, stable feature search algorithm, state data preprocessing algorithm, and auxiliary data generation algorithm as needed to generate high-quality CRPs and auxiliary data for error correction for different functions, and perform authentication operations on these key data; in the key generation stage, the algorithm parameter configuration and challenge-response management modules are called to provide various parameters and adopt an adaptive error correction coding algorithm to enhance the fault tolerance of the response, and provide different types of keys through fuzzy extraction algorithms and key derivation parameters; in the update and recovery stage, the algorithm parameter configuration, challenge-response management, and PUF value recovery modules are called, and a series of parameter verification algorithms, state data preprocessing algorithms, fuzzy extraction algorithms, etc. are called to recover key parameters based on auxiliary data. If relevant parameters need to be updated, the parameter update algorithm parameters and auxiliary data generation algorithm are called to update the relevant parameters.

[0065] The configuration management layer plays a key role in the entire life cycle of SRAMPUF by managing and coordinating algorithm parameters, data storage, and interactive operations at each stage.

[0066] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0067] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0068] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0069] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0070] The above is only a preferred embodiment of the present invention, and does not limit the present invention in other forms. Any technician familiar with the profession may use the above disclosed technical content to change or modify it into an equivalent embodiment with equivalent changes. However, any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention without departing from the technical solution of the present invention still belongs to the protection scope of the technical solution of the present invention.

Claims

1. A security parameter generation system based on SRAMPUF, characterized in that: It includes entropy source acquisition layer, algorithm implementation layer, configuration management layer, and functional service layer; The entropy source acquisition layer is responsible for extracting random information from SRAM as the entropy source of PUF security parameters; in addition, considering factors such as storage overhead and time overhead, an exclusive SRAM PUF method is used to generate high-security parameters including root keys, key derivation seeds, trusted measurement keys, and authentication CRPs, and a non-exclusive SRAM PUF is used to generate security parameters including true random numbers and terminal unique identifiers, and SRAM is allocated according to parameter usage frequency and parameter length requirements; The algorithm implementation layer performs pre-processing such as filtering, equalization, and quantization on the extracted entropy source information, and then uses the corresponding algorithm to convert it into random data, key data, and a unique identifier, and verifies the randomness, uniqueness, and stability of these data; The configuration management layer is responsible for managing the configuration information of the PUF, including the generation of challenges and storage of responses, and provides a mechanism for resetting the PUF function, controls access rights to the PUF configuration and interface, and implements an isolation and authorization mechanism; The functional service layer provides high-level encapsulation of security parameter functions and an interface for providing services to the outside world. Based on the lower-layer PUF hardware, algorithms, and configuration management infrastructure, it is responsible for providing security parameters to upper-layer security applications for use in security services.

2. A security parameter generation system based on SRAMPUF according to claim 1, characterized in that: The algorithms of the algorithm implementation layer include a stable feature search algorithm, a state data preprocessing algorithm, an auxiliary data generation algorithm, a fuzzy extraction algorithm, a key derivation function and an error correction coding algorithm.

3. A security parameter generation system based on SRAMPUF according to claim 2, characterized in that: The stable feature search algorithm is specifically as follows: (1) Initial response matrix: R m×n , where m is the number of power-on times, n is the number of bits, P[j] is the flip probability, μ[j] is the mean, and j is the SRAM unit; (2): Calculate the flip probability: Initialize counter: count = 0; For 1≤i≤m-1; If R[i,j] != R[i+1,j], then count+=1; Calculate P[j] = count / (m-1); (3): Calculate the average Hamming distance: Initialize the accumulator: dis=0; For 1≤i≤m-1, for i+1≤s≤m; Calculate the Hamming distance between the i-th measurement and the l-th measurement dis=dis+H[i,l]; Calculate the average Hamming distance D(j) = dis / C(m,2); (4): Calculate information entropy: For each bit j, count the number of 0s n0 and the number of 1s n1 in m measurements; Calculate p0=n0 / m, p1=n1 / m; Calculate the information entropy H(j) = -p0log2p0-p1log2p1; (5): Calculate mutual information: The temperature matrix T, voltage matrix V, current matrix I, and power matrix E are normalized, and the environmental factor vector is calculated according to the environmental parameter weights ω1, ω2, ω3, ω4 For each Δ, count the number of times n2 appears in m measurements and calculate p2 = n2 / m; Calculate information entropy H(Δ)=-sum(p2log2p2); Under Δ, the number of bits that are 0 is n 0Δ and the number of 1s n 1Δ , calculate p 0Δ =n 0Δ / m,p 1Δ =n 1Δ / m; Calculate the conditional entropy H Δ (j|Δ)=-p 0Δ log2p 0Δ -p 1Δ log2p 1Δ ; Calculate H(j|Δ)=sum(p Δ H Δ (j|Δ)); Calculate I(j|Δ)=H(j)-H(j|Δ); (6): Calculate the autocorrelation coefficient: Initialize the accumulator: add = 0, add_num = 0, add_den = 0; For 1≤i≤m, add=add+R(i,j), μ[j]=add / m; For the lag time t time , 1≤i≤mt time ; add_num=add_num+(R(i,j)-μ(j))×(R(i+t time ,j)-μ(j)); add_den=add_den+(R(i,j)-μ(j)) 2 ; R(j,t time )=add_num / add_den; For R(j,t time ) at different times t time Find the average value and get R(j); (6): Calculate the average P value of the NIST test; (7): Comprehensive evaluation calculation: For each bit j, the normalized stability index is obtained as S1(j), the normalized randomness index is S2(j), the index weights ω5 and ω6 are selected, and S(j)=ω1S1(j)+ω2S2(j) is calculated.

4. The SRAMPUF-based security parameter generation system according to claim 2, characterized in that: The state data preprocessing algorithm includes four sub-algorithms: noise filtering, adaptive quantization, equalization correction and repeated pattern removal.

5. The SRAMPUF-based security parameter generation system according to claim 4, characterized in that: The adaptive quantization is specifically as follows: Power on the SRAM m times and count the candidate feature bits Sample, set as set Then its sample mean μ is The standard deviation σ is And set the upper and lower thresholds to t up =μ+k1σ and t down =μ-k2σ, where k1 and k2 are adjustable parameters; Each value in 1) If Then the quantization is 1; 2) If Then quantized to 0; 3) Otherwise, it is regarded as an uncertain state and discarded or marked as a random bit. Through the iterative algorithm, the adaptive quantized bit sequence is finally obtained.

6. The SRAMPUF-based security parameter generation system according to claim 4, characterized in that: The balance correction is specifically as follows: calculate The number of 0s and 1s in z1 and z2, if |z1-z2|>k3, where k3 is an adjustable threshold, then the following equalization processing is performed: 1) If z1>z2, randomly select u (u<|z1-z2|) 0s and invert them to 1; 2) If z1<z2, randomly select u (u<|p1-p2|) 1s and invert them to 0; Through the iterative algorithm, the bit sequence after equalization correction is finally obtained.

7. The SRAMPUF-based security parameter generation system according to claim 4, characterized in that: The repetitive pattern is removed as follows: A. Initialization: (1) Initialize to an empty sequence; (2) Let the minimum length and maximum length of the repeating pattern be: l2, l3; (3) Set the current position value: i = 0; (4) Set the sliding window: l4; B. Pattern matching: (1) Starting from i=0, use a sliding window to Search for repeated patterns in ; (2) For each window size l4 (l2≤l4≤l3): extract a subsequence starting at i=0 and having a length of l4: exist Find the same repeating pattern as P in ; If a repeating pattern P is found: Record the starting position and length of the repeating pattern; Update i to the end of the repeating pattern; If no repeating pattern is found: let l4=l4+1; Continue searching for l4 window size; C. Remove duplicate patterns: (1) For For each position i (0≤i≤n) in ; If i does not belong to any repeating pattern: Will Add to middle; If i belongs to a repeating pattern: Skip this position and do not add it to middle; D. Output results: (1) Return as the response sequence after removing the repetitive pattern.

8. The SRAMPUF-based security parameter generation system according to claim 2, characterized in that: The adaptive error correction coding algorithm is specifically as follows: A. Initialization: (1) Select a suitable parameter q and construct a finite field GF(2 q ); (2) According to the length of the SRAM PUF response and the expected error correction capability, the code length is set to n = 2 q -1, the information bit length is k4, the error correction capability is t1, and n-k4≥2t1 is satisfied; (3) Let the minimum code distance be d1, the maximum number of iterations be mi, and the iteration stop threshold be eps; B. Polynomial Error Correction Coding: (1) In the finite field GF(2 q ), select the primitive element α, then ord(α)=2 n -1; (2) For 1≤i≤2t1, calculate α i In the finite field GF(2 q ) on the minimal polynomial g i (x); (3) Generating polynomial (4) Calculate the generator matrix According to the coefficient vector of the polynomial g(x) (5) Let 1≤i≤k4, 1≤j≤n-k4, (6) Calculate the check matrix Let 1≤i≤n-k4, 1≤j≤n-k4, (7) Output generation matrix Sum check matrix (18) Response sequence after removing repeated patterns Perform polynomial encoding to obtain the encoded response C. Introduce permutation mapping: (1) Input the challenge c of length l5 and the key of length l6, and concatenate the key and challenge c. Form an l5+l6 binary vector kc of length: (2) Calculate the hash value h = sm3 (kc, n) of length n; (3) Calculate p = Fisher-Yates shuffle (h, n), where Fisher-Yates shuffle 1 It is a pseudo-random permutation algorithm; (4) For 1≤i≤n, let the Per[i]th element of the i-th row of Per be 1 and the rest be 0; (5) Output the permutation mapping matrix Per[i] and calculate the response after permutation D. Iterative decoding: (1) Receive the replaced response calculate (2) Initialize confidence: Let v[i][0] denote the initial confidence that the i-th coded bit is 0, and v[i][1] denote the initial confidence that it is 1, for 0≤i≤n-1: if Then v[i][0]=p0, v[i][1]=1-p0; otherwise v[i][0]=1-p1, v[i][1]=1-p1, where p0 and p1 represent the error probabilities of 0 and 1 respectively; Let ctv[i][0] represent the confidence passed by the i-th check node to the j-th variable node, initialized to 0. Let vtc[i][0] represent the confidence passed from the i-th variable node to the j-th check node, initialized to v[i]. (3) Iteratively update the confidence, for 0≤iter≤mi-1: Check node update: For 0≤j≤n-k4-1, 0≤i≤n-1, if H[j][i]=1, let vtc_temp equal the product of vtc[i'], where i'≠i and H[j][i']=1; if ctv[j][i]=(1-2×parity(vtc_temp))×min(vtc_temp), where parity(x) represents the parity of a number; Variable node update: For 0≤j≤n-k4-1, 0≤i≤n-1, if H[j][i]=1, let ctv_temp equal the product of ctv[j'][i], where j'≠j, let ctv[i][j]=normalize(v[i]×ctv_temp), where normalize(x) means normalizing x so that its sum is 1; Soft decision: for 0≤i≤n-1, let soft_decision[i]=v[i]×vtc_temp; Hard decision: for 0≤i≤n-1, if soft_decision[i][0]>soft_decision[i][1], then hard_decision[i]=0; otherwise, hard_decision[i]=1; Verification: If hard_decision satisfies H, the decoding is successful and go to step (5); otherwise, continue iterating; Convergence check: If the L1 norm of the difference between soft_decision and the result of the previous iteration is less than the stop threshold eps, the decoding is successful and go to step (5); otherwise, continue iterating; (4) Decoding failure: If decoding is not successful after reaching the maximum number of iterations mi, decoding fails and None is returned; (5) Output decoding result: hard_decision is used as the decoded response Output.

9. The SRAMPUF-based security parameter generation system according to claim 2, characterized in that: The fuzzy extraction algorithm is as follows: A. Initialization (1) Obtain a response of length n based on the stable feature search algorithm and state data preprocessing algorithm Auxiliary parameters are obtained according to the auxiliary data generation algorithm (2) security parameter l7, indicating the length of the target extraction key; (3) According to the noise model and security requirements, the adaptive error correction coding algorithm selects appropriate coding parameters, such as code length 2 q -1, maximum number of iterations mi, iteration stop threshold eps, fault tolerance threshold t2, etc.; B.Gen stage (1) Input After that, the adaptive error correction coding algorithm is called and the permuted response is calculated. (2) Generate a l7×n binary random matrix M based on the response length n and the security parameter l7; calculate the auxiliary data Calculate HASH_AD=SM3(AD); (3) Generate a random vector r1 and calculate random auxiliary data Generating public auxiliary data (4) Based on the response length n and the security parameter l7, generate a l7×n binary projection matrix A, Pr(A[i][j]=1)=Pr(A[i][j]=0)=0.5, where the elements of A obey an independent and identically distributed Bernoulli distribution, and generate a secret assistant s'=(M,r1,HASH_AD,A); (5) Calculation If key1[i]≥median(key1), then key[i]=1; if key1[i]<median(key1), then key[i]=0, where median(key1) is the median threshold of key1; (6) Output key as the final key; C.Rep stage: (1) Enter a new response According to the stable feature search algorithm and state data preprocessing algorithm, a response of length n is obtained. (2) Obtaining public auxiliary data enter After that, the adaptive error correction coding algorithm is called and the permuted response is calculated. (3) Calculation (4) Calculate the reconstructed auxiliary data and HASH_AD'=SM3(AD'), compare whether the above AD' is equal, if equal, continue to compare HASH_AD' and HASH_AD in secret assistant s'=(M,r1,HASH_AD), if not equal, auxiliary data reconstruction fails and key reconstruction is terminated; (5) Otherwise calculate If key1'[i]≥median(key1'), then key'[i]=1; if key1'[i]<median(key1'), then key'[i]=0, where median(key1') is the median threshold of key1'; key' is the reconstructed key; Calculate the Hamming distance d2 between the reconstructed key key' and the key key. If d2 < t2, the key reconstruction is successful; otherwise, it fails.

10. A method for generating security parameters based on the SRAMPUF-based security parameter generation system according to any one of claims 1 to 9, characterized in that: The details are as follows: the initial CRPs obtained from the physical characteristics of the SRAM are processed by the stable feature search algorithm to sort out stable output bits and unstable output bits. The unstable output bits are used as an entropy source to generate random seeds, and the random number post-processing algorithm generates random numbers for other algorithms to call; the stable output bits are divided into two parts, and a small part of the output bits are selected to form stable CRPs for generating chip IDs and authentication CRPs respectively. The IDs of several SRAM chips are fused and calculated to generate device fingerprints; the other part of the stable output bits are processed by the state data preprocessing algorithm and the adaptive error correction coding algorithm to generate the root key, wherein the data after the SRAM is started multiple times generates auxiliary data, and the output of the adaptive error correction coding algorithm is processed by the fuzzy extraction algorithm and the key derivation function to finally generate asymmetric keys, session keys, and symmetric keys.

Citation Information

Patent Citations

  • Entropy extraction method and circuit based on SRAM PUF (Static Random Access Memory Physical Unclonable Function)

    CN106055491A

  • Internet of Things security chip trusted mechanism

    CN112152816A

  • One-time pad encryption method based on PUF (Physical Unclonable Function) and fuzzy extraction algorithm

    CN114205079A

  • ESIM data protection method based on SRAMPUF

    CN117240464A