Skip to main content
TSang.3
Explorer
May 7, 2022
Solved

TRNG in STM32L4R9I - EVAL pass ALL NIST Test ?

  • May 7, 2022
  • 1 reply
  • 1910 views

Hello !

STM32L4R9I support True Random Number ( 32 bits per 1 time generation)

I run an example and then make an program to generate 100.000.000 bits

1 st iteration (100M bit) : HW is 0.5 and Passed NIST Test

2 nd iteration (100M bit) : HW is 0.5001 and Failed NIST Test ( 3 Non-overlapping )

Did TRNG pass All NIST Test ?

If yes, how to set up NIST Test ? ( I attached my setup as below)

If no, why?

P/s: https://nvlpubs.nist.gov/nistpubs/legacy/sp/nistspecialpublication800-22r1a.pdf

Thanks so much !

This topic has been closed for replies.
Best answer by TZARDI

Hello TSang.3,

In the "On the Interpretation of Results from the NIST Statistical Test Suite" it shows that data can be considered random even if it does not pass all the tests :

"Computed reference cumulative probabilities indicate that a single sequence can be considered non-random if it fails (p-values are smaller than α = 1%) 7 or more NIST STS tests. According to the uniformity test, 100 sequences can be considered non-random if they fail 7 uniformity tests (α = 1%) or 3 uniformity tests (for α = 0.1% or α = 0.01%). According to the test of proportions, 1000 (100) sequences can be considered non-random if they fail 4 (10) tests of proportion."

You can find attached the file interpreting the results.

Br,

1 reply

TZARDI
TZARDIBest answer
Visitor II
May 9, 2022

Hello TSang.3,

In the "On the Interpretation of Results from the NIST Statistical Test Suite" it shows that data can be considered random even if it does not pass all the tests :

"Computed reference cumulative probabilities indicate that a single sequence can be considered non-random if it fails (p-values are smaller than α = 1%) 7 or more NIST STS tests. According to the uniformity test, 100 sequences can be considered non-random if they fail 7 uniformity tests (α = 1%) or 3 uniformity tests (for α = 0.1% or α = 0.01%). According to the test of proportions, 1000 (100) sequences can be considered non-random if they fail 4 (10) tests of proportion."

You can find attached the file interpreting the results.

Br,