CVSROOT:        /cvs
Module name:    src
Changes by:     js...@cvs.openbsd.org   2022/12/22 20:15:35

Modified files:
        lib/libcrypto/bn: bn_lib.c 

Log message:
Simplify BN_cmp() and BN_ucmp().

The only real difference between BN_cmp() and BN_ucmp() is that one has
to respect the sign of the BN (although BN_cmp() also gets to deal with
some insanity from accepting NULLs). Rewrite/cleanup BN_ucmp() and turn
BN_cmp() into code that handles differences in sign, before calling
BN_ucmp().

ok tb@

Reply via email to