Implementation of common functionality for SHA-512 hashing function. More...
Implementation of common functionality for SHA-512 hashing function.
Files | |
| file | sha512_common.h | 
| Common definitions for the SHA-512 hash function.  | |
Data Structures | |
| struct | sha512_common_context_t | 
| Structure to hold the SHA-512 context.  More... | |
Functions | |
| void | sha512_common_pad (sha512_common_context_t *ctx) | 
| SHA-512 initialization.  More... | |
| void | sha512_common_update (sha512_common_context_t *ctx, const void *data, size_t len) | 
| Add bytes into the hash.  More... | |
| void | sha512_common_final (sha512_common_context_t *ctx, void *digest, size_t dig_len) | 
| SHA-512 finalization.  More... | |
| void sha512_common_final | ( | sha512_common_context_t * | ctx, | 
| void * | digest, | ||
| size_t | dig_len | ||
| ) | 
SHA-512 finalization.
Pads the input data, exports the hash value, and clears the context state.
| ctx | sha512_common_context_t handle to use, must not be NULL | |
| [out] | digest | resulting digest, this is the hash of all the bytes | 
| [in] | dig_len | Length of digest  | 
| void sha512_common_pad | ( | sha512_common_context_t * | ctx | ) | 
SHA-512 initialization.
Begins a SHA-512 operation.
| ctx | sha512_common_context_t handle to init, must not be NULL | 
| void sha512_common_update | ( | sha512_common_context_t * | ctx, | 
| const void * | data, | ||
| size_t | len | ||
| ) | 
Add bytes into the hash.
| ctx | sha512_common_context_t handle to use, must not be NULL | |
| [in] | data | Input data | 
| [in] | len | Length of data  |