Cryptography

Cryptography Utilities. More...

Modules

AES
AES utilities.
 
MD5
MD5 utilities.
 
SHA1
SHA1 utilities.
 
SHA2
SHA2 utilities.
 

Functions

gos_result_t gos_get_random_buffer (void *data_buffer, uint16_t buffer_length)
 Fill a buffer with random values. More...
 
uint32_t gos_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

◆ gos_get_random_buffer()

gos_result_t gos_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
gos_result_t result of api call

◆ gos_get_random_uint32()

uint32_t gos_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