InPlay API
|
HAL HASH. More...
Enumerations | |
enum | hash_type { HASH_TYPE_MD5 = 0, HASH_TYPE_SHA1 = 1, HASH_TYPE_SHA256 = 2 } |
HASH function type. More... | |
enum | HASH_result_status { HASH_ERR_OK = 0, HASH_ERR_NOT_INIT = -1, HASH_ERR_ALREADY_INIT = -2, HASH_ERR_DEV_BAD_STATE = -3, HASH_ERR_INVALID_PARA = -4 } |
HASH function status return. More... | |
Functions | |
int | hal_hash_open (hash_init_t *init) |
Initialize hash driver for power management and interrupt purposes. More... | |
int | hal_hash_close (void) |
De-Initialize hash driver for power management and interrupt purposes. More... | |
int | hal_hash_start (hash_type type) |
Set-up and initialize hash functionality. More... | |
int | hal_hash_process (uint8_t *data, uint32_t data_len) |
Process hash based on input payload. More... | |
int | hal_hash_finish (uint8_t *out, uint16_t len) |
Write hash result to output buffer. More... | |
HAL HASH.
enum HASH_result_status |
enum hash_type |
int hal_hash_close | ( | void | ) |
De-Initialize hash driver for power management and interrupt purposes.
int hal_hash_finish | ( | uint8_t * | out, |
uint16_t | len | ||
) |
Write hash result to output buffer.
[out] | out | Pointer to output of HASH result |
[in] | len | Output buffer length |
int hal_hash_open | ( | hash_init_t * | init | ) |
Initialize hash driver for power management and interrupt purposes.
[in] | init | Init parameters for hash driver, hash_init_t |
int hal_hash_process | ( | uint8_t * | data, |
uint32_t | data_len | ||
) |
Process hash based on input payload.
[in] | data | Pointer to data to be hashed |
[in] | data_len | Length of data to be hashed in bytes |
int hal_hash_start | ( | hash_type | type | ) |
Set-up and initialize hash functionality.
[in] | type | Hash functionality type, |