Entropy Model of Rosin Autonomous Boolean Network Digital True Random Number Generator
Abstract
:1. Introduction
2. TRNGs Based on Autonomous Boolean Networks
3. Entropy Model of Rosin Autonomous Boolean Network TRNG
3.1. The Entropy Model of Ma Is Not Applicable to TRNGs of the Rosin Autonomous Boolean Network
- Implement the structure shown in Figure 1 using FPGA, with n = 16, and sample the TRNG output with a 100 MHz system clock signal. The sampling method is as follows: when the rising edge of the sampled signal jumps, the counter begins to record the number of rising edges of the TRNG output signal; when the falling edge of the sampled signal jumps, the counter outputs the number of rising edges counted and performs a reset operation to obtain a total of count values;
- The average value is 128.6207, and the variance is .
3.2. Allan Variance Is More Suitable for Describing the Jitter of Rosin Autonomous Boolean Network TRNGs
3.3. Entropy Model of the Rosin Autonomous Boolean Network TRNG
4. Model Verification
4.1. Validation of the Effectiveness of the Entropy Model
- Implement the structure shown in Figure 1 using an FPGA, with n = 16. Let the output of this Rosin Autonomous Boolean Network TRNG be denoted as signal . Count signal using a clock signal with a frequency of 100 MHz, resulting in a total of count values.
- Calculate the mean of the count values, .
- Set = 4 and M = 8 in the formula for calculating the Allan variance. Utilizing count values, use Matlab R2019b to compute the Allan variance:The calculated Allan variance is .
- Given a lower bound on entropy, we can compute the corresponding value of the quality factor Q, according to the relationship between the output entropy and quality factor [21]:For example, if is set to 0.9999, then . Assuming that the low-frequency sampling clock signal is without jitter, let be the frequency of the low-frequency sampling signal and and be the frequency and jitter of the transition signal , respectively. The highest sampling frequency for the slow signal can be obtained by . The highest calculated sampling frequency under these conditions is 18.2 MHz when .
- To evaluate the Rosin Autonomous Boolean Network TRNG (n = 16) as shown in Figure 1, collect data points for four cases, that is, the sample frequencies are 18.2 MHz, 15 MHz, 20 MHz, and 60 MHz, which correspond to the highest sampling frequency, a lower sampling frequency, a higher sampling frequency, and a significantly higher frequency. The corresponding entropy values are shown in Figure 6.
4.2. Validation of the Correctness of the Entropy Model
- Obtain count values.
- Calculate the mean using the count values.
- Similar to Section 4.1, calculate the sampling frequency using the count values.
- Calculate the minimum value of k that satisfies .
- Divide each k count value into a group, count the number of groups that satisfy , and use the relationship to approximate the probability value.
4.3. Comparison of Results and Recommended Parameters
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Crocetti, L.; Matteo, S.D.; Nannipieri, P.; Fanucci, L.; Saponara, S. Design and Test of an Integrated Random Number Generator with All-Digital Entropy Source. Entropy 2022, 24, 139. [Google Scholar] [CrossRef] [PubMed]
- Killmann, W. A Proposal for: Functionality Classes and Evaluation Methodology for True (Physical) Random Number Generators; Bundesmat fur Sicherheir in der Information technik (BSI): Bon, Germany, 2001. [Google Scholar]
- Rukhin, A.; Soto, J.; Nechvatal, J.; Smid, M.; Barker, E.; Leigh, S.; Levenson, M.; Vangel, M.; Banks, D.; Heckert, A. Statistical Test Suite for Random and Pseudorandom Number Generators for Cryptographic Applications. Revision 1A; National Institute of Standards and Technology: Gaithersburg, MD, USA, 2010. [Google Scholar]
- Barker, E.B.; Feldman, L.; Witte, G. ITL Bulletin: Recommendation for Random Number Generation Using Deterministic Random Bit Generators (August 2015); National Institute of Standards and Technology: Gaithersburg, MD, USA, 2015. [Google Scholar]
- GM/T 0005-2012; Randomness Testing Specifications. National Standardization Administration of China: Beijing, China, 2012.
- Saponara, S. Review of Methodologies and Metrics for Assessing the Quality of Random Number Generators. Electronics 2023, 12, 723. [Google Scholar]
- Ma, Y.; Lin, J.; Chen, T.; Xu, C.; Liu, Z.; Jing, J. Entropy Evaluation for Oscillator-Based True Random Number Generators. In Proceedings of the Cryptographic Hardware and Embedded Systems, Busan, Republic of Korea, 23–26 September 2014. [Google Scholar]
- Killmann, W.; Schindler, W. A Design for a Physical RNG with Robust Entropy Estimators. In Proceedings of the Cryptographic Hardware and Embedded Systems—CHES 2008, 10th International Workshop, Washington, DC, USA, 10–13 August 2008. [Google Scholar]
- Zhu, S.; Chen, H.; Fan, L.; Chen, M.; Xi, W.; Feng, D. Jitter estimation with high accuracy for oscillator-based TRNGs. In Proceedings of the Smart Card Research and Advanced Applications: 17th International Conference, CARDIS 2018, Montpellier, France, 12–14 November 2018; Revised Selected Papers 17. Springer: Berlin/Heidelberg, Germany, 2019; pp. 125–139. [Google Scholar]
- Ma, Y.; Chen, T.; Lin, J.; Yang, J.; Jing, J. Entropy estimation for ADC sampling-based true random number generators. IEEE Trans. Inf. Forensics Secur. 2019, 14, 2887–2900. [Google Scholar] [CrossRef]
- Saarinen, M.J.O. On entropy and bit patterns of ring oscillator jitter. In Proceedings of the 2021 Asian Hardware Oriented Security and Trust Symposium (AsianHOST), Shanghai, China, 16–18 December 2021; IEEE: Piscataway, NJ, USA, 2021; pp. 1–6. [Google Scholar]
- Rosin, D.P.; Rosin, D.P. Ultra-fast physical generation of random numbers using hybrid boolean networks. In Dynamics of Complex Autonomous Boolean Networks; Springer: Berlin/Heidelberg, Germany, 2015; pp. 57–79. [Google Scholar]
- Hui, Y. Design and Analysis of Digital True Random Number Generator. Master’s Thesis, Xidian University, Xi’an, China, 2018. [Google Scholar]
- Gong, L.; Zhang, J.; Sang, L.; Liu, H.; Wang, Y. The unpredictability analysis of Boolean chaos. IEEE Trans. Circuits Syst. II Express Briefs 2019, 67, 1854–1858. [Google Scholar] [CrossRef]
- Braccini, M.; Roli, A.; Barbieri, E.; Kauffman, S.A. On the criticality of adaptive Boolean network robots. Entropy 2022, 24, 1368. [Google Scholar] [CrossRef] [PubMed]
- Charlot, N.; Canaday, D.; Pomerance, A.; Gauthier, D.J. Hybrid boolean networks as physically unclonable functions. IEEE Access 2021, 9, 44855–44867. [Google Scholar] [CrossRef]
- Gao, S.; Wu, R.; Wang, X.; Liu, J.; Li, Q.; Wang, C.; Tang, X. Asynchronous updating Boolean network encryption algorithm. IEEE Trans. Circuits Syst. Video Technol. 2023, 33, 4388–4400. [Google Scholar] [CrossRef]
- Yan, P.F.; Zhang, H.; Zhang, C.; Chang, R.Y.; Sun, Y.J. Synchronization of Boolean networks with chaos-driving and its application in image cryptosystem. IET Image Process. 2023, 17, 4176–4189. [Google Scholar] [CrossRef]
- Allini, E.N.; Skórski, M.; Petura, O.; Bernard, F.; Laban, M.; Fischer, V. Evaluation and monitoring of free running oscillators serving as source of randomness. IACR Trans. Cryptogr. Hardw. Embed. Syst. 2018, 2018, 214–242. [Google Scholar] [CrossRef]
- Allan, D.W. A Modified “Allan Variance” with Increased Oscillator Characterization Ability. In Proceedings of the Annual Frequency Control Symposium, Philadelphia, PA, USA, 27–29 May 1981. [Google Scholar]
- GM/T 0078-2020; Design Guide for Password Random Number Generation Module. National Standardization Administration of China: Beijing, China, 2020.
Proportion with a Sample Frequency of 100 MHz | Proportion with the Sample Frequency Obtained from Ma’s Model | Proportion with the Sample Frequency Obtained from Our Improved Model | |
---|---|---|---|
Frequency | 0.971 * | 0.830 * | 0.993 |
Block Frequency | 0.990 | 0.970 * | 0.991 |
Cumulative Sums | 0.938 * | 0.851 * | 0.995 |
Runs | 0.989 | 0.972 * | 0.991 |
LongestRun | 0.982 * | 0.970 * | 0.993 |
Rank | 0.985 * | 0.978 * | 0.996 |
FFT | 0.991 | 0.971 * | 0.996 |
NonOverlappingTemplate | 0.983 * | 0.934 * | 0.988 |
OverlappingTemplate | 0.927 * | 0.788 * | 0.987 |
ApproximateEntropy | 0.970 * | 0.930 * | 0.990 |
RandomExcursions | 0.989 | 0.954 * | 0.989 |
RandomExcursionsVar | 0.972 * | 0.955 * | 0.988 |
Serial | 0.987 | 0.880 * | 0.990 |
LinearComplexity | 0.982 * | 0.960 * | 0.994 |
Counting Value | Number of Occurrences | Proportion | |
---|---|---|---|
496 | 1 | 0.00001 | |
497 | 27 | 0.0004 | |
498 | 750 | 0.0114 | |
499 | 7644 | 0.1166 | |
500 | 24,191 | 0.3691 | 0 |
501 | 24,275 | 0.3704 | |
502 | 7819 | 0.1193 | |
503 | 798 | 0.00122 | |
504 | 31 | 0.0005 | 0 |
5 Nodes | 6 Nodes | 7 Nodes | 8 Nodes | |
---|---|---|---|---|
Mean | 129.1118 | 129.0564 | 130.1705 | 128.5994 |
Allan variance | ||||
Recommended half-cycle length | 12,136.5092 | 7488.4844 | 6508.525 | 3343.5844 |
Sample frequency | 1.055 MHz | 1.71 MHz | 1.967 MHz | 3.829 MHz |
5 Nodes | 6 Nodes | 7 Nodes | 8 Nodes | |
---|---|---|---|---|
Directly output entropy value | 0.933503 | 0.941833 | 0.943939 | 0.974506 |
Entropy value under recommended parameters | 0.99996 | 0.99994 | 0.99991 | 0.99997 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Zong, Y.; Dong, L.; Lu, X. Entropy Model of Rosin Autonomous Boolean Network Digital True Random Number Generator. Electronics 2024, 13, 1140. https://doi.org/10.3390/electronics13061140
Zong Y, Dong L, Lu X. Entropy Model of Rosin Autonomous Boolean Network Digital True Random Number Generator. Electronics. 2024; 13(6):1140. https://doi.org/10.3390/electronics13061140
Chicago/Turabian StyleZong, Yi, Lihua Dong, and Xiaoxin Lu. 2024. "Entropy Model of Rosin Autonomous Boolean Network Digital True Random Number Generator" Electronics 13, no. 6: 1140. https://doi.org/10.3390/electronics13061140
APA StyleZong, Y., Dong, L., & Lu, X. (2024). Entropy Model of Rosin Autonomous Boolean Network Digital True Random Number Generator. Electronics, 13(6), 1140. https://doi.org/10.3390/electronics13061140