This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Random Number Generator

Hello Nordic.

I find two RNG example.

Both nrf_crypto_rng_vector_generate and nrf_drv_rng_rand , what is the difference?

Which one is better on RNG.

How to correspond in the nRF52840_PS_v1.1.pdf!

• True random number generator (TRNG) compliant with NIST 800-90B15, AIS-31, and FIPS 140-2/315 .

• Pseudorandom number generator (PRNG) using underlying AES engine compliant with NIST 800-90A

Thank You!
Andy 

Parents
  • Hi Andy!

    The first example you mentioned utilizes ARM's CryptoCell cryptography service. CryptoCell has two random number generator methods, both true random number generator and pseudo random number generator. True random number generator, also knowns as hardware random number generator uses a physical process to generate the numbers. Here you can read more about the entropy sources for this process. On the other hand, the pseudo-random number generator uses an algorithm to produce random numbers, by attempting to emulate randomness. This method is much fast than TRNG, but it is also "less random".

    The second example you mention is an example that demonstrates the use of the RNG driver, which accesses the RNG peripheral of the chip.  

    Best regards,

    Heidi

Reply
  • Hi Andy!

    The first example you mentioned utilizes ARM's CryptoCell cryptography service. CryptoCell has two random number generator methods, both true random number generator and pseudo random number generator. True random number generator, also knowns as hardware random number generator uses a physical process to generate the numbers. Here you can read more about the entropy sources for this process. On the other hand, the pseudo-random number generator uses an algorithm to produce random numbers, by attempting to emulate randomness. This method is much fast than TRNG, but it is also "less random".

    The second example you mention is an example that demonstrates the use of the RNG driver, which accesses the RNG peripheral of the chip.  

    Best regards,

    Heidi

Children
Related