Cryptography
Cryptography Utilities. More...
Modules | |
AES | |
AES utilities. | |
MD5 | |
MD5 utilities. | |
SHA1 | |
SHA1 utilities. | |
SHA2 | |
SHA2 utilities. | |
SHA4 | |
SHA4 utilities. | |
Functions | |
zos_result_t | zn_get_random_buffer (void *data_buffer, uint16_t buffer_length) |
Fill a buffer with random values. More... | |
uint32_t | zn_get_random_uint32 (uint32_t min, uint32_t max) |
Get a random 32bit unsigned value between specified values. More... | |
Detailed Description
Cryptography Utilities.
Function Documentation
zos_result_t zn_get_random_buffer | ( | void * | data_buffer, |
uint16_t | buffer_length |
||
) |
Fill a buffer with random values.
- Parameters
-
data_buffer
Buffer to fill with random values buffer_length
Length of input buffer
- Returns
- zos_result_t result of api call
- Examples:
- demo/pong/game_server.c.
uint32_t zn_get_random_uint32 | ( | uint32_t | min, |
uint32_t | max |
||
) |
Get a random 32bit unsigned value between specified values.
- Parameters
-
min
The minimum random number to return max
The maximum random number to return
- Returns
- Random number between specified values