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_bufferBuffer to fill with random values
buffer_lengthLength of input buffer
Returns
zos_result_t result of api call
Examples:
basic/file_encrypt/encrypt.c, and 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
minThe minimum random number to return
maxThe maximum random number to return
Returns
Random number between specified values