Randomness Test of LightMAC-Based Pseudorandom Number Generator (PRNG) with NIST SP 800-22 Revision 1A Test

Bety Hayat Susanti, Wahyu Achmad Fadiel, Yeni Farida, Obrina Briliyant

Abstract


Random numbers are essential for ensuring the security and unpredictability of cryptographic systems; however, resource-constrained devices still lack effective lightweight random number generators. This gap leaves encryption, authentication, and key generation vulnerable, exposing critical infrastructure to adversarial exploitation. This study presents the development and statistical evaluation of a Pseudo-Random Number Generator (PRNG) based on the LightMAC construction instantiated with the PRESENT lightweight block cipher. The proposed PRNG operates by iteratively processing a fixed seed message through LightMAC-PRESENT with a varying counter. The randomness of the generated bit sequences was rigorously analyzed using the NIST SP 800-22 Revision 1A test suite. The evaluation encompassed multiple implementation configurations, including two seed message lengths ($|x|$) of 64 bits and 128 bits, two key lengths for the underlying PRESENT cipher of 80 bits and 128 bits, and three counter lengths of 8 bits, 16 bits, and 32 bits. The results demonstrate that the LightMAC-PRESENT-based PRNG satisfies the NIST statistical requirements under specific parameter configurations. For a 64-bit seed message, a 128-bit PRESENT key combined with an 8-bit or 16-bit counter successfully passes all tests. For a 128-bit seed message, the generator achieves compliance with an 80-bit key and a 128-bit key. The optimal configuration identified is a 128-bit seed message, an 80-bit key, and a 16-bit counter, which passes all tests across all key-pattern variations. These findings provide critical insights into the optimal parameters for secure, efficient, lightweight deterministic random bit generation in resource-constrained environments.

Keywords


PRESENT Block Cipher Algorithm; LightMAC; Pseudorandom Number Generator; NIST SP 800-22; Lightweight Cryptography.

Full Text:

PDF

References


[1] C. Kenny and K. Mosurski. “Random number generators: An evaluation and comparison of Random.org and some commonly used generators”. Management Science and Information Systems Studies, 2005. URL: https://www.random.org/analysis/Analysis2005.pdf.

[2] W. Stallings. Cryptography and Network Security: Principles and Practice. 8th Global ed. London, United Kingdom: Pearson Education Limited, 2023. URL: https://www.pearson.com/en-gb/subject-catalog/p/cryptography-and-network-security-principles-and-practice-global-edition/P200000007245.

[3] M. Bellare, R. Canetti, and H. Krawczyk. “Message authentication using hash functions—The HMAC construction”. RSA Laboratories’ CryptoBytes, vol. 2, no. 1, 1996. URL: https://cseweb.ucsd.edu/~mihir/papers/hmac-cb.pdf.

[4] B. Preneel. “HMAC”. In Encyclopedia of Cryptography and Security, H. C. A. van Tilborg and S. Jajodia, Eds., 2nd ed. New York, NY: Springer, pp. 554–555, 2011. URL: https://link.springer.com/rwe/10.1007/978-1-4419-5906-5_581.

[5] E. Barker and J. Kelsey. Recommendation for Random Number Generation Using Deterministic Random Bit Generators. NIST Special Publication 800-90A Revision 1. National Institute of Standards and Technology, 2015. DOI: https://doi.org/10.6028/NIST.SP.800-90Ar1.

[6] A. Luykx, B. Preneel, E. Tischhauser, and K. Yasuda. “A MAC mode for lightweight block ciphers”. In Fast Software Encryption, T. Peyrin, Ed. Berlin, Heidelberg: Springer, pp. 43–59, 2016. DOI: https://doi.org/10.1007/978-3-662-52993-5_3.

[7] A. Bogdanov, L. R. Knudsen, G. Leander, C. Paar, A. Poschmann, M. J. B. Robshaw, Y. Seurin, and C. Vikkelsoe. “PRESENT: An ultra-lightweight block cipher”. In Cryptographic Hardware and Embedded Systems - CHES 2007. Springer, pp. 450–466, 2007. DOI: https://doi.org/10.1007/978-3-540-74735-2_31.

[8] ISO/IEC. Information Technology – Security Techniques – Lightweight Cryptography – Part 2: Block Ciphers. Standard ISO/IEC 29192-2:2012. Geneva, Switzerland: International Organization for Standardization, 2012. URL: https://www.iso.org/standard/56552.html.

[9] I. N. B. M. Shah and E. S. B. Ismail. “Randomness analysis on lightweight block cipher, PRESENT”. Journal of Computer Science, vol. 16, no. 11, pp. 1639–1647, Nov. 2020. DOI: https://doi.org/10.3844/jcssp.2020.1639.1647.

[10] A. Rukhin et al. A Statistical Test Suite for Random and Pseudorandom Number Generators for Cryptographic Applications. NIST Special Publication 800-22 Rev. 1a. National Institute of Standards and Technology, 2010. URL: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-22r1a.pdf.

[11] A. B. O. López, L. H. Encinas, A. M. Muñoz, and F. M. Vitini. “A lightweight pseudorandom number generator for securing the Internet of Things”. IEEE Access, vol. 5, pp. 27800–27806, 2017. DOI: https://doi.org/10.1109/ACCESS.2017.2774105.

[12] L. H. Panuntun and B. H. Susanti. “Evaluation of randomness hash-DRBG-based Ascon hash function using NIST SP800-22”. In AIP Conference Proceedings, vol. 3320, no. 1, p. 030003, July 2025. DOI: https://doi.org/10.1063/5.0286255.

[13] B. H. Susanti, J. Jimmy, and M. W. Ardyani. “ENT randomness test on DM PRESENT-80 and DM-PRESENT-128-based pseudorandom number generator”. In 4th International Seminar on Research of Information Technology and Intelligent Systems (ISRITI), pp. 33–38, 2021. DOI: https://doi.org/10.1109/ISRITI54043.2021.9702862.

[14] B. H. Susanti, J. Jimmy, and M. W. Ardyani. “Evaluation with NIST statistical test on pseudorandom number generators based on DMP-80 and DMP-128”. In 2022 5th International Seminar on Research of Information Technology and Intelligent Systems (ISRITI), pp. 166–171, 2022. DOI: https://doi.org/10.1109/ISRITI56927.2022.10053041.

[15] A. J. Menezes, P. C. van Oorschot, and S. A. Vanstone. Handbook of Applied Cryptography. Boca Raton: CRC Press, 2018. DOI: https://doi.org/10.1201/9780429466335.

[16] E. Almaraz Luengo. “Coverage study of the NIST SP 800-22 randomness statistical tests suite”. Computational and Applied Mathematics, vol. 45, 2026. DOI: https://doi.org/10.1007/s40314-026-03663-y.

[17] G. Saldamli, L. Ertaul, and A. Shankaralingappa. “Analysis of lightweight message authentication codes for IoT environments”. In 2019 Fourth International Conference on Fog and Mobile Edge Computing (FMEC), pp. 235–240, June 2019. DOI: https://doi.org/10.1109/FMEC.2019.8795359.

[18] M. S. Kaya and K. İnce. “Benchmarking various 1D chaotic maps for lightweight pseudo-random number generation”. In 2024 8th International Artificial Intelligence and Data Processing Symposium (IDAP), pp. 1–5, Sept. 2024. DOI: https://doi.org/10.1109/IDAP64064.2024.10710841.

[19] S. R, V. S. Madhukar, S. V, K. S, N. K. H, and S. J. “Wireless reseeding scheme for lightweight PRNG architecture on FPGA—Design and analysis”. In 2024 Control Instrumentation System Conference (CISCON), pp. 1–6, Aug. 2024. DOI: https://doi.org/10.1109/CISCON62171.2024.10696289.

[20] S. Sandakly, C. Salem, K. Challita, S. Dass, J. Azar, J. Bou Abdo, and J. Demerjian. “XorshiftH128+: A hybrid random number generator for lightweight IoT”. In 2023 IEEE International Conference on Artificial Intelligence, Blockchain, and Internet of Things (AIBThings), pp. 1–5, Sept. 2023. DOI: https://doi.org/10.1109/AIBThings58340.2023.10292458.

[21] U. Çabuk, Ö. Aydin, and G. Dalkiliç. “A random number generator for lightweight authentication protocols: xorshiftR”. Turkish Journal of Electrical Engineering and Computer Sciences, vol. 25, no. 6, pp. 4818–4828, Jan. 2017. DOI: https://doi.org/10.3906/elk-1703-361.

[22] B. H. Susanti, W. A. Fadiel, Y. Farida, and O. Briliyant. Source Code and Dataset for: Randomness Test of LightMAC-Based Pseudorandom Number Generator (PRNG) with NIST SP 800-22 Revision 1A Test. Zenodo, Aug. 2026. DOI: https://doi.org/10.5281/zenodo.22023993.

[23] E. L. Lehmann and J. P. Romano. Testing Statistical Hypotheses. 3rd ed. Springer Science & Business Media, 2006. DOI: https://doi.org/10.1007/0-387-27605-X.




DOI: https://doi.org/10.18860/cauchy.v11i2.43424

Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Wahyu Achmad Fadiel, Yeni Farida, Obrina Briliyant

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Editorial Office
Mathematics Department,
Maulana Malik Ibrahim State Islamic University of Malang
Gajayana Street 50 Malang, East Java, Indonesia 65144
e-mail: cauchy@uin-malang.ac.id

Creative Commons License
CAUCHY: Jurnal Matematika Murni dan Aplikasi is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.