Abstract
Random number generator (RNG) is a fundamental element in modern cryptography. If the quality of the outputs generated by RNGs is not as well as expected, the cryptographic applications which use the random number service are vulnerable to security threats. In reality, the entropy source of RNGs could be impressible by the changes of environmental factors, resulting in defects in the generated data, such as poor statistical properties. Thus, RNG is generally designed with a preset post-processing module to improve the quality of the output sequences. Linear feedback shift register (LFSR) is one of the frequently used methods for post-processing thanks to the characteristic of simplicity and no reduction in output throughput. However, we point out that even if the statistical properties of the outputs of the entropy source are extremely poor, the sequences processed by LFSR can still pass the statistical test. This undoubtedly increases the security risks in the usage of RNGs. In this work, we propose a distinguisher for the RNGs with LFSR post-processing for the first time. The distinguisher can be used to detect the RNGs with LFSR post processing, and we theoretically prove the sequences before processing can be recovered. On this basis, we design a new statistical test via combining the distinguisher with the Frequency Test in the NIST test suite. The experimental results show that if the sequence is biased before being processed by LFSR, our proposed method can detect it, but the NIST SP 800-22 Test Suite cannot.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Bucci, M., Luzzi, R.: Fully digital random bit generators for cryptographic applications. IEEE Trans. Circuits Syst. I Regul. Pap. 55(3), 861–875 (2008)
Davies, R.B.: Exclusive or (XOR) and hardware random number generators (2002). Accessed 31 May 2013
Dichtl, M.: Bad and good ways of post-processing biased physical random numbers. In: Biryukov, A. (ed.) FSE 2007. LNCS, vol. 4593, pp. 137–152. Springer, Heidelberg (2007). https://doi.org/10.1007/978-3-540-74619-5_9
Fischer, V., Aubert, A., Bernard, F., Valtchanov, B., Danger, J., Bochard, N.: True random number generators in configurable logic devices. Project ANR-ICTeR, pp. 23–28 (2009)
Garcia, F.D., de Koning Gans, G., Muijrers, R., van Rossum, P., Verdult, R., Schreur, R.W., Jacobs, B.: Dismantling MIFARE classic. In: Jajodia, S., Lopez, J. (eds.) ESORICS 2008. LNCS, vol. 5283, pp. 97–114. Springer, Heidelberg (2008). https://doi.org/10.1007/978-3-540-88313-5_7
Golic, J.D.: New paradigms for digital generation and post-processing of random data. IACR Cryptology ePrint Archive 2004, 254 (2004)
Golic, J.D.: New methods for digital generation and postprocessing of random data. IEEE Trans. Comput. 55(10), 1217–1229 (2006)
Killmann, W., Schindler, W.: A proposal for: Functionality classes for random number generators. ser. BDI, Bonn (2011)
L’Ecuyer, P., Simard, R.: Testu01: AC library for empirical testing of random number generators. ACM Trans. Math. Softw. (TOMS) 33(4), 22 (2007)
Lin, Y.: ‘Shift and add’ property of m-sequences and its application to channel characterisation of digital magnetic recording. IEE Proc. Commun. 142(3), 135–140 (1995)
Marsaglia, G.: Diehard battery of tests of randomness (1995). http://www.stat.fsu.edu/pub/diehard
Meier, W., Staffelbach, O.: Fast correlation attacks on certain stream ciphers. J. Cryptol. 1(3), 159–176 (1988). https://doi.org/10.1007/BF02252874
Rukhin, A., Soto, J., Nechvatal, J., Smid, M., Barker, E.: A statistical test suite for random and pseudorandom number generators for cryptographic applications. Technical report, Booz-Allen and Hamilton Inc Mclean Va (2001)
Von Neumann, J.: Various techniques used in connection with random digits. Appl. Math. Ser. 12, 36–38 (1951)
Zeng, K., Hung, M.: On the linear syndrome method in cryptanalysis. In: Goldwasser, S. (ed.) CRYPTO 1988. LNCS, vol. 403, pp. 469–478. Springer, New York (1990). https://doi.org/10.1007/0-387-34799-2_32
Zeng, K., Yang, C.H., Rao, T.R.N.: An improved linear syndrome algorithm in cryptanalysis with applications. In: Menezes, A.J., Vanstone, S.A. (eds.) CRYPTO 1990. LNCS, vol. 537, pp. 34–47. Springer, Heidelberg (1991). https://doi.org/10.1007/3-540-38424-3_3
Acknowledgments
This work was partially supported by National Key R&D Program of China (No. 2018YFB0804300), National Natural Science Foundation of China (No. 61872357 and No. 61802396), and Cryptography Development Foundation of China (No. MMJJ20170205, MMJJ20180113).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
A Appendix: The Detailed Statistical Test Report
A Appendix: The Detailed Statistical Test Report
Rights and permissions
Copyright information
© 2021 Springer Nature Switzerland AG
About this paper
Cite this paper
Wu, X., Ma, Y., Chen, T., Lv, N. (2021). A Distinguisher for RNGs with LFSR Post-processing. In: Wu, Y., Yung, M. (eds) Information Security and Cryptology. Inscrypt 2020. Lecture Notes in Computer Science(), vol 12612. Springer, Cham. https://doi.org/10.1007/978-3-030-71852-7_22
Download citation
DOI: https://doi.org/10.1007/978-3-030-71852-7_22
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-71851-0
Online ISBN: 978-3-030-71852-7
eBook Packages: Computer ScienceComputer Science (R0)