summaryrefslogtreecommitdiff
path: root/usr.sbin/zdump/zdump.c
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-12-18 12:27:59 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-12-18 12:27:59 +0000
commit305e3247e028af6e7a1691307df4629d9d6e5512 (patch)
tree8db6fef0d14bfc7000f7dd5e9bee41133de2299c /usr.sbin/zdump/zdump.c
parentd04ce6f603a1cf446957e2ab2bd0068a8f4bb81e (diff)
acme-client: simplify elliptic curve signatures
We can get the correct size of the signature using EVP_PKEY_bits() which uses the order instead of the (strictly speaking incorrect) degree. Grab the (r, s) out of the ECDSA signature with ECDSA_SIG_get0_{r,s}(), which is a saner interface than EVP_SIG_get0(). Finally, do the zero padding using BN_bn2binpad() which is simpler than the currently rather fiddly solution. ok jsing
Diffstat (limited to 'usr.sbin/zdump/zdump.c')
0 files changed, 0 insertions, 0 deletions