下载
June 2016 DocID024118 Rev 2 1/23
1
AN4230
Application note
STM32 microcontrollers 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 verify that the output
they produce is indeed random.
The purpose of this application note is to provide guidelines to verify the randomness of the
numbers generated by the random number generator peripheral embedded in a selection of
STM32 microcontrollers. This verification is based on the National Institute of Standards and
Technology (NIST) Statistical Test Suite (STS) SP 800-22rev1a (April 2010).
This document is structured as follows:
• A general introduction to STM32 microcontrollers random number generator (see
Section 1)
• The NIST SP800-22b test suite (see Section 2)
• The steps needed to run NIST SP800-22b test and analysis (see Section 3)
Table 1. Applicable products
Type Product series
Microcontrollers
STM32F2 series, STM32F4 series, STM32F7 series, STM32L0 series,
STM32L4 series.
www.st.com