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_buffer Buffer to fill with random values
buffer_length Length of input buffer
Returns
gos_result_t result of api call
Examples:
file/file_encrypt/encrypt.c , and file/log_file_encrypted/main.c .

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
min The minimum random number to return
max The maximum random number to return
Returns
Random number between specified values
Examples:
demo/uart_blaster/uart_blaster.c , and dms/messages/main.c .