CVSROOT:        /cvs
Module name:    src
Changes by:     js...@cvs.openbsd.org   2023/06/24 10:01:44

Modified files:
        lib/libcrypto/bn: bn_local.h bn_sqr.c 
        lib/libcrypto/bn/arch/amd64: bn_arch.c 

Log message:
Rewrite and simplify bn_sqr()/bn_sqr_normal().

Rework bn_sqr()/bn_sqr_normal() so that it is less convoluted and more
readable. Instead of recomputing values that the caller has already
computed, pass it as an argument. Avoid branching and remove duplication
of variables. Consistently use a_len and r_len naming for lengths.

ok tb@

Reply via email to