From a0553d435ee8b628ca63b70a1e6667cc09bcb99a Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 11 Dec 2023 16:16:53 -0800 Subject: Revert a type change --- src/sha512.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sha512.cc b/src/sha512.cc index 943bc326..9db72ac0 100644 --- a/src/sha512.cc +++ b/src/sha512.cc @@ -59,7 +59,7 @@ typedef struct _SHA512_CTX { void SHA512_Init(SHA512_CTX*); void SHA512_Update(SHA512_CTX*, void*, size_t); -void SHA512_Final(sha2_byte[SHA512_DIGEST_LENGTH], SHA512_CTX*); +void SHA512_Final(uint8_t[], SHA512_CTX*); unsigned char *SHA512(void *data, unsigned int data_len, unsigned char *digest); @@ -437,7 +437,7 @@ static void SHA512_Last(SHA512_CTX* context) { SHA512_Transform(context, (sha2_word64*)context->buffer); } -void SHA512_Final(sha2_byte digest[], SHA512_CTX* context) { +void SHA512_Final(uint8_t digest[], SHA512_CTX* context) { sha2_word64 *d = (sha2_word64*)digest; /* Sanity check: */ -- cgit v1.2.3