Functions | |
uint8_t | SHA256_init (SHA256_Workzone *workzone) |
Initialize a SHA-256 operation. More... | |
uint8_t | SHA256_process (SHA256_Workzone *workzone, uint8_t *inputBuffer, uint32_t bufLength) |
Add a message segment to the hash. More... | |
uint8_t | SHA256_final (SHA256_Workzone *workzone, uint8_t *digest) |
Finalize the hash and write back the digest. More... | |
uint8_t | SHA256_full (SHA256_Workzone *workzone, uint8_t *digest, uint8_t *inputBuffer, uint32_t bufLength) |
Compute the hash of a message in one go. More... | |
uint8_t SHA256_final | ( | SHA256_Workzone * | workzone, |
uint8_t * | digest | ||
) |
Finalize the hash and write back the digest.
[in,out] | workzone | Working memory that holds intermediate results |
[out] | digest | Resultant digest of the hash |
uint8_t SHA256_full | ( | SHA256_Workzone * | workzone, |
uint8_t * | digest, | ||
uint8_t * | inputBuffer, | ||
uint32_t | bufLength | ||
) |
Compute the hash of a message in one go.
[in,out] | workzone | Working memory that holds intermediate results |
[out] | digest | Resultant digest of the hash |
[in] | inputBuffer | Segment of an input message to process |
[in] | bufLength | Number of bytes to process |
uint8_t SHA256_init | ( | SHA256_Workzone * | workzone | ) |
Initialize a SHA-256 operation.
workzone | Working memory that holds intermediate results |
uint8_t SHA256_process | ( | SHA256_Workzone * | workzone, |
uint8_t * | inputBuffer, | ||
uint32_t | bufLength | ||
) |
Add a message segment to the hash.
[in,out] | workzone | Working memory that holds intermediate results |
[in] | inputBuffer | Segment of an input message to process |
[in] | bufLength | Number of bytes to process |