summaryrefslogtreecommitdiff
path: root/src/lib/libssl
diff options
context:
space:
mode:
authortb <>2023-07-01 14:48:01 +0000
committertb <>2023-07-01 14:48:01 +0000
commit5855c97c92ffd9ede66d72d985e6008517f9b02c (patch)
treea3e8c65911fa61ce3960db681c2268d8bbcada60 /src/lib/libssl
parentf7d55086ac67cf69e2a58cf90ad07e63006d9bec (diff)
downloadopenbsd-5855c97c92ffd9ede66d72d985e6008517f9b02c.tar.gz
openbsd-5855c97c92ffd9ede66d72d985e6008517f9b02c.tar.bz2
openbsd-5855c97c92ffd9ede66d72d985e6008517f9b02c.zip
Use BN_bn2binpad() instead of handrolling it
As ugly as the BN_bn2binpad() internals are, what it does is quite handy with all sorts of EC stuff. So use it here too and eliminate some ugly manual pointer zeroing and offsets. Also switch len and buflen from size_t to int to remove an iffy cast: both are set by functions that return a non-negative int. ok jsing
Diffstat (limited to 'src/lib/libssl')
0 files changed, 0 insertions, 0 deletions