CVSROOT: /cvs Module name: src Changes by: js...@cvs.openbsd.org 2023/02/09 02:16:26
Modified files: lib/libcrypto/bn: bn_local.h bn_sqr.c Log message: Clean up bn_sqr_words() Currently there are two versions of bn_sqr_words(), which call the sqr or sqr64 macro. Replace this with a single version that calls bn_umul_hilo() and remove the various implementations of the sqr macro. The only slight downside is that sqr64 does three multiplications instead of four, given that the second and third terms are identical. However, this is a minimal gain for the amount of duplication and entanglement it introduces. ok tb@