CVSROOT: /cvs Module name: src Changes by: js...@cvs.openbsd.org 2022/11/26 06:56:33
Modified files: lib/libcrypto/bn: bn_add.c bn_blind.c bn_ctx.c bn_div.c bn_exp.c bn_exp2.c bn_gcd.c bn_gf2m.c bn_kron.c bn_lcl.h bn_lib.c bn_mod.c bn_mont.c bn_mpi.c bn_mul.c bn_prime.c bn_print.c bn_rand.c bn_recp.c bn_shift.c bn_sqr.c bn_sqrt.c bn_word.c Log message: Remove BIGNUM consistency macros. Compiling with BN_DEBUG (and if you want to take it further, BN_DEBUG_RAND) supposedly adds consistency checks to the BN code. These are rarely if ever used and introduce a bunch of clutter in the code. Furthermore, there are hacks in place to undo things that the debugging code does. Remove all of this mess and instead rely on always enabled checks, more readable code and proper regress coverage to ensure correct behaviour. "Good riddance." tb@