summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/crypto_init.c
diff options
context:
space:
mode:
authorjsing <>2023-03-11 14:13:11 +0000
committerjsing <>2023-03-11 14:13:11 +0000
commit0011bd4b5ca21dd631b72942920a62fa4a90fa88 (patch)
tree0e761bee36c1a19143b0930f375dcd4bbe41820a /src/lib/libcrypto/crypto_init.c
parent7cfbad9af6db4ef1d10fba9d2f470cc280d8e37e (diff)
downloadopenbsd-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/crypto_init.c')
0 files changed, 0 insertions, 0 deletions