Introduction
Many standards contain requirements and references for the extraction, validation, and use of random number generators (RNGs), to verify that their output is indeed random.
This application note provides guidelines for verification of the randomness of numbers generated by the RNG peripheral embedded in a selection of STM32 microcontrollers (MCUs). These MCUs are listed in Table 1. The verification is based either on the NIST (national institute of standards and technology) SP 800-22rev1a (April 2010) or SP 800-90b (January 2018) statistical test suite (STS).
This document is structured as follows:
- A general introduction to the STM32 microcontroller random number generator. See STM32 MCU RNG.
- The NIST SP800-22rev1a test suite. See NIST SP800-22rev1a test suite.
- The steps needed to run NIST SP800-22rev1a test and analysis. See NIST SP800-22rev1a test suite running and analyzing.
- The NIST SP800-90b test suite. See NIST SP800-90b test suite.
- The steps needed to run the NIST SP800-90b test and analysis. See NIST SP800-22rev1a test suite running and analyzing.
| Type | Products | ||
|---|---|---|---|
| Can be checked with SP800-22rev1a | Can be checked with SP800-90b | ||
| Microcontrollers | Series | STM32F2 series, STM32F4 series, STM32F7 series, STM32L0 series, STM32L4 series, STM32G4 series, STM32WB series. | STM32WBA series, STM32H5 series, STM32L5 series, STM32U0 series, STM32U5 series, STM32WL series, STM32MP2 series, STM32N6 series, STM32U3 series, STM32C5 series. |
| Lines | STM32H742, STM32H743/753, STM32H745/755, STM32H747/757 lines, STM32H750 value line, STM32L4R5/S5, STM32L4R7/S7, | STM32H7R3/7S3 line, STM32H7R7/7S7 line, STM32H7A3/7B3 line, STM32H7B0 value line, STM32H723/733, STM32H725/735, STM32H730 value line, STM32L4P5/Q5 line, STM32MP13x lines. | |