tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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



---
 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



Home | Main Index | Thread Index | Old Index