PAL entropy. This file contains entropy injection and is part of the PAL API. More...
Go to the source code of this file.
Functions | |
| palStatus_t | pal_osEntropyInject (const uint8_t *entropyBuf, size_t bufSizeBytes) |
| Inject entropy to non-volatile memory, so that the random number generator may use it. More... | |
PAL entropy. This file contains entropy injection and is part of the PAL API.
| palStatus_t pal_osEntropyInject | ( | const uint8_t * | entropyBuf, |
| size_t | bufSizeBytes | ||
| ) |
Inject entropy to non-volatile memory, so that the random number generator may use it.
In addition to OS functions, the module implementing pal_drbg.h will hold a deterministic random bit generator (DRBG) instance that works with the entropy injected by this function.
pal_osRandomBuffer()calls frompal_drbg.h` will succeed.| entropyBuf | - pointer to buffer containing the entropy. |
| bufSizeBytes | - size of entropyBuf in bytes. |
bufSizeBytes too small.