diff options
author | tb <> | 2023-05-01 12:39:38 +0000 |
---|---|---|
committer | tb <> | 2023-05-01 12:39:38 +0000 |
commit | f2fa8523cb2ce36a768f458ca1c0b5fe0f884fe4 (patch) | |
tree | 6b4d0cbea7c3f9ba9b61840ac0ef8b7c4b3656c2 /src/lib/libcrypto/ec/ecx_methods.c | |
parent | 91be51df7110ce3afe81606c55fc7641f43f9cf3 (diff) | |
download | openbsd-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