CVSROOT: /cvs Module name: src Changes by: js...@cvs.openbsd.org 2023/01/04 21:51:13
Modified files: lib/libcrypto/bn: bn_shift.c Log message: 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@