![]() |
m2mb API docs
25.30.003
m2mb API sets documentation
|
Pseudo random number generator. More...
Macros | |
| #define | M2MB_CRYPTO_PRNG_MAX_BYTES 512 |
Functions | |
| UINT32 | m2mb_crypto_prng_get_data (UINT8 *prng_data, UINT32 prng_data_len) |
| Generates prng data. More... | |
Pseudo random number generator.
| #define M2MB_CRYPTO_PRNG_MAX_BYTES 512 |
Maximum number of PRNG bytes read
| UINT32 m2mb_crypto_prng_get_data | ( | UINT8 * | prng_data, |
| UINT32 | prng_data_len | ||
| ) |
Generates prng data.
This function will generate prng data with the given size but at most M2MB_CRYPTO_PRNG_MAX_BYTES bytes.
| [out] | prng_data | Buffer that will hold the result prng data (buffer length is at least <prng_data_len>). |
| [in] | prng_data_len | The size of the prng_data buffer but cannot exceed M2MB_CRYPTO_PRNG_MAX_BYTES. |