English
Language : 

AN4230 Datasheet, PDF (1/24 Pages) STMicroelectronics – Many standards have created requirements and references for the construction
AN4230
Application note
STM32F2xx, STM32F4xx random number generation validation
using NIST statistical test suite
Introduction
Many standards have created requirements and references for the construction, the validation and the
use of Random Number Generators (RNG), in order to pursue that the output they produce is indeed
random.
The purpose of this application note is to provide guidelines to verify the randomness of numbers
generated by an STM32F2xx and an STM32F4xx embedded random number generator peripheral. This
verification is based on the National Institute of Standards and Technology (NIST) Statistical Test Suite
(STS) SP 800-22, which was published and updated recently as SP800-22rev1a (April 2010).
This application note is structured as follows:
• A general introduction to STM32F2 and STM32F4 random number generator (see Section 1)
• The NIST SP800-22b test suite (see Section 2)
• The steps to run NIST SP800-22b test and analysis (see Section 3)
This application note is provided with a Firmware package which contains 2 projects:
STM32F2xx_RngGenerationViaUART and STM32F4xx_RngGenerationViaUART, based on STM32F2
and STM32F4 respectively, in order to generate random number to be tested using the NIST statistical
test suite.
Table 1 lists the microcontrollers concerned by this application note.
Type
Microcontrollers
Table 1. Applicable products
Applicable products
STM32F2xx
STM32F4xx
May 2013
DocIDID024118 Rev 1
1/24
www.st.com