diff --git a/common/sha2.c b/common/sha2.c index c7214345..99773a42 100644 --- a/common/sha2.c +++ b/common/sha2.c @@ -561,7 +561,7 @@ void sha224_inc_blocks(sha224ctx *state, const uint8_t *in, size_t inblocks) { void sha512_inc_blocks(sha512ctx *state, const uint8_t *in, size_t inblocks) { uint64_t bytes = load_bigendian_64(state->ctx + 64); - crypto_hashblocks_sha256(state->ctx, in, 128 * inblocks); + crypto_hashblocks_sha512(state->ctx, in, 128 * inblocks); bytes += 128 * inblocks; store_bigendian_64(state->ctx + 64, bytes);