STM32 microcontroller random number generation validation using the NIST statistical test suite - Application note
■Many standards created requirements and references for the construction, the validation and the use of random number generators (RNGs), in order to verify that the output they produce is indeed random.
■This application note provides some guidelines to verify the randomness of the numbers generated by the RNG peripheral embedded in a selection of STM32 microcontrollers (MCUs) listed in the table below. This verification is based either on the statistical test suite (STS) SP 800-22rev1a (April 2010) or SP 800-90b (January 2018) of the NIST (National Institute of Standards and Technology).
■This document is structured as follows:
◆a general introduction to STM32 microcontroller random number generator
◆the NIST SP800-22b test suite
◆the steps needed to run NIST SP800-22b test and analysis
◆the NIST SP800-90b test suite
◆the steps needed to run NIST SP800-90b test and analysis
●Introduction
■Random number generators (RNGs) used for cryptographic applications typically produce sequences made of random 0’s and 1’s bits.
■There are two basic classes of random number generators:
◆Deterministic RNG or pseudo RNG (PRNG)
▲A deterministic RNG consists of an algorithm that produces a sequence of bits from an initial value called a seed. To ensure forward unpredictability, care must be taken in obtaining seeds. The values produced by a PRNG are completely predictable if the seed and generation algorithm are known. Since in many cases the generation algorithm is publicly available, the seed must be kept secret and generated from a TRNG.
◆Non-deterministic RNG or True RNG (TRNG)
▲A non-deterministic RNG produces randomness that depends on some unpredictable physical source (the entropy source) outside of any human control.
■The RNG hardware peripheral implemented in some STM32 MCUs is a true random number generator.
STM32 、 STM32F2 Series 、 STM32F4 Series 、 STM32F7 Series 、 STM32H742 、 STM32H743/753 、 STM32H745/755 、 STM32H747/757 、 STM32H750 、 STM32L0 Series 、 STM32L4 Series 、 STM32H7A3/7B3 、 STM32H7B0 、 STM32H723/733 、 STM32H725/735 、 STM32H730 、 STM32L5 Series 、 STM32F2x5 、 STM32F2x7S 、 STM32F7x5 、 STM32F7x6 、 STM32L05x 、 STM32L06x 、 STM32L072 、 STM32L073 、 STM32L4x6 、 STM32L5x2 、 STM32F405 、 STM32F415 、 STM32F407 、 STM32F417 、 STM32F410 、 STM32F427 、 STM32F437 、 STM32F429 、 STM32F439 、 STM32F469 、 STM32F479 |
|
|
|
Application note & Design Guide |
|
|
|
Please see the document for details |
|
|
|
|
|
|
|
English Chinese Chinese and English Japanese |
|
18-Aug-2020 |
|
Rev 6 |
|
AN4230 |
|
540 KB |
- +1 Like
- Add to Favorites
Recommend
- Rosenberger and STMicroelectronics Cooperate to Develop a Unique High-Speed Contactless Connector Based on 60GHz Wireless Technology
- STMicroelectronics and Sierra Wireless Collaborate to Simplify and Accelerate Connected IoT Solutions Deployment
- MTA Announces Partnership with STMicroelectronics for Smart Tractor
- Eclipse Global Connectivity, Smiths Interconnect and ST Engineering IDirect Collaborate to Deliver a New Airborne ISR SATCOM Capability
- ROHM Group Company SiCrystal and STMicroelectronics Expand Silicon Carbide Wafer Supply Agreement
- Rosenberger‘s Innovative Contactless Connector RoProxCon can Bridge Construction-related Air Gaps and Has A High Interference Immunity
- New High Side Switch ICs with User-Definable Protection Achieve Optimized Performance in Automotive Applications
- Acroview universal programmer heavyweight IC programming of the 32-bit microcontroller N32G4FRREL7
All reproduced articles on this site are for the purpose of conveying more information and clearly indicate the source. If media or individuals who do not want to be reproduced can contact us, which will be deleted.