diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-11-08 10:31:42 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-11-09 16:54:02 +0100 |
commit | b66cda78b28798ae04a888b0b8d3a1486472f626 (patch) | |
tree | 169b23cf1826b68dd03a359f332d37d4753d3b08 /cpukit/libmd/sha256c.c | |
parent | riscv: Remove superfluous init/fini functions (diff) | |
download | rtems-b66cda78b28798ae04a888b0b8d3a1486472f626.tar.bz2 |
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".
Diffstat (limited to '')
-rw-r--r-- | cpukit/libmd/sha256c.c | 1 |
1 files changed, 0 insertions, 1 deletions
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 */ |