diff options
author | Tomas Mraz <tmraz@fedoraproject.org> | 2020-11-13 13:42:31 +0100 |
---|---|---|
committer | Tomas Mraz <tmraz@fedoraproject.org> | 2020-11-26 17:39:26 +0100 |
commit | 39fde64a85c93d2b3c6c58d5bde383f5f3932e5f (patch) | |
tree | 4b7a4b98dce76b11c082a010109564bc01302227 /crypto/evp/digest.c | |
parent | e109aaa9797c16b0902f8f3302243283828fcfc1 (diff) |
EVP_DigestFinalXOF must not reset the EVP_MD_CTX
It does not do it in legacy path and 1.1.1 so that must not change.
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13402)
Diffstat (limited to 'crypto/evp/digest.c')
-rw-r--r-- | crypto/evp/digest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/digest.c b/crypto/evp/digest.c index 3872bb68fb..19d9face89 100644 --- a/crypto/evp/digest.c +++ b/crypto/evp/digest.c @@ -455,7 +455,7 @@ int EVP_DigestFinalXOF(EVP_MD_CTX *ctx, unsigned char *md, size_t size) if (EVP_MD_CTX_set_params(ctx, params) > 0) ret = ctx->digest->dfinal(ctx->provctx, md, &size, size); - EVP_MD_CTX_reset(ctx); + return ret; legacy: |