[rtems commit] libmd: Remove extra digest copy in SHA256_Final()
Sebastian Huber
sebh at rtems.org
Wed Nov 9 15:55:46 UTC 2022
Module: rtems
Branch: master
Commit: b66cda78b28798ae04a888b0b8d3a1486472f626
Changeset: http://git.rtems.org/rtems/commit/?id=b66cda78b28798ae04a888b0b8d3a1486472f626
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Nov 8 10:31:42 2022 +0100
libmd: Remove extra digest copy in SHA256_Final()
The extra digest copy was introduced by an erroneous merge conflict resolution
for commit "crypto routines: Hint minimum buffer sizes to the compiler".
---
cpukit/libmd/sha256c.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/cpukit/libmd/sha256c.c b/cpukit/libmd/sha256c.c
index 563f9e2099..8d8a2a467a 100644
--- a/cpukit/libmd/sha256c.c
+++ b/cpukit/libmd/sha256c.c
@@ -291,7 +291,6 @@ SHA256_Final(unsigned char digest[static SHA256_DIGEST_LENGTH], SHA256_CTX *ctx)
SHA256_Pad(ctx);
/* Write the hash */
- be32enc_vect(digest, ctx->state, 32);
be32enc_vect(digest, ctx->state, SHA256_DIGEST_LENGTH);
/* Clear the context state */
More information about the vc
mailing list