[PATCH 2/2] sha1.c SHA1_DIGEST_LENGTH instead of the direct value

Etienne Brateau <[email protected]>
Newsgroups gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>
---
 common/lib/libc/hash/sha1/sha1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/lib/libc/hash/sha1/sha1.c b/common/lib/libc/hash/sha1/sha1.c
index cbd60fc799ff..848a1413ee25 100644
--- a/common/lib/libc/hash/sha1/sha1.c
+++ b/common/lib/libc/hash/sha1/sha1.c
@@ -262,7 +262,7 @@ void SHA1Update(SHA1_CTX *context, const uint8_t *data, unsigned int len)
 /*
  * Add padding and return the message digest.
  */
-void SHA1Final(uint8_t digest[20], SHA1_CTX *context)
+void SHA1Final(uint8_t digest[SHA1_DIGEST_LENGTH], SHA1_CTX *context)
 {
     unsigned int i;
     uint8_t finalcount[8];
-- 
2.33.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.