diff options
author | Jon Spillett <jon.spillett@oracle.com> | 2021-03-15 11:33:21 +1000 |
---|---|---|
committer | Pauli <ppzgs1@gmail.com> | 2021-03-17 17:51:16 +1000 |
commit | d11f644ba5f5c7a6e925e625899589d0cdd2c84b (patch) | |
tree | 3e5cfb0d3af3621a03038f9c56353de930f02f5f /crypto/sm2 | |
parent | 062490dbd05a205824a239336f6a60bf00a7ca1d (diff) |
Fix up issues found when running evp_extra_test with a non-default library context
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14478)
Diffstat (limited to 'crypto/sm2')
-rw-r--r-- | crypto/sm2/sm2_crypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/sm2/sm2_crypt.c b/crypto/sm2/sm2_crypt.c index cadc8ae201..2b8b10e25d 100644 --- a/crypto/sm2/sm2_crypt.c +++ b/crypto/sm2/sm2_crypt.c @@ -187,7 +187,7 @@ int ossl_sm2_encrypt(const EC_KEY *key, memset(ciphertext_buf, 0, *ciphertext_len); - if (!BN_priv_rand_range(k, order)) { + if (!BN_priv_rand_range_ex(k, order, ctx)) { ERR_raise(ERR_LIB_SM2, ERR_R_INTERNAL_ERROR); goto done; } |