summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ecx_methods.c
diff options
context:
space:
mode:
authortb <>2023-05-01 12:39:38 +0000
committertb <>2023-05-01 12:39:38 +0000
commitf2fa8523cb2ce36a768f458ca1c0b5fe0f884fe4 (patch)
tree6b4d0cbea7c3f9ba9b61840ac0ef8b7c4b3656c2 /src/lib/libcrypto/ec/ecx_methods.c
parent91be51df7110ce3afe81606c55fc7641f43f9cf3 (diff)
downloadopenbsd-f2fa8523cb2ce36a768f458ca1c0b5fe0f884fe4.tar.gz
openbsd-f2fa8523cb2ce36a768f458ca1c0b5fe0f884fe4.tar.bz2
openbsd-f2fa8523cb2ce36a768f458ca1c0b5fe0f884fe4.zip
Simplify ec_group_new_from_data() further
We have a BN_CTX available, so we may as well use it. This simplifies the cleanup path at the cost of a bit more code in the setup. Also use an extra BIGNUM for the cofactor. Reusing x for this is just silly. If you were really going to avoid extra allocations, this entire function could easily have been written with three BIGNUMs. ok jsing
Diffstat (limited to 'src/lib/libcrypto/ec/ecx_methods.c')
0 files changed, 0 insertions, 0 deletions