diff options
author | tb <> | 2023-07-01 14:48:01 +0000 |
---|---|---|
committer | tb <> | 2023-07-01 14:48:01 +0000 |
commit | e31da3c8eee0fdd1dcf6c0a9c3e447aba90a70e3 (patch) | |
tree | a3e8c65911fa61ce3960db681c2268d8bbcada60 /src/lib/libc | |
parent | 0b62628544207292086b9e49e37fcd12d51198dd (diff) | |
download | openbsd-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