void sha512_update(void *ctx, const void *data, size_t len)
Accumulate data with SHA-512 algorithm.
void sha512_final(void *ctx, void *out)
Generate SHA-512 digest.
#define SHA512_256_DIGEST_SIZE
SHA-512/256 digest size.
struct golan_eq_context ctx
static void sha512_256_init(void *ctx)
Initialise SHA-512/256 algorithm.
uint64_t h[8]
Hash output.
struct digest_algorithm sha512_256_algorithm
SHA-512/256 algorithm.
const char * name
Algorithm name.
A message digest algorithm.
#define cpu_to_be64(value)
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
uint32_t digestsize
Digest size (i.e.
static const struct sha512_digest sha512_256_init_digest
SHA-512/256 initial digest values.
void sha512_family_init(struct sha512_context *context, const struct sha512_digest *init, size_t digestsize)
Initialise SHA-512 family algorithm.