Ensure creating an EC public key uses the libctx
authorMatt Caswell <matt@openssl.org>
Mon, 15 Jun 2020 13:29:37 +0000 (14:29 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 19 Jun 2020 09:34:58 +0000 (10:34 +0100)
commitfebe6bb727082b07a6ffbf64b3b1b0dd871ec000
tree44bc27944f8fe79a60112a1f55c9b206b9bb9211
parent2da8d4eb2812e18cec5c8324a54a4c56b52563ed
Ensure creating an EC public key uses the libctx

Creating an EC public key from the private key uses random numbers
internally, which require use of the proper libtx. Therefore we make
sure the libctx is used during this operation.

Fixes #12150

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12159)
crypto/ec/ec_ameth.c
crypto/ec/ec_key.c