Cryptography

Cryptography Utilities. More...

Modules

AES
AES utilities.
MD5
MD5 utilities.
SHA1
SHA1 utilities.
SHA256
SHA256 utilities.
SHA512
SHA512 utilities.
Secure Element (SE)
Secure element 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 , dms/messages/main.c , and system/core_dump/main.c .