summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ec_lib.c
diff options
context:
space:
mode:
authorjsing <>2023-06-24 16:01:44 +0000
committerjsing <>2023-06-24 16:01:44 +0000
commit3180c8185bba7d792127e1b9bc87f11e439ba0fb (patch)
treed032bf8af96bb9caac79fdb34b7d962c021ef65a /src/lib/libcrypto/ec/ec_lib.c
parentd88d3c7eb1bc4b0da2212f0020a52430971c7e74 (diff)
downloadopenbsd-3180c8185bba7d792127e1b9bc87f11e439ba0fb.tar.gz
openbsd-3180c8185bba7d792127e1b9bc87f11e439ba0fb.tar.bz2
openbsd-3180c8185bba7d792127e1b9bc87f11e439ba0fb.zip
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@
Diffstat (limited to 'src/lib/libcrypto/ec/ec_lib.c')
0 files changed, 0 insertions, 0 deletions