Skip to content

Commit

Permalink
Update crypto/fipsmodule/digest/digest.c
Browse files Browse the repository at this point in the history
Co-authored-by: dkostic <[email protected]>
  • Loading branch information
WillChilds-Klein and dkostic authored Oct 8, 2023
1 parent 3e1c326 commit a04871b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crypto/fipsmodule/digest/digest.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ int EVP_DigestFinalXOF(EVP_MD_CTX *ctx, uint8_t *out, size_t len) {
return 0;
}
ctx->digest->finalXOF(ctx, out, len);
OPENSSL_cleanse(ctx->md_data, ctx->digest->ctx_size);
EVP_MD_CTX_cleanup(ctx);
EVP_MD_CTX_cleanse(ctx);
return 1;
}

Expand Down

0 comments on commit a04871b

Please sign in to comment.