CVSROOT: /cvs Module name: src Changes by: js...@cvs.openbsd.org 2023/04/19 04:51:22
Modified files: lib/libcrypto/bn: bn.h bn_lib.c bn_local.h bn_mul.c bn_sqr.c Log message: unifdef BN_RECURSION This removes a bunch of incomplete and scary code, which potentially leaks secrets and is not constant time. A performance gain is achieved on arm64 for sizes that we care about, while a minimal decrease in performance is noted for larger sizes on some other platforms. While we will potentially reimplement Karatsuba (or Toom-Cook) at a later date, it will be easier and safer to do it from a clean slate. ok tb@