11 #define SHA512_BLOCK_SIZE 128
12 #define SHA512_HASH_LENGTH 64
19 uint8_t buffer[SHA512_BLOCK_SIZE];
23 void sha512_init(struct sha512 *ctx);
24 void sha512_add(struct sha512 *ctx, const uint8_t *data, size_t len);
25 void sha512_final(struct sha512 *ctx, uint8_t out[SHA512_HASH_LENGTH]);