PAL DRBG. This file contains the real-time OS APIs and is a part of the PAL service API. More...
Go to the source code of this file.
Functions | |
palStatus_t | pal_osRandomBuffer (uint8_t *randomBuf, size_t bufSizeBytes) |
Generate random number into given buffer with given size in bytes. More... | |
palStatus_t | pal_osRandom32bit (uint32_t *randomInt) |
Generate a 32-bit random number. More... | |
PAL DRBG. This file contains the real-time OS APIs and is a part of the PAL service API.
It provides thread, timers, semaphores, mutexes and memory pool management APIs as well as random API.
palStatus_t pal_osRandom32bit | ( | uint32_t * | randomInt | ) |
Generate a 32-bit random number.
[out] | randomInt | A 32-bit buffer to hold the generated number. |
pal_init()
MUST be called before this function. pal_plat_osEntropyInject()
. palStatus_t pal_osRandomBuffer | ( | uint8_t * | randomBuf, |
size_t | bufSizeBytes | ||
) |
Generate random number into given buffer with given size in bytes.
[out] | randomBuf | A buffer to hold the generated number. |
[in] | bufSizeBytes | The size of the buffer and the size of the required random number to generate. |
pal_init()
MUST be called before this function. pal_plat_osEntropyInject()
.