diff options
author | jsing <> | 2023-04-12 04:54:16 +0000 |
---|---|---|
committer | jsing <> | 2023-04-12 04:54:16 +0000 |
commit | 0639a12b364c61132014c0052e54345f2de59568 (patch) | |
tree | 71be9c2306d6ac3d5d004e512e05bf07782c26a6 /src/lib/libcrypto/dh/dh_err.c | |
parent | a9c434936ce2a17263afcfb92d37ece5fd9b1220 (diff) | |
download | openbsd-0639a12b364c61132014c0052e54345f2de59568.tar.gz openbsd-0639a12b364c61132014c0052e54345f2de59568.tar.bz2 openbsd-0639a12b364c61132014c0052e54345f2de59568.zip |
Provide and use crypto_ro{l,r}_u{32,64}().
Various code in libcrypto needs bitwise rotation - rather than defining
different versions across the code base, provide a common set that can
be reused. Any sensible compiler optimises these to a single instruction
where the architecture supports it, which means we can ditch the inline
assembly.
On the chance that we need to provide a platform specific versions, this
follows the approach used in BN where a MD crypto_arch.h header could be
added in the future, which would then provide more specific versions of
these functions.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/dh/dh_err.c')
0 files changed, 0 insertions, 0 deletions