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".
This commit is contained in:
Sebastian Huber
2022-11-08 10:31:42 +01:00
parent 3a38a0173b
commit b66cda78b2

View File

@@ -291,7 +291,6 @@ SHA256_Final(unsigned char digest[static SHA256_DIGEST_LENGTH], SHA256_CTX *ctx)
SHA256_Pad(ctx); SHA256_Pad(ctx);
/* Write the hash */ /* Write the hash */
be32enc_vect(digest, ctx->state, 32);
be32enc_vect(digest, ctx->state, SHA256_DIGEST_LENGTH); be32enc_vect(digest, ctx->state, SHA256_DIGEST_LENGTH);
/* Clear the context state */ /* Clear the context state */