diff options
author | jsing <> | 2023-01-05 04:51:13 +0000 |
---|---|---|
committer | jsing <> | 2023-01-05 04:51:13 +0000 |
commit | 85718f1d91400233ccd8a2c312aee1c24b05ff46 (patch) | |
tree | 14009b83106fd4fa918b0f183c1537afa8848e46 /src/lib/libcrypto/dsa/dsa_ossl.c | |
parent | 603835232f526293fc1733ef4cc4cfc9c4b00771 (diff) | |
download | openbsd-85718f1d91400233ccd8a2c312aee1c24b05ff46.tar.gz openbsd-85718f1d91400233ccd8a2c312aee1c24b05ff46.tar.bz2 openbsd-85718f1d91400233ccd8a2c312aee1c24b05ff46.zip |
Rewrite BN_rshift()
This improves readability and eliminates special handling for various
cases, making the code cleaner and closer to constant time.
Basic benchmarking shows a performance gain on modern 64 bit architectures,
while there is a decrease on legacy 32 bit architectures (i386),
particularly for the zero bit shift case (which is now handled in the
same code path).
ok tb@
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_ossl.c')
0 files changed, 0 insertions, 0 deletions