diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2019-03-22 14:10:31 +1000 |
---|---|---|
committer | Nicola Tuveri <nic.tuv@gmail.com> | 2019-04-09 03:44:13 +0300 |
commit | bb315ca716656b7aff89f86d35988062952ccb21 (patch) | |
tree | 0c4b901d53d75d28aa2a59a6250e901a254c510f /crypto/ec/ecdsa_ossl.c | |
parent | 97cc9c9b01217f41438472db98fc41ab96fc466b (diff) | |
download | openssl-new-bb315ca716656b7aff89f86d35988062952ccb21.tar.gz |
EC keygen updates + changed ecdsa_sign to use BN_secure_new
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8557)
Diffstat (limited to 'crypto/ec/ecdsa_ossl.c')
-rw-r--r-- | crypto/ec/ecdsa_ossl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ec/ecdsa_ossl.c b/crypto/ec/ecdsa_ossl.c index a790e0adea..a488d5c86d 100644 --- a/crypto/ec/ecdsa_ossl.c +++ b/crypto/ec/ecdsa_ossl.c @@ -59,7 +59,7 @@ static int ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, } } - k = BN_new(); /* this value is later returned in *kinvp */ + k = BN_secure_new(); /* this value is later returned in *kinvp */ r = BN_new(); /* this value is later returned in *rp */ X = BN_new(); if (k == NULL || r == NULL || X == NULL) { |