CVSROOT: /cvs Module name: src Changes by: js...@cvs.openbsd.org 2025/05/24 22:16:36
Modified files: lib/libcrypto/bn: bn_add.c Log message: Fix handling of different length inputs in bn_sub(). In the diff_len < 0 case, it incorrectly uses 0 - b[0], which mishandles the borrow - fix this by using bn_subw_subw(). Do the same in the diff_len > 0 case for consistency. Note that this is never currently reached since BN_usub() requires a >= b. ok beck@ tb@