Secure ECDSA SRAM-PUF Based on Universal Single/Double Scalar Multiplication Architecture
Jingqi Zhang, Zhiming Chen, Xiang He, Kuanhao Liu, Yue Hao, Mingzhi Ma, Weijiang Wang, Hua Dang, Xiangnan Li

TL;DR
This paper introduces a secure SRAM-PUF design using ECDSA to enhance cybersecurity and reduce error rates in device authentication.
Contribution
A novel ECDSA-based SRAM-PUF with a universal architecture for efficient scalar multiplication operations is proposed.
Findings
The proposed SRAM-PUF achieves a bit error rate of 2.7×10−10.
The design shows improved area–time performance with 3902 slices and 6.615 μs ECDSM latency.
A universal architecture for ECSM and ECDSM operations saves hardware resources.
Abstract
Physically unclonable functions (PUFs) are crucial for enhancing cybersecurity by providing unique, intrinsic identifiers for electronic devices, thus ensuring their authenticity and preventing unauthorized cloning. The SRAM-PUF, characterized by its simple structure and ease of implementation in various scenarios, has gained widespread usage. The soft-decision Reed–Muller (RM) code, an error correction code, is commonly employed in these designs. This paper introduces the design of an RM code soft-decision attack algorithm to reveal its potential security risks. To address this problem, we propose a soft-decision SRAM-PUF structure based on the elliptic curve digital signature algorithm (ECDSA). To improve the processing speed of the proposed secure SRAM-PUF, we propose a custom ECDSA scheme. Further, we also propose a universal architecture for the critical operations in ECDSA,…
Genes, proteins, chemicals, diseases, species, mutations and cell lines named across the full text — each resolved to its canonical identifier and authoritative record.
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7- —Chongqing Natural Science Foundation
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsPhysical Unclonable Functions (PUFs) and Hardware Security · Cryptographic Implementations and Security · Integrated Circuits and Semiconductor Failure Analysis
1. Introduction
1.1. Background
With the rapid expansion of the Internet of Things (IoTs), more devices require internet connectivity. Ensuring the security of integrated circuits in these devices is crucial to protect them from potential attacks [1,2]. The physical unclonable function (PUF) is an essential security technique for integrated circuits; it generates a unique electronic signature for each chip by exploiting chip characteristics caused by process variations [3]. PUF functions produce an output responding to a given challenge, forming a challenge–response pair (CRP). PUFs are classified into strong or weak based on their number of CRPs. Strong PUFs have numerous CRPs, while weak PUFs have only a few, which are usually used for key generation through direct response or hash transformation. Weak PUFs often require error correction circuits for reliability.
Among weak PUF circuits, the static random access memory (SRAM)-PUF is widely used due to its superior error correction and ease of implementation [4]. In SRAM-PUF, the initial value of SRAM serves as the PUF response upon power-on, ensuring no sensitive information is stored when powered off [5]. This method offers flexibility in key generation and high entropy due to the inherent randomness in physics.
Although SRAM-PUF is an “electronic fingerprint”, it is sensitive to noise and fabrication processes, leading to bit errors in the initial power-on value. To mitigate this, people adopt fuzzy extractor algorithms and categorize them into either hard-decision or soft-decision. Soft-decision algorithms are more robust in noisy conditions and utilize multiple sampling, which is often achieved by repeatedly powering SRAMs up and down. Reed–Muller (RM) code, a common soft-decision error correction code, is typically used, with pre-computed error probabilities stored in read-only memory (ROM) during registration. The soft-decision SRAM-PUF based on RM code is presented in Appendix A.
1.2. Related Works
As interest in PUFs grows, more and more potential attacks against PUFs have been proposed. Protocol attacks on PUFs are outlined in [6]. Additionally, refs. [7,8] detail various protocol attack strategies, including accessing the PUF temporarily, reusing previous PUF sessions, establishing stealth channels for malicious activities, and exploiting error correction schemes for information leakage. Furthermore, refs. [9,10] suggest a silicon attack method involving invasive techniques to manipulate or explore all possible PUF values or alter chip PUF values. Despite SRAM-PUF’s ability to resist some attacks, ensuring absolute security solely through initial values remains a challenge. For instance, in practical settings, the CPU’s connection to SRAM enables access to SRAM data through software programs, potentially exposing its initial value, as mentioned in [11]. Even if SRAM is not directly linked to the CPU, invasive methods like scanning electron microscopes or thermal laser stimulation can also be deployed to measure initial values [12].
Due to the risks associated with initial SRAM value leakage, this paper proposes a modified SRAM-PUF algorithm to address security concerns and enhance SRAM-PUF technology with the help of elliptic curve cryptography (ECC). The elliptic curve digital signature algorithm (ECDSA) can ensure confidentiality and is applicable for maintaining data integrity and authenticity [13]. Therefore, the initial SRAM value leakage problem can be solved. In ECDSA, curves are defined over prime fields and binary fields [14]. Binary fields offer advantages in modular operations due to their carry-free property, making ECC over binary fields more suitable for hardware implementations, as shown in Appendix B. Elliptic curve scalar multiplication (ECSM) and elliptic curve double scalar multiplication (ECDSM) significantly influence ECDSA performance. Li [15] introduced a speed-oriented ECSM architecture over with dual multipliers operating in parallel. Ref. [16] presents a throughput/area-efficient ECSM architecture utilizing a novel segmented digit-serial multiplier for acceleration. Khan [17] proposed a high-speed ECSM architecture employing a single multiplier and a low-latency ECSM architecture using three multipliers. These architectures modify the Lopez–Dahab Montgomery ECSM algorithm to manage data dependencies effectively. The authors of [18] introduce a flexible asymmetric crypto ECSM processor capable of handling ECSM over standard binary curves and binary huff curves. Additionally, Harb [19] presents a compact ECSM architecture tailored for small embedded applications that utilizes a ROM-based state machine to maximize hardware resource utilization.
1.3. Motivation
RM codes are considered highly secure in the existing literature. The security of RM codes for SRAM-PUF is contingent upon the absolute security of SRAM and the parameter ROM [20,21]. In practical scenarios, additional protective measures can be implemented to prevent attackers from reading the power-on values of SRAMs, and secure ROM can be employed to prevent attackers from reading and modifying the parameter ROM. However, these approaches entail extra hardware resources and specific electronic components. In most system-on-chip (SoC) designs, as they are modules that are directly connected to the central processing unit (CPU), conventional SRAM and ROM can be easily read and modified by attackers through software. Then, the attacker merely needs to modify in ROM based on the power-on values of SRAMs to “clone” the results of SRAM-PUF. Therefore, current research in building secure SRAM-PUFs based on conventional SRAM and ROM is still lacking, which motivates the research presented in this paper.
1.4. Contributions and Structure
The main contributions of this paper are as follows:
- An RM code soft-decision attack algorithm for SRAM-PUFs is proposed. The attacker simply needs to modify the parameter in the ROM to clone the SRAM-PUF.
- We propose a secure ECDSA SRAM-PUF based on custom signature and verification schemes. The computationally expensive modular inversion operation present in standard ECDSA is omitted in the custom schemes. The custom schemes enhance the difficulty of the proposed RM code soft-decision attack algorithm.
- We propose a universal computing hardware architecture for ECSM and elliptic curve double scalar multiplication (ECDSM) based on the differential addition chains (DAC) to enhance the overall performance of the design.
- A secure ECDSA SRAM-PUF architecture is proposed in this paper. The hardware architecture for RM code soft-decision emphasizes lightweight design, while the ECDSA architecture is performance-oriented. Our design is implemented on both an ASIC and FPGA to compare with the existing literature in terms of bit error rate (BER), reliability, uniqueness, and area–time product (ATP).
The remaining sections of the paper are structured as follows. Section 2 provides an introduction to the related background and preliminaries covering the fundamentals of SRAM-PUF and ECDSA. Section 3 presents the ECDSA-based SRAM-PUF scheme along with the corresponding fast algorithm. In Section 4, the paper delves into the hardware architecture of the proposed algorithm, accompanied by an exploration of hardware evaluation and optimization. Section 5 offers insights into the hardware implementation results of the proposed architecture. Finally, Section 6 serves as the conclusion, summarizing the key findings and contributions of the paper.
2. Security Problems Existing in Soft-Decision RM Codes
Since SRAMs are directly connected to the CPU, they are susceptible to being read by attackers through software attacks. Once SRAM is accessed by a third party, will be leaked to the attacker. The attacker proceeds to target the ROM, which is also directly linked to the CPU, using software methods to acquire w and P. Combining this information with , the attacker can derive , c, and y. The strength of PUF lies in its ability to resist replication even if an attacker gains access to the response value, as there is no means to control technological differences for modifying . However, with the introduction of P through soft-decision, the paper proposes the RM code soft-decision attack algorithm, as shown in Algorithm 1. In this algorithm, the attacker can manipulate P to correct to an alternative , thereby altering the error-corrected response value y. Algorithm 1 The Proposed Attack Algorithm for SRAM-PUFs Based on Soft-Decision RM Code**Require: w and y.**Ensure: Replicated y.
- 1:Registration stage:
- 2:for to 100 do
- 3: SRAMs power on to obtain one ;
- 4:end for
- 5:SRAMs power on to obtain ;
- 6:for to 100 do
- 7: for to do
- 8: if then
- 9: ;
- 10: end if
- 11: end for
- 12:end for
- 13:for to do
- 14: if then
- 15: ;
- 16: end if
- 17:end for
- 18:Store w and in the ROM;
- 19:Recovery stage:
- 20:SRAMs power on to obtain ;
- 21: ;
- 22: ;
- 23: ; Return: y.
In the attack scheme, a comparison is made during the registration phase between each bit of y and to adjust each bit of . If a bit of y and differs, the corresponding bit in is set to . This adjustment ensures that the likelihood estimate for soft-decision error correction takes the opposite stance.
In the recovery phase, the disparities between and in the attacked SRAM-PUF are analogous to those between and , given the formulas and . Consequently, modifications to the differing bits in between and lead to reverse likelihood estimates for the corresponding bits. This reversal ultimately results in identical sign likelihood estimates for each bit between and . During the final decoding of the likelihood estimate to determine the symbol, two likelihood estimates with the same symbol will have a high probability of being error-corrected to yield the same code word. Thus, can be corrected to , allowing attackers to replicate y. As a result, attackers do not need to alter the circuits. By substituting P in ROM with , the same SRAM-PUF soft-decision algorithm can be ineffective at achieving the “unclonable” effect.
3. The Proposed Secure SRAM-PUF Scheme Based on Custom ECDSA
3.1. Parameter Selection for RM Code
Since the RM error correction code is used in the soft-decision algorithm, selecting the order r and the number m of the RM code is essential. Theoretically, the soft-decision algorithm can choose any RM code. However, various factors need careful consideration before the soft-decision of the RM code in PUF is made.
The order r dictates the recursion complexity and error correction ability of the RM code. The error correction capability of the RM code should align between the intra-chip and inter-chip error rates of the SRAM-PUF. If the error correction capability is lower than the intra-chip rate, the error correction will fail. Conversely, suppose the error correction capability surpasses the inter-chip rate. In that case, the attacker can correct the response value of the attacked chip using the response value of another chip with identical parameters, completing PUF replication. We choose so that the error correction capability of the RM code is about 20%.
The parameter m affects the information entropy of the RM code. Four segments of 256-bit SRAM initial values are chosen for soft-decision, resulting in four responses with 37-bit information entropy each. Repeated RM code soft-decision necessitates the reuse of the same RM code soft-decision hardware multiple times, and ROM also needs to store the error probability of each segment. For different RM codes, the larger the value of m, the greater the information entropy of the message, but this may lead to a higher likelihood of entropy leakage caused by the code word. A value of strikes the trade-off between entropy and security. Therefore, this paper chooses for generating PUF.
3.2. The Proposed Secure SRAM-PUF Scheme
The proposed secure SRAM-PUF scheme is illustrated in Algorithm 2. Considering the utilization of ECDSA to safeguard the error probability signature in the ROM, all error probabilities can be signed as a message during the registration stage. The algorithm of the ECDSA-PUF in the registration phase closely resembles the auxiliary data soft-decision algorithm. However, in addition to calculating w and P, it also necessitates completing the ECDSA signature. Algorithm 2 The Proposed Secure SRAM-PUF Scheme**Require: SRAM, a private key d, a public key H, and the order of the elliptic curve n.**Ensure: A stable SRAM-PUF response y.
- 1:Registration stage:
- 2:for to 100 do
- 3: SRAMs power on to obtain one ;
- 4:end for
- 5:SRAMs power on to obtain y;
- 6:for to 100 do
- 7: for to do
- 8: if then
- 9: ;
- 10: end if
- 11: end for
- 12:end for
- 13:Choose one RM code c;
- 14: ;
- 15: ;
- 16: ;
- 17: ;
- 18:Save w, P, , to the ROM;
- 19:Recovery stage:
- 20: ;
- 21: ;
- 22:SRAMs power on to obtain ;
- 23: ;
- 24: ;
- 25: ;
- 26: ;
- 27: . Return: y.
Once the signature is completed, the signatures are stored in the ROM. During the recovery phase, the RM code soft judgment is performed, as well as the ECDSA verification. If the verification fails, the RM code soft judgment PUF output becomes invalid. However, directly verifying the data in the ROM and using a single-bit signal to determine whether the verification passes poses a problem. This single-bit signal line directly influences the generation of SRAM-PUF, which is crucial in the circuit. Therefore, if an attacker locates this single-bit signal in the netlist or circuit layout and modifies it, the ECDSA signature verification attack can be executed, thus altering the validity of the PUF. To prevent the single-bit signal from determining the security of the entire chip, we integrate multi-bit signals throughout the algorithm. Only if the signature is verified can the correct SRAM response be obtained. Once any value in the ROM is changed, the verification will not pass, which cannot get the internal values to generate the correct response.
As the ECDSA-PUF’s signature and verification are ‘self-signed and self-verified’ as initiated by the designer, a simpler ECDSA protocol can be customized to further expedite ECDSA-PUF by omitting the time-consuming part of signature verification. Hence, the acceleration speed of the PUF is boosted. The content of the custom ECDSA protocol will not be disclosed to the public, thereby increasing the difficulty for attackers. Consequently, we propose a custom ECDSA signature and verification . In the standard ECDSA, we calculate and compare it with the signature r. However, in the proposed custom cases, we calculate X and compare it with . Hence, the time required for modular inversion is saved.
In the registration phase, power-on and power-off cycles are repeated to tally the error probability P and calculate the auxiliary data w. Subsequently, the custom signature function (Algorithm A6) is executed on P and w. Two distinctions exist between this function and the standard ECDSA signature. First, the signature s needs to calculate the modulo inverse . This calculation occurs in the registration phase and is conducted by computers, not during chip hardware calculation in the recovery phase. Hence, this part’s calculation is completed before leaving the factory and does not impinge on PUF generation time. Second, the function directly outputs instead of calculating . The purpose is for the subsequent calculation to obtain the P point X-coordinate.
The purpose of in standard ECDSA is to ensure r is smaller than the order n. If is skipped, it will cause to get the same sign during verification. For custom ECDSA, when serves as the signature, although can get the same during verification, the final verification compares . Thus, will result in incorrect verification of , meaning there is no possibility that multiple numbers related to can be verified. Therefore, omitting in signatures does not affect security.
After completing the custom signature function, execute the custom verification function (Algorithm A7). The custom signature verification function directly inputs the calculated and, ultimately, only calculates the projected coordinates X and Z without performing the modulo inverse of the coordinate transformation. After completing the signature verification and obtaining Z, calculate in advance in the registration phase, saving computation time on hardware in the recovery phase.
For standard ECDSA, r and s are safe and reliable in the ROM. For the custom ECDSA, compared with r, lacks the modulo step, and the amount of information in is the same as that of s. Thus, and are both considered safe in the ROM. In the recovery stage, we use to perform the auxiliary data algorithm instead of r. Also, perform bit expansion first, find and and perform RM code soft-decision to obtain c. While executing the auxiliary data algorithm, we use , , to execute customized signature verification and calculate the projected coordinate X of P. As there is no need to perform the modular inverse step and , have already been calculated in the registration stage, the relevant logic for these calculation steps in the circuit of the recovery stage is saved, effectively reducing resource consumption and computation time. Finally, X is bit-expanded and XORed with and c. The final expression of y is given in Equation (1).
3.3. The Proposed Universal Algorithm for ECSM and ECDSM
For the construction of a two-dimensional DAC, we consider two scalars in ECDSM as an input vector . The two-dimensional DAC is illustrated in Appendix C. The initial values of a two-dimensional DAC are zero , the point , and the point . Then, we precompute the PA results of and . Note that point subtraction is as efficient as PA since, given , the coordinate of is . The algorithm of single PA in LD coordinates is shown in Appendix B.
For each loop in a two-dimensional DAC, the existence of the current vector allows the calculation of four intermediate values , , , and . We only preserve three values out of four to reduce the computation burden. The parities of these intermediate values are , , , and . As illustrated in Figure A2, values in and are always and , respectively. The missing values can be or . Only one of them is preserved in . The omitted value is determined by and , where :
- When , the choice is the same as the previous iteration;
- When , the choice is the opposite of the previous iteration;
- When , the choice is ;
- When , the choice is .
Hence, we can generate all elements in the proposed two-dimensional DAC, as shown in Algorithm 3. Furthermore, we also need to determine the flag signals to control the accumulation for the final ECDSM results. It is obvious that is always calculated through the PA of and . Further, is always calculated through the PD with one of , , or . Finally, is calculated through the PA of and either or . The relations in the proposed two-dimensional DAC are given as:
where and .
To establish the two-dimensional DAC, we need to determine the data strobing for each loop. is always obtained through and . For , one of the adders is fixed as , and the other adder can be or . For , the input of the PD can be , , or . Meanwhile, we also need to determine the differences between two adders within two PAs for each loop. The possible values for can be , , , or , which stand for , Q, P, and , respectively.
The proposed flag signal generation algorithm is shown in Algorithm 4. In this algorithm, and denote the values of m and n, respectively, in Equation (2). The difference between and can be or . When the Y-coordinates are omitted, the X-coordinates and Z-coordinates of and are the same. Therefore, we only determine to denote the difference between and in Equation (2). Algorithm 3 The Proposed Two-Dimensional DAC Generation Algorithm**Require: ****Ensure: **
- 1:
- 2:
- 3:
- 4:
- 5:
- 6:for to 0 do
- 7: Set
- 8: if then
- 9:
- 10: end if
- 11: if then
- 12: ,
- 13: end if
- 14: if then
- 15: ,
- 16: end if
- 17: if then
- 18: ,
- 19: end if
- 20: Set ,
- 21: Set ,
- 22: Set ,
- 23:end for **Return: **.
With flag signals precomputed, the proposed ECDSM algorithm is shown in Algorithm 5. also needs to be precomputed to determine the data strobing for the initialization of the two-dimensional DAC. For ECSM, we employed the Montgomery ladder, as shown in Appendix B. Indeed, the Montgomery ladder also involves computation through constructing a DAC, but the DAC built in the Montgomery ladder is one-dimensional. Therefore, this method does not require precomputing the parameters of the DAC. Instead, it iteratively calculates and scans each bit of k during the process. Moreover, whether it is the proposed two-dimensional DAC computation method or the traditional one-dimensional DAC computation method (the Montgomery ladder), the operational steps in each round of iteration are uniform (PA-PD for the Montgomery ladder and PA-PA-PD for the proposed method). Consequently, both of these computation methods can enhance the resistance against some power and timing analysis attacks. For the Montgomery ladder, each loop contains 6 multiplication operations, while our proposed ECDSM method consumes 10 multiplication operations in each loop. Hence, when executing ECDSM, our proposed method reduces the computational burden by compared to executing the Montgomery ladder twice. Algorithm 4 The Proposed Flag Signal Generation Algorithm**Require: **Ensure: .
- 1:
- 2:for to 0 do
- 3: if then
- 4: Set
- 5: else if then
- 6: Set
- 7: else
- 8: Set
- 9: end if
- 10: if then
- 11:
- 12: if then
- 13:
- 14: else if then
- 15:
- 16: end if
- 17: else if then
- 18:
- 19: if then
- 20:
- 21: else if then
- 22:
- 23: end if
- 24: end if
- 25: Set
- 26:end for Return: .
Algorithm 5 The Proposed ECDSM Algorithm
Require: .
Ensure: .
- 1:Set ,
- 2:Set ,
- 3:if then
- 4: Set
- 5:else if
- 6: Set
- 7: end if
- 8:for to n do
- 9:
- 10: if then
- 11:
- 12: else if then
- 13:
- 14: end if
- 15: if then
- 16:
- 17: else if then
- 18:
- 19: else if then
- 20:
- 21: end if
- 22: end for
Return: .
4. Hardware Architecture
4.1. The Overall Architecture of ECDSA SRAM-PUF
The hardware implementation of ECDSA-PUF is illustrated in Figure 1, where the algorithm integrates ECDSA and RM code soft-decision. The primary hardware components consist of the ECDSA module and the RM code soft-decision module. The XOR operation combines the signature and the RM code, generating the SRAM-PUF. Notably, during placement and routing, there is no distinct boundary or single-bit key signal between the modules. The ECDSA module and the RM code soft-decision module are the core hardware components of ECDSA-PUF, and their detailed hardware structures will be elucidated in subsequent subsections.
The overall hardware structure of ECDSA-PUF comprises two core algorithm modules, the ECDSA module and the RM code soft-decision module, along with several multiplexers. The ECDSA module not only performs ECDSA-PUF signature verification but also functions as a system peripheral for the system’s ECDSA signature verification request. With the idea of multiplexing, the ECDSA module supports both the custom ECDSA signature verification proposed in this paper and the standard ECDSA signature verification. The input passes through a selector to , serving as the signal for the selector. When is low, the signature and public key on the input bus complete standard ECDSA verification. Conversely, when is high, the signature in the input ROM and the fixed public key in the circuit complete custom ECDSA signature verification.
The public key of ECDSA-PUF must be consistently fixed within the circuit to maintain a constant value. This measure ensures that only this specific public key is employed for ECDSA-PUF signature verification. Failure to secure the fixed public key in the circuit could expose vulnerabilities. Therefore, an attacker may substitute the ECDSA public key in the PUF with an alternative private–public key pair to launch an attack potentially. The ECDSA module operates in distinct working modes, resulting in different outputs. During ECDSA-PUF calculation, it produces the output X, which is then XORed with the output result of the RM code to derive the response y. Following the successful generation of the PUF response, ECDSA-PUF ceases operation. Mechanisms such as gated clocks or power gating can be employed to deactivate the clock or power supply of the RM code soft-decision module to conserve power consumption. Concurrently, remains consistently at zero, and the ECDSA module transitions to performing the standard ECDSA task of the system, ultimately outputting the verification result (pass or fail).
In addition to algorithm modules and multiplexers, there are memory modules in the structure to cache initial values and intermediate variables. In the overall hardware system, three data storage units are used: SRAM, response_temp, and ROM.
SRAM: Provides the initial response of the PUF. The data in it become invalid after the response is read, and it is then used as the data RAM to cache the intermediate variable of the RM code.response_temp: Caches the initial value of SRAM. To improve the entropy of PUF, four segments of 256-bit SRAM initial values are selected and repeated four times to obtain a 1024-bit response. The RM code structure needs to be multiplexed and calculated four times. After a calculation is completed, the initial value in the SRAM will be overwritten by the intermediate result of the calculation. To preserve the remaining initial values of the SRAM, response_temp is added to cache the other three initial values of the SRAM.ROM: Stores the w and P of the auxiliary data algorithm as well as the signature values , , required for signature verification. The variables w and P need to output the value corresponding to the multiplexing times when calculating the RM code for each multiplexing.
4.2. The Architecture of Soft-Decision RM Code
The RM code soft-decision module is one of the core algorithm modules of the ECDSA-PUF hardware. Its hardware structure is shown in Figure 2. The auxiliary calculation architecture (red part) is responsible for executing the recovery stage in Algorithm 2. In contrast, the RM decoding architecture (blue part) is responsible for executing the recursive algorithm as shown in Algorithm A3.
The auxiliary calculation architecture comprises core components such as two XOR gates at the input of the arithmetic logical unit (ALU), a comparator with an XOR gate at the output of the ALU, and a look-up table (LUT) for calculating likelihood estimation. These components serve various functions in the recovery phase of Algorithm 2.
XOR gates: Two XOR gates at the input of the ALU are utilized to perform XOR operations during the recovery phase. Specifically, they are involved in XORing operations for obtaining and .Comparator with XOR gate: The comparator, coupled with an XOR gate at the ALU’s output is responsible for converting the likelihood estimation obtained after calculations into a code word c. The XOR gate in this context contributes to the computation of .LUT: The LUT is employed to calculate the likelihood estimation using the formula . Hardware implementation of this logarithmic calculation can be complex. However, due to the limited set of possible error probability values P derived from 100 instances of power on and off during the registration phase, a pre-calculated LUT is used. The LUT helps obtain the corresponding for each P, significantly saving computational time. Additionally, the LUT’s corresponding relationship can be randomized to enhance the difficulty of attacker interference.
The data path of the auxiliary calculation architecture follows these steps: SRAM outputs the response , and ROM outputs w, , and P. The XOR operation between w and yields , and the XOR operation involving , , and results in . Subsequently, combines with to form the likelihood estimate value L. This value is input into the ALU to execute the recursive algorithm. Upon completion of the recursive algorithm, is output, and the correct codeword c is obtained after error correction through the comparator. Finally, performing XOR with and the outer-layer signature verification result X yields the correct PUF response y.
The RM decoding architecture comprises essential components such as the ALU, an address generator, a stack, and a state machine. Each component plays a unique role in the overall function of the recursive module. Here is a breakdown of their roles:
- ALU: Performs calculations related to the F function, G function, and accumulation, as specified in Algorithm A3. Facilitates operations such as passing data directly to the next module.
- Address generator: Generates the current corresponding SRAM read and write addresses based on the algorithm’s requirements.
- Stack: Functions as a cache unit that stores parameters and local variables for each round of recursion. Enables the implementation of a software-driven approach to realize hardware recursion. This approach reduces the complexity of the state machine by offloading certain control aspects to the stack.
- State machine: Serves as the core control logic for the entire recursive module. Utilizes a software-driven approach, allowing certain steps of the recursion to be expanded into a large state machine. Manages the control of the current recursive round, while the recursion of other rounds is controlled by parameters stored in and retrieved from the stack.
The data path of the recursive algorithm is illustrated in Figure 3. The likelihood estimate value L computed by the auxiliary data algorithm serves as the input to the ALU, initiating the recursion process, which is governed by the state machine. During the calculation state, the ALU performs the corresponding calculations, and the results are output into the SRAM cache. Subsequent iterations retrieve the SRAM data, which are then returned to the ALU for further computations. In the jump state, the ALU transfers data from one address in the SRAM to another. The cycle of transitioning between the calculation state and the jump state continues until the soft-decision of the RM code is completed, ultimately outputting .
The states involving pushing and popping the stack—namely, pushing the stack, pushing the stack, and popping the stack—serve as jump states responsible for the logic control of the recursive algorithm. In the pushing states, if the current execution transition corresponds to pushing the stack, the parameters of the current recursion round ( , r, m) are saved and pushed into the stack. Subsequently, the state machine restarts from the IDLE state, initiating a new round of recursion. Conversely, in the state of popping the stack, the state machine reads the saved parameters ( , r, and m) from the previous round of recursion in the stack. The machine then continues the recursion until the entire recursive process is completed.
The five states, , , , , and , belong to the calculation state and correspond to the computation of the variables in Algorithm A3. These states entail the accumulation of the F function, G function, and SoftDecision_Decode_Rep function. The ALU performs these calculations and selects the current operation through the signal associated with the current state.
The speed of the RM code soft-decision relies on the amount of SRAM read and write operations, making it essential to evaluate the hardware speed based on these factors. Therefore, an analysis of the data and address allocation of the SRAM is conducted. In each state of the state machine, the addresses and lengths of SRAM read and write operations vary depending on the current m value and state. Consequently, the address generator module generates SRAM-accessible addresses corresponding to the current state of the state machine and the current m value.
The states and exhibit no data dependency under the same round of recursion, enabling them to share the same storage space. With SRAM being 32 bits wide, the selected bit width for L and each intermediate variable has a 16-bit length, ensuring sufficient data precision without risking overflow. When mapping addresses, two adjacent 16-bit segments are placed into one address. For , the required SRAM space for the RM code soft-decision hardware is Bytes = 4 KB. Following the SRAM analysis, the soft-decision speed of the RM code can be calculated based on the data volume in the SRAM. For each r, there are 20 reads and writes, resulting in cycles for all m. Since groups for all m, the total number of SRAM reads and writes required for the entire recursion is cycles. Completing four soft-decisions of the RM code takes cycles. Factoring in the extra time for other logic, the total required cycles amount to approximately cycles.
4.3. The Architecture of ECDSA
The ECDSA module constitutes another core algorithmic component of the ECDSA-PUF hardware. Its hardware architecture is illustrated in Figure 4. Diverging from numerous existing ECSM architectures in the preceding chapters, the proposed ECDSA module ascends from the group operation layer to the ECDSA protocol layer. Consequently, beyond the ECSM/ECDSM module, it becomes imperative to accomplish the SHA256 module and the modular multiplier of the order n mandated by ECDSA to fulfill the complete ECDSA protocols.
The ECDSA architecture is designed to perform two distinct types of signature verification. It executes during the PUF generation stage and conducts the standard ECDSA signature verification algorithm as a hardware acceleration peripheral of the system after the PUF is generated. Therefore, this architecture must embody the concept of hardware reuse by utilizing a universal ECSM/ECDSM module and a modular multiplier with different calculation methods based on the specific calculation mode. Hardware multiplexing introduces additional multiplexers to govern the data paths in other modes. Our design allows the utilization of the same large-number multipliers and large-number adders for the underlying operations in various modes to conserve hardware resources.
The data path of the ECDSA architecture follows these steps:
- 1The value m is processed in the SHA256 module through the hash operation to derive the digest value of the message. A fixed random interception is employed to capture 163 bits. It is crucial to note that the random interception must be firmly embedded in the circuit to prevent potential manipulation by attackers attempting to alter the HASH value through the configuration of the interception position. The hash interception may result in entropy loss; hence, entropy augmentation is performed in subsequent steps to restore the entropy that has been lost.
- 2Compute in the signature verification algorithm. In the context of , the values and directly feed into the modular multiplier for the computation of . In contrast, during standard ECDSA signature verification, the value s requires modulo inverse calculation using Fermat’s little theorem. Hence, a shift register is incorporated in the structure to sequentially output each bit of , controlling the input to the modulo multiplier and buffering the intermediate result in the register.
- 3Calculate the ECSM of by the base point G. The result of the ECSM is cached in the register. According to the pipeline idea, the modular multiplier calculates simultaneously, and the calculation of is similar to the calculation of . Since is already obtained when calculating , performing a modular inversion is unnecessary.
- 4The output of the modular multiplier transitions from to . Subsequently, the strobe signal of the input selector is altered to input the public key H, initiating the ECSM of the public key H by .
- 5Compute the sum of points and , generating distinct outputs based on the ECDSA module. For standard ECDSA signature verification, compute ; for , compute X.
- 6For standard ECDSA signature verification, compare with r. The module outputs 1 for identical results and 0 for different ones. For , the module obtains four X values after four iterations. These 163-bit X values need to be extended to four 256-bit X values to match the number of RM code soft-decisions and restore the lost entropy. The extension method must use the same approach as the extension of stored in the ROM; otherwise, the same value cannot be obtained after the expansion of X and , preventing completion of the signature verification due to failure to satisfy Equation (1).
Based on the data dependency introduced by Equations (A9) and (A10), we proposed the timing schedule for ECSM and ECDSM with one two-stage multiplier and one square unit as shown in Figure 5a,b. “REG” represents a register in this clock cycle buffering the current intermediate value.
The timing schedule for ECSM is based on the Montgomery ladder Algorithm A4. With one two-stage multiplier, we proposed a compact six-clock-cycle (6 CC) timing schedule, as shown in Figure 5a. The multiplier is always busy, leaving no idle clock cycle. Based on this compact schedule, it consumes 6 CCs for each loop. Note that the figure illustrates the calculation process over seven clock cycles, where the seventh is also the next iteration’s first cycle. The timing schedule for ECDSM follows a similar pattern. In this timing schedule, the modular multiplication operations of PD, and , locate at clock cycles 3–4 and clock cycles 5–6, while other multiplication operations belong to PA. The squares are arranged as close to the related multiplication as possible to avoid wasting registers for holding internal values.
The timing schedule for ECDSM follows the proposed Algorithm A4. Each loop involves two PAs and one PD, resulting in 10 multiplication operations per loop. Based on this design philosophy, we introduce a compact ECDSM timing schedule utilizing a two-stage multiplier and a square unit, as illustrated in Figure 5b. Ten CCs are required to execute two PAs and one PD in each loop. The values of i and k are determined by the proposed flag signal generation Algorithm 4 during precomputation. After precomputation, modular multiplications of PD are scheduled at clock cycles 3–4 and 8–9, enabling the first PA in ECDSM to advance by one clock cycle. Meanwhile, the second PA remains idle during clock cycles 8–9 to wait for the results of ; thus, another multiplication of PD is scheduled at clock cycles 8–9 to ensure an utterly compact timing schedule without any wasted clock cycles.
The two-stage multiplier employs the Karatsuba–Ofman algorithm, with carefully inserted pipeline stages to alleviate critical paths. Two squaring units are directly cascaded, requiring one clock cycle for square and quartic powering operations. During ECDSM computation, the DAC generator precomputes chain parameters based on scalars k and l. Additionally, a finite-state machine governs the operational modes of the architecture. The register bank includes extra registers for storing internal values during ECSM and ECDSM operations. Each register is connected to a multiplexer to regulate the datapath. Control signals from these multiplexers are consolidated into instructions executed at every clock cycle.
5. Implementation Results
5.1. ASIC Results
The proposed secure ECDSA SRAM-PUF architecture can be implemented using an FPGA or an application specific integrated circuit (ASIC). With the same FPGA platform as used in existing research, we can conduct a fair comparison. Note that fairness is not assured in ASIC comparisons due to significant performance variations of the same circuit for different processes, voltages, and temperatures. However, the PUF is strictly related to hardware and cannot be reliably verified by a FPGA. Further, many existing PUF designs are based on ASIC implementations. Therefore, our proposed architecture is implemented on both an FPGA and an ASIC. For the ECDSA part, we primarily compare the FPGA implementation results with existing designs to ensure fairness in the comparison. Regarding the PUF implementation results, we aim to provide performance metrics for our designed architecture compared to existing designs for the readers’ reference.
The ASIC results are synthesized using the SMIC 40 nm library with the Synopsys design compiler. The system achieves a maximum clock frequency of 400 MHz. The total area is 327,533.2 m^2^, with the PUF consuming 15,776.6 m^2^. This result is before place and route. The gate equivalent (GE) is calculated as the total area divided by the area of one NAND2 gate under the corresponding process.
The hardware implementation of the fast ECDSA-PUF algorithm is compared with other works on SRAM-PUFs. This comparison focuses primarily on achieving a lower bit error rate (BER) and GE per bit. BER measures PUF stability, while GE per bit reflects hardware resource consumption independent of PUF length. GE per bit can be calculated using Equation (3), as proposed in [22]. Both the BER and GE per bit parameters are relatively unaffected by the process. Our design is a 1024-bit PUF; the comparison results are listed in Table 1.
Table 1 indicates that the GE per bit of our design falls within the mid-range. Notably, refs. [23,25] demonstrate lower GE per bit values but suffer from higher BER, potentially affecting chip functionality. Moreover, the proposed ECDSA-PUF hardware architecture increases the SRAM-PUF bit count by utilizing multiplexing within the ECDSA-PUF module. This is achieved through the repetition of custom ECDSA and soft-decision calculations. Consequently, the GE per bit of the proposed design would decrease significantly in scenarios requiring greater information entropy. This scalability is not achievable in other related works, highlighting the advanced nature of the proposed design in terms of lightweight characteristics. While the SRAM-PUF proposed by [22] excels in BER, the fast ECDSA-PUF presented in this paper prioritizes speed, security, and lightweight attributes. Thus, an error correction code with a lower BER is deemed sufficient for prevailing BER requirements.
Our fabricated chips in the 40 nm process were evaluated at room temperature of 25 °C with the standard supply voltage (1.0 V) to measure the intra-chip variation and inter-chip variation. To measure intra-chip variation, we compared the response to the same challenge on the same chip 1000 times. To ensure the experiment’s reliability, we derived the results of intra-chip variation by measuring five chips rather than one single chip. The intra-chip variation of our design has a mean value (M) of 49.44% with 2.44% standard deviation (SD). Further, we measured the output responses of all our chips (40 chips) with the same challenge to measure inter-chip variation. The results of inter-chip variation are M = 49.44% and SD = 2.44%, and the mean value of our design is close to the ideal value (M = 50%). The quality result of SRAM-PUF in our design is compared with existing research in Table 2.
To measure the temperature resistance and voltage resistance of the SRAM-PUF, we conducted BER measurements on the SRAM-PUF in our design across a temperature range from 0 °C to 85 °C and a voltage range from 0.8 V to 1.2 V (±20% of the standard voltage). The most error-prone case arises when the temperature and voltage are 85 °C and 1.2 V, respectively. In this case, the BER reaches 11.21%, approaching the error correction capability upper limit of the in our design. In this extreme scenario, we conducted 100 complete experiments for each chip, and no response errors occurred.
5.2. FPGA Results
The proposed architecture was instantiated on the Xilinx Virtex-7 FPGAs using Vivado 2022, a choice made to ensure a fair and contemporary comparison with existing designs. To gauge our design’s performance in a manner that is both comprehensive and reasonable, we executed the architecture across NIST-recommended and encompassed variations in scale to provide a thorough evaluation of its capabilities and efficiency. Considering the ECDSA in our work is a custom design, we compare the performance of ECDSM with existing works to ensure fairness in comparison. For existing designs that only implement ECSM, we consider twice their total latency as an approximate latency for ECDSM. In reality, this rough evaluation method often yields more optimistic estimates for existing designs, as it neglects the PA after two ECSMs.
In our design, the total latency includes DAC generation, iteration, and inversion. Although in the precomputation stage, our design needs to compute both flag signals for DAC construction and , these two parts are executed in separate circuit components, allowing them to be performed in parallel. Moreover, the latency of computing flag signals is significantly greater than computing . Therefore, in the total latency consideration, we no longer account for the latency introduced by . For , constructing the DAC chain requires m clock cycles. The total latency can be calculated by Equation (4).
In our design, there is one multiplier and one square unit. When utilizing Itoh’s [30] proposed modular inversion algorithm, the modular inverse can be calculated within cycles. The iteration consumes clock cycles over GF( ) and one additional clock cycle to wait for the final multiplication result.
Most existing research utilizes ATP as a performance benchmark to assess the trade-offs between hardware resources and latency. While some research evaluates the area using the number of LUTs , most employ the number of slices . In our design, we evaluate ATP using the number of slices to ensure fair comparisons, as our design introduces additional storage resources. We estimate the number of slices for the literature lacking slice data based on reported LUT data. For Xilinx Virtex-7 FPGAs, each slice typically contains four LUT6. However, not all utilized slices are fully occupied with all four LUT6. Therefore, the ratio of LUTs to slices, , is typically between 3 and 3.5. We set this ratio to 3.5 in this paper to facilitate fair comparisons.
Table 3 shows the results comparison of ECDSM over . Due to adopting the DAC for ECDSM calculation, the number of clock cycles required for our design is significantly lower than those of existing designs using a single multiplier. From the perspective of area–speed trade-off, our design achieves a better ATP indicator, being on par with existing designs [15,16]. This design’s latency is inferior to [15,17], as both [15,17] adopt architectures with multiple multipliers. Hence, the number of clock cycles needed to compute ECDSM is minimal. However, at the same time, the area cost of existing designs [15,17] is larger: especially design [17], which uses three parallel multipliers. From the area–speed trade-off perspective, this design’s ATP surpasses existing designs [15,17].
The PUF on the FPGA has a total cost of 112 slices, which is very limited compared to the cost of ECDSA. The PUF in this design is used only during the system startup phase and not during regular system operation, so a miniature PUF can effectively save hardware resources. The ECDSA, ECSM, and ECDSM functions in our designs can also be reused for other purposes. Therefore, we have consumed most of the logic resources to build a high-performance ECDSA architecture.
6. Conclusions
This paper proposes a universal ECSM/ECDSM architecture for constructing the secure ECDSA SRAM-PUF presented herein. Initially, the paper outlines an attack scheme for PUFs constructed from conventional SRAM and ROM within SoCs. This scheme demonstrates that by repeatedly powering the system on and off and exploiting the SoC’s processor to access SRAM and ROM to tamper with the p value, the PUF’s unclonability can be compromised. This paper leverages the ECDSA to counteract this attack scheme and designs an SRAM-PUF architecture based on a custom ECDSA, ensuring the p value remains untampered with through the custom ECDSA. The paper proposes a universal architecture for critical operations, such as ECSM and ECDSM. For ECSM calculations within ECDSA, iterations of PA and PD can be performed directly; for the more time-consuming ECDSM calculations within ECDSA, a two-dimensional DAC is constructed through precomputation, followed by iterations of PA and PD based on the two-dimensional DAC. The ECDSM based on a two-dimensional DAC theoretically saves 16.7% of the computational overhead compared to executing ECSM twice, significantly increasing computation speed. Moreover, this universal architecture saves a significant amount of hardware resources due to the high similarity in the datapaths of ECSM and ECDSM. The secure ECDSA SRAM-PUF proposed in this paper is implemented on ASIC and FPGA. This design exhibits lower BER and better ATP performance compared to existing research. In the future, we will further exploit DAC-based ECDSA over .
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Arora H. Soni G.K. Kushwaha R.K. Prasoon P. Digital image security based on the hybrid model of image hiding and encryption Proceedings of the 2021 6th International Conference on Communication and Electronics Systems (ICCES)Coimbatre, India 8–10 July 2021 IEEE Piscataway, NJ, USA 202111531157
- 2Matted S. Shankar G. Jain B.B. Enhanced image security using stenography and cryptography Computer Networks and Inventive Communication Technologies Springer Berlin/Heidelberg, Germany 202111711182
- 3Halak B. Zwolinski M. Mispan M.S. Overview of PUF-based hardware security solutions for the Internet of Things Proceedings of the 2016 IEEE 59th International Midwest Symposium on Circuits and Systems (MWSCAS)Abu Dhabi, United Arab Emirates 16–19 October 2016 IEEE Piscataway, NJ, USA 201614
- 4Mall P. Amin R. Das A.K. Leung M.T. Choo K.K.R. PUF-based authentication and key agreement protocols for Io T, WS Ns and smart grids: A comprehensive survey IEEE Internet Things J.202298205822810.1109/JIOT.2022.3142084 · doi ↗
- 5Holcomb D.E. Burleson W.P. Fu K. Power-up SRAM state as an identifying fingerprint and source of true random numbers IEEE Trans. Comput.2008581198121010.1109/TC.2008.212 · doi ↗
- 6van Dijk M. Rührmair U. Protocol attacks on advanced PUF protocols and countermeasures Proceedings of the 2014 Design, Automation & Test in Europe Conference & Exhibition (DATE)Dresden, Germany 24–28 March 2014 IEEE Piscataway, NJ, USA 201416
- 7Rührmair U. van Dijk M. PU Fs in security protocols: Attack models and security evaluations Proceedings of the 2013 IEEE Symposium on Security and Privacy Berkeley, CA, USA 19–22 May 2013 IEEE Piscataway, NJ, USA 2013286300
- 8Rührmair U. Jaeger C. Algasinger M. An attack on PUF-based session key exchange and a hardware-based countermeasure: Erasable PU Fs Proceedings of the International Conference on Financial Cryptography and Data Security Gros Islet, Saint Lucia 28 February–4 March 2011 Springer Berlin/Heidelberg, Germany 2011190204
