forked from Imagelibrary/rtems
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:
@@ -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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user