diff options
author | jsing <> | 2023-03-11 14:13:11 +0000 |
---|---|---|
committer | jsing <> | 2023-03-11 14:13:11 +0000 |
commit | 2169aa7d8fb1fca93b35610fe1cce79730752235 (patch) | |
tree | 0e761bee36c1a19143b0930f375dcd4bbe41820a /src/usr.bin | |
parent | fc34d2e11e2863715e991553eaeef6c687ec8910 (diff) | |
download | openbsd-2169aa7d8fb1fca93b35610fe1cce79730752235.tar.gz openbsd-2169aa7d8fb1fca93b35610fe1cce79730752235.tar.bz2 openbsd-2169aa7d8fb1fca93b35610fe1cce79730752235.zip |
Correct sign handling in BN_add_word().
A sign handling bug was introduced to BN_add_word() in bn_word.c r1.18.
When handling addition to a negative bignum, the BN_sub_word() call can
result in the sign being flipped, which we need to account for. Use the
same code in BN_sub_word() - while not technically needed here it keeps
the code consistent.
Issue discovered by tb@
ok tb@
Diffstat (limited to 'src/usr.bin')
0 files changed, 0 insertions, 0 deletions