summaryrefslogtreecommitdiff
path: root/src/lib/libc
diff options
context:
space:
mode:
authortb <>2023-07-01 14:48:01 +0000
committertb <>2023-07-01 14:48:01 +0000
commite31da3c8eee0fdd1dcf6c0a9c3e447aba90a70e3 (patch)
treea3e8c65911fa61ce3960db681c2268d8bbcada60 /src/lib/libc
parent0b62628544207292086b9e49e37fcd12d51198dd (diff)
downloadopenbsd-e31da3c8eee0fdd1dcf6c0a9c3e447aba90a70e3.tar.gz
openbsd-e31da3c8eee0fdd1dcf6c0a9c3e447aba90a70e3.tar.bz2
openbsd-e31da3c8eee0fdd1dcf6c0a9c3e447aba90a70e3.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/libc')
0 files changed, 0 insertions, 0 deletions