summaryrefslogtreecommitdiff
path: root/src/sha512.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2023-12-11 16:16:53 -0800
committerJohn Wiegley <johnw@newartisans.com>2024-08-05 08:35:56 -0700
commita0553d435ee8b628ca63b70a1e6667cc09bcb99a (patch)
tree8f2151ccca5bcbf795724691509edde0cec89258 /src/sha512.cc
parent740cdd4d7928783311a072ea07903d07797bf72d (diff)
downloadfork-ledger-a0553d435ee8b628ca63b70a1e6667cc09bcb99a.tar.gz
fork-ledger-a0553d435ee8b628ca63b70a1e6667cc09bcb99a.tar.bz2
fork-ledger-a0553d435ee8b628ca63b70a1e6667cc09bcb99a.zip
Revert a type change
Diffstat (limited to 'src/sha512.cc')
-rw-r--r--src/sha512.cc4
1 files 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: */