Firmware SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
bc_sha256

Library for SHA256 hash. More...

Functions

void bc_sha256_init (bc_sha256_t *self)
 Initialize SHA256 structure. More...
 
void bc_sha256_update (bc_sha256_t *self, const void *buffer, size_t length)
 Compute SHA256 from data. More...
 
void bc_sha256_final (bc_sha256_t *self, uint8_t *hash, bool little_endian)
 Finalize SHA256 computation and read the final hash. More...
 

Detailed Description

Library for SHA256 hash.

Function Documentation

void bc_sha256_final ( bc_sha256_t *  self,
uint8_t *  hash,
bool  little_endian 
)

Finalize SHA256 computation and read the final hash.

Parameters
[in]selfSHA256 instance
[in]hashpointer to the array where the hash will be copied
[in]little_endianendian format

Definition at line 58 of file bc_sha256.c.

Referenced by bc_config_load(), and bc_config_save().

Here is the caller graph for this function:

void bc_sha256_init ( bc_sha256_t *  self)

Initialize SHA256 structure.

Parameters
[in]selfSHA256 instance

Definition at line 26 of file bc_sha256.c.

Referenced by bc_config_load(), and bc_config_save().

Here is the caller graph for this function:

void bc_sha256_update ( bc_sha256_t *  self,
const void *  buffer,
size_t  length 
)

Compute SHA256 from data.

Parameters
[in]selfSHA256 instance
[in]bufferdata
[in]lengthdata length

Definition at line 40 of file bc_sha256.c.

Referenced by bc_config_load(), and bc_config_save().

Here is the caller graph for this function: