summaryrefslogtreecommitdiff
path: root/src/usr.bin
diff options
context:
space:
mode:
authorjsing <>2023-02-03 05:15:40 +0000
committerjsing <>2023-02-03 05:15:40 +0000
commit8c388cc76603dfe3b33db90e5d3790131a43777b (patch)
tree6e3d8f6695cdf826fe518436a21713b8dd9fa231 /src/usr.bin
parenta881da8482cf1ded82dda8177f3be4c5a6f48ebc (diff)
downloadopenbsd-8c388cc76603dfe3b33db90e5d3790131a43777b.tar.gz
openbsd-8c388cc76603dfe3b33db90e5d3790131a43777b.tar.bz2
openbsd-8c388cc76603dfe3b33db90e5d3790131a43777b.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/usr.bin')
0 files changed, 0 insertions, 0 deletions