summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2023-12-11 16:32:36 -0800
committerJohn Wiegley <johnw@newartisans.com>2024-08-05 08:35:56 -0700
commitc839b1bb9dfce066b00195495c5e2e37a60e0a91 (patch)
treeececd2bd9f17c7327cde8246bf422642648d4b79
parenta0553d435ee8b628ca63b70a1e6667cc09bcb99a (diff)
downloadfork-ledger-c839b1bb9dfce066b00195495c5e2e37a60e0a91.tar.gz
fork-ledger-c839b1bb9dfce066b00195495c5e2e37a60e0a91.tar.bz2
fork-ledger-c839b1bb9dfce066b00195495c5e2e37a60e0a91.zip
Try something else
-rw-r--r--src/sha512.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/sha512.cc b/src/sha512.cc
index 9db72ac0..4ae472fc 100644
--- a/src/sha512.cc
+++ b/src/sha512.cc
@@ -57,12 +57,6 @@ typedef struct _SHA512_CTX {
} SHA512_CTX;
#endif /* do we have sha512 header defs */
-void SHA512_Init(SHA512_CTX*);
-void SHA512_Update(SHA512_CTX*, void*, size_t);
-void SHA512_Final(uint8_t[], SHA512_CTX*);
-unsigned char *SHA512(void *data, unsigned int data_len, unsigned char *digest);
-
-
/*** SHA-256/384/512 Machine Architecture Definitions *****************/
/*
* BYTE_ORDER NOTE:
@@ -467,7 +461,7 @@ void SHA512_Final(uint8_t digest[], SHA512_CTX* context) {
}
unsigned char *
-SHA512(void *data, unsigned int data_len, unsigned char *digest)
+SHA512(void *data, unsigned int data_len, uint8_t *digest)
{
SHA512_CTX ctx;
SHA512_Init(&ctx);