Header definitions for the SHA512 hash function. More...
Header definitions for the SHA512 hash function.
Definition in file sha512.h.
Go to the source code of this file.
Macros | |
#define | SHA512_DIGEST_LENGTH (64) |
Length of SHA512 digests in bytes. | |
#define | SHA512_INTERNAL_BLOCK_SIZE (128) |
1024 Bit (128 Byte) internally used block size for sha512 | |
Typedefs | |
typedef sha512_common_context_t | sha512_context_t |
Context for cipher operations based on sha512. | |
Functions | |
void | sha512_init (sha512_context_t *ctx) |
SHA-512 initialization. | |
static void | sha512_update (sha512_context_t *ctx, const void *data, size_t len) |
Add bytes into the hash. | |
static void | sha512_final (sha512_context_t *ctx, void *digest) |
SHA-512 finalization. | |
void | sha512 (const void *data, size_t len, void *digest) |
A wrapper function to simplify the generation of a hash. | |