Skip to content

Commit

Permalink
Revert a type change
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiegley committed Aug 5, 2024
1 parent 740cdd4 commit a0553d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sha512.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);


Expand Down Expand Up @@ -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: */
Expand Down

0 comments on commit a0553d4

Please sign in to comment.