diff options
author | tb <> | 2023-07-02 13:37:09 +0000 |
---|---|---|
committer | tb <> | 2023-07-02 13:37:09 +0000 |
commit | 00e10f3df09e5d95916e1d74f109f76a1919b6f1 (patch) | |
tree | 4a45788c1a81131fd17dbb375d331a34e94f4b78 /src/lib/libssl/s3_lib.c | |
parent | a88c8d13465dce4e2d4d27f60d8ac8d14b2d1710 (diff) | |
download | openbsd-00e10f3df09e5d95916e1d74f109f76a1919b6f1.tar.gz openbsd-00e10f3df09e5d95916e1d74f109f76a1919b6f1.tar.bz2 openbsd-00e10f3df09e5d95916e1d74f109f76a1919b6f1.zip |
Switch sign_sig() and sign_setup() to using BN_CTX
Both these functions use a BN_CTX internally to deal with the EC API
that usually requires one. However, they don't actually make use of it.
Get the BIGNUMs from the BN_CTX instead, which simplifies the cleanup.
Also defer allocation of the ECDSA_SIG to the very end. Instead of using
its internal r and s, use two local r and s variables and transfer those
to the ECDSA_SIG on success.
ok beck jsing
Diffstat (limited to 'src/lib/libssl/s3_lib.c')
0 files changed, 0 insertions, 0 deletions