diff options
author | jsing <> | 2023-02-03 05:15:40 +0000 |
---|---|---|
committer | jsing <> | 2023-02-03 05:15:40 +0000 |
commit | ba26b03fd32705c4a038e9d1f6210d5676b9d200 (patch) | |
tree | 6e3d8f6695cdf826fe518436a21713b8dd9fa231 /src/lib/libcrypto/dsa/dsa_sign.c | |
parent | 32ac52a956aaf1824ef75d5eb466402227074a5b (diff) | |
download | openbsd-ba26b03fd32705c4a038e9d1f6210d5676b9d200.tar.gz openbsd-ba26b03fd32705c4a038e9d1f6210d5676b9d200.tar.bz2 openbsd-ba26b03fd32705c4a038e9d1f6210d5676b9d200.zip |
Clean up and simplify BN_mod_lshift{,_quick}().
BN_mod_lshift() already has a BN_CTX available, make use of it rather than
calling BN_dup() and BN_free().
In BN_mod_lshift_quick(), BN_copy() already handles dst == src, so avoid
checking this before the call. The max_shift == 0 case can also be handled
without code duplication. And as with other *_quick() functions, use
BN_ucmp() and BN_usub() directly given the 0 <= a < m constraint.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_sign.c')
0 files changed, 0 insertions, 0 deletions