21#ifndef HASHES_SHA512_H
22#define HASHES_SHA512_H
36#define SHA512_DIGEST_LENGTH (64)
41#define SHA512_INTERNAL_BLOCK_SIZE (128)
90void sha512(
const void *data,
size_t len,
void *digest);
void sha512_common_update(sha512_common_context_t *ctx, const void *data, size_t len)
Add bytes into the hash.
void sha512_common_final(sha512_common_context_t *ctx, void *digest, size_t dig_len)
SHA-512 finalization.
void sha512_init(sha512_context_t *ctx)
SHA-512 initialization.
#define SHA512_DIGEST_LENGTH
Length of SHA512 digests in bytes.
void sha512(const void *data, size_t len, void *digest)
A wrapper function to simplify the generation of a hash.
static void sha512_final(sha512_context_t *ctx, void *digest)
SHA-512 finalization.
static void sha512_update(sha512_context_t *ctx, const void *data, size_t len)
Add bytes into the hash.
sha512_common_context_t sha512_context_t
Context for cipher operations based on sha512.
Adds include for missing inttype definitions.
Common definitions for the SHA-512 hash function.
Structure to hold the SHA-512 context.