diff options
author | jsing <> | 2023-03-11 14:13:11 +0000 |
---|---|---|
committer | jsing <> | 2023-03-11 14:13:11 +0000 |
commit | 0011bd4b5ca21dd631b72942920a62fa4a90fa88 (patch) | |
tree | 0e761bee36c1a19143b0930f375dcd4bbe41820a /src/lib/libcrypto/dsa/dsa_lib.c | |
parent | 7cfbad9af6db4ef1d10fba9d2f470cc280d8e37e (diff) | |
download | openbsd-0011bd4b5ca21dd631b72942920a62fa4a90fa88.tar.gz openbsd-0011bd4b5ca21dd631b72942920a62fa4a90fa88.tar.bz2 openbsd-0011bd4b5ca21dd631b72942920a62fa4a90fa88.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/lib/libcrypto/dsa/dsa_lib.c')
0 files changed, 0 insertions, 0 deletions