Skip to main content

Module random

Module random 

Source
Expand description

Random command.

Returns 32 cryptographically random bytes from the chip’s hardware RNG. The default mode 0x00 updates the chip’s internal seed before generating the output, which is what we always want for production use. Mode 0x01 skips the seed update and exists only for development.

Reference: CryptoAuthLib lib/calib/calib_random.c.

Constants§

RANDOM_OUTPUT_LEN 🔒
Number of random bytes returned by the chip in one Random command.