Skip to main content

A Distinguisher for RNGs with LFSR Post-processing

  • Conference paper
  • First Online:
Information Security and Cryptology (Inscrypt 2020)

Part of the book series: Lecture Notes in Computer Science ((LNSC,volume 12612))

Included in the following conference series:

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Bucci, M., Luzzi, R.: Fully digital random bit generators for cryptographic applications. IEEE Trans. Circuits Syst. I Regul. Pap. 55(3), 861–875 (2008)

    Article  MathSciNet  Google Scholar 

  2. Davies, R.B.: Exclusive or (XOR) and hardware random number generators (2002). Accessed 31 May 2013

    Google Scholar 

  3. 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

    Chapter  Google Scholar 

  4. 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)

    Google Scholar 

  5. 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

    Chapter  Google Scholar 

  6. Golic, J.D.: New paradigms for digital generation and post-processing of random data. IACR Cryptology ePrint Archive 2004, 254 (2004)

    Google Scholar 

  7. Golic, J.D.: New methods for digital generation and postprocessing of random data. IEEE Trans. Comput. 55(10), 1217–1229 (2006)

    Article  Google Scholar 

  8. Killmann, W., Schindler, W.: A proposal for: Functionality classes for random number generators. ser. BDI, Bonn (2011)

    Google Scholar 

  9. L’Ecuyer, P., Simard, R.: Testu01: AC library for empirical testing of random number generators. ACM Trans. Math. Softw. (TOMS) 33(4), 22 (2007)

    MATH  Google Scholar 

  10. 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)

    Article  Google Scholar 

  11. Marsaglia, G.: Diehard battery of tests of randomness (1995). http://www.stat.fsu.edu/pub/diehard

  12. Meier, W., Staffelbach, O.: Fast correlation attacks on certain stream ciphers. J. Cryptol. 1(3), 159–176 (1988). https://doi.org/10.1007/BF02252874

    Article  MathSciNet  MATH  Google Scholar 

  13. 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)

    Google Scholar 

  14. Von Neumann, J.: Various techniques used in connection with random digits. Appl. Math. Ser. 12, 36–38 (1951)

    Google Scholar 

  15. 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

    Chapter  Google Scholar 

  16. 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

    Chapter  Google Scholar 

Download references

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

Authors

Corresponding author

Correspondence to Tianyu Chen .

Editor information

Editors and Affiliations

A Appendix: The Detailed Statistical Test Report

A Appendix: The Detailed Statistical Test Report

Table 6. NIST SP 800-22 statistical test report of generating sequence, when degree of generating polynomial is 32 and \(s = 0.01\).
Table 7. NIST SP 800-22 statistical test report of the sequence \(B_0\)
Table 8. NIST SP 800-22 statistical test report of the sequence \(B_9\)

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics