3.6.27 True random number generator (RNG)
Table 105. RNG_SM_0
SM CODE RNG_SM_0
Description Periodical read-back of RNG configuration register RNG_CR
Ownership End user
Detailed implementation
This method must be applied to RNG configuration registers.
Detailed information on the implementation of this method can be found in Section 3.6.5
Error reporting Refer to NVIC_SM_0
Fault detection time Refer to NVIC_SM_0
Addressed fault model Refer to NVIC_SM_0
Dependency on MCU configuration RNG module available only on specific part numbers
Initialization Refer to NVIC_SM_0
Periodicity Refer to NVIC_SM_0
Test for the diagnostic Refer to NVIC_SM_0
Multiple faults protection Refer to NVIC_SM_0
Recommendations and known limitations Refer to NVIC_SM_0
Table 106. RNG_SM_1
SM CODE RNG_SM_1
Description RNG module entropy on-line tests
Ownership ST and End user
Detailed implementation
RNG module include an internal diagnostic for the analog source entropy that can be used to detect
failures on the module itself. Furthermore, the required test on generated random number difference
between the previous one (as required by FIPS PUB 140-2) can be exploited as well.
Implementation:
• Check for RNG error conditions
• Check the difference between generated random number and the previous one
Error reporting
CEIS, SEIS error bits in RNG status register (RNG_SR)
Application software error for FIPS PUB 140-2 test fail
Fault detection time Depends on implementation
Addressed fault model Permanent and Transient
Dependency on MCU configuration RNG module available only on specific part numbers
Initialization Depends on implementation
Periodicity Continuous
Test for the diagnostic N/A
Multiple faults protection CPU_SM_0: Periodical core self test software
Recommendations and known
limitations
-
UM1845
Description of hardware and software diagnostics
UM1845 - Rev 4
page 71/108