CVSROOT: /cvs Module name: src Changes by: js...@cvs.openbsd.org 2025/08/30 01:16:06
Modified files: lib/libcrypto/bn: bn_local.h bn_sqr.c lib/libcrypto/bn/arch/amd64: bn_arch.c bn_arch.h Log message: Rework bn_sqr() to use bn_sqr_words(). Rework some of the squaring code so that it calls bn_sqr_words() and use this as the integration point for assembly. Convert bn_sqr_normal() to bn_sqr_words(), which is then used on architectures that do not provide their own version. This means that we resume using the assembly version of bn_sqr_words() on i386, mips64 and powerpc, which can provide considerable performance gains. ok tb@