diff options
author | David Benjamin <davidben@google.com> | 2019-04-16 05:36:40 +0200 |
---|---|---|
committer | David Benjamin <davidben@google.com> | 2019-04-26 16:57:07 +0200 |
commit | d7fcf1feac3b3b1bf1a162f632b1e7db4f075aed (patch) | |
tree | 154e82900bea6b599103987eb1524373e5987613 /crypto/rsa | |
parent | s390x assembly pack: remove poly1305 dependency on non-base memnonics (diff) | |
download | openssl-d7fcf1feac3b3b1bf1a162f632b1e7db4f075aed.tar.xz openssl-d7fcf1feac3b3b1bf1a162f632b1e7db4f075aed.zip |
Copy RSA-PSS saltlen in EVP_PKEY_CTX_dup.
pkey_rsa_copy was missing a field. Test this by repeating the operation
through an EVP_PKEY_CTX_dup copy in evp_test.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8759)
Diffstat (limited to 'crypto/rsa')
-rw-r--r-- | crypto/rsa/rsa_pmeth.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/rsa/rsa_pmeth.c b/crypto/rsa/rsa_pmeth.c index 8931d7e8ab..3d3e971e94 100644 --- a/crypto/rsa/rsa_pmeth.c +++ b/crypto/rsa/rsa_pmeth.c @@ -89,6 +89,7 @@ static int pkey_rsa_copy(EVP_PKEY_CTX *dst, const EVP_PKEY_CTX *src) dctx->pad_mode = sctx->pad_mode; dctx->md = sctx->md; dctx->mgf1md = sctx->mgf1md; + dctx->saltlen = sctx->saltlen; if (sctx->oaep_label) { OPENSSL_free(dctx->oaep_label); dctx->oaep_label = OPENSSL_memdup(sctx->oaep_label, sctx->oaep_labellen); |