From 93f9a5d1e83d53944bff2fd9130ec935c1419a43 Mon Sep 17 00:00:00 2001 From: Tristan Le Guern Date: Sun, 27 Sep 2015 21:26:58 +0200 Subject: [PATCH] Don't lie about array parameters --- src/sha1.c | 2 +- src/sha1.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sha1.c b/src/sha1.c index 9af4f04..cc84df8 100644 --- a/src/sha1.c +++ b/src/sha1.c @@ -244,7 +244,7 @@ void SHA1_Update(SHA1_CTX* context, const uint8_t* data, const size_t len) /* Add padding and return the message digest. */ -void SHA1_Final(SHA1_CTX* context, uint8_t digest[SHA1_DIGEST_SIZE]) +void SHA1_Final(SHA1_CTX* context, uint8_t *digest) { uint32_t i; uint8_t finalcount[8]; diff --git a/src/sha1.h b/src/sha1.h index 10266cb..d0391ae 100644 --- a/src/sha1.h +++ b/src/sha1.h @@ -25,7 +25,7 @@ typedef struct { void SHA1_Init(SHA1_CTX* context); void SHA1_Update(SHA1_CTX* context, const uint8_t* data, const size_t len); -void SHA1_Final(SHA1_CTX* context, uint8_t digest[SHA1_DIGEST_SIZE]); +void SHA1_Final(SHA1_CTX* context, uint8_t *digest); #ifdef __cplusplus }