21#ifndef HASHES_SHA512_256_H
22#define HASHES_SHA512_256_H
36#define SHA512_256_DIGEST_LENGTH (32)
41#define SHA512_256_INTERNAL_BLOCK_SIZE (128)
89void sha512_256(
const void *data,
size_t len,
void *digest);
void sha512_256(const void *data, size_t len, void *digest)
A wrapper function to simplify the generation of a hash.
void sha512_256_init(sha512_256_context_t *ctx)
SHA-512/256 initialization.
sha512_common_context_t sha512_256_context_t
Context for cipher operations based on sha512_256.
#define SHA512_256_DIGEST_LENGTH
Length of SHA512_256 digests in bytes.
static void sha512_256_final(sha512_256_context_t *ctx, void *digest)
SHA-512/256 finalization.
static void sha512_256_update(sha512_256_context_t *ctx, const void *data, size_t len)
Add bytes into the hash.
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.
Adds include for missing inttype definitions.
Common definitions for the SHA-512 hash function.
Structure to hold the SHA-512 context.