diff options
author | jsing <> | 2023-02-03 05:06:20 +0000 |
---|---|---|
committer | jsing <> | 2023-02-03 05:06:20 +0000 |
commit | 9b5bdc5a2c900891ed84604e8f1dc4031ce86c5b (patch) | |
tree | 64e3aa7df0ba5d330f8370d337810a97c6a04572 /src/lib/libcrypto/dsa/dsa_ossl.c | |
parent | f870a43c7d4f6107102f51cfb8ab3ceed8174aec (diff) | |
download | openbsd-9b5bdc5a2c900891ed84604e8f1dc4031ce86c5b.tar.gz openbsd-9b5bdc5a2c900891ed84604e8f1dc4031ce86c5b.tar.bz2 openbsd-9b5bdc5a2c900891ed84604e8f1dc4031ce86c5b.zip |
Simplify BN_mod_{lshift1,sub}_quick().
The BN_mod_.*_quick() functions require that their inputs are non-negative
and are already reduced. As such, they can and should use BN_ucmp() and
BN_usub() instead of BN_cmp() and BN_add()/BN_sub() (which internally call
BN_uadd()/BN_usub() and potentially BN_cmp()).
ok tb@
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_ossl.c')
0 files changed, 0 insertions, 0 deletions