diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2023-05-28 10:34:18 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2023-05-28 10:34:18 +0000 |
commit | c64e730f7724debbd1f89cecd13264fc363684d2 (patch) | |
tree | c6c45dd6d4a646f05257448cea2d737e86352bbe /sys | |
parent | 0556cac25103ec24fa9cc396eb3a1fdc739a4b03 (diff) |
Rewrite BN_{asc,dec,hex}2bn() using CBS.
This gives us more readable and safer code. There are two intentional
changes to behaviour - firstly, all three functions zero any BN that was
passed in, prior to doing any further processing. This means that a passed
BN is always in a known state, regardless of what happens later. Secondly,
BN_asc2bn() now fails on NULL input, rather than crashing. This brings its
behaviour inline with BN_dec2bn() and BN_hex2bn().
ok tb@
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions