diff options
author | jsing <> | 2023-06-24 16:01:44 +0000 |
---|---|---|
committer | jsing <> | 2023-06-24 16:01:44 +0000 |
commit | 7d512d54bfa4ced3119d0fe31adc99aa92bbc6ea (patch) | |
tree | d032bf8af96bb9caac79fdb34b7d962c021ef65a /src/lib/libcrypto/ecdsa | |
parent | 9e7af2e933573c645b1fd326082f5705781bac2b (diff) | |
download | openbsd-7d512d54bfa4ced3119d0fe31adc99aa92bbc6ea.tar.gz openbsd-7d512d54bfa4ced3119d0fe31adc99aa92bbc6ea.tar.bz2 openbsd-7d512d54bfa4ced3119d0fe31adc99aa92bbc6ea.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/ecdsa')
0 files changed, 0 insertions, 0 deletions