summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dsa/dsa_gen.c
diff options
context:
space:
mode:
authorjsing <>2023-04-12 04:54:16 +0000
committerjsing <>2023-04-12 04:54:16 +0000
commitdf53803271f666cca4371636e989aa3c43db7649 (patch)
tree71be9c2306d6ac3d5d004e512e05bf07782c26a6 /src/lib/libcrypto/dsa/dsa_gen.c
parente4e955e54a109e3d9721a1aea29d3ca7c7d0c065 (diff)
downloadopenbsd-df53803271f666cca4371636e989aa3c43db7649.tar.gz
openbsd-df53803271f666cca4371636e989aa3c43db7649.tar.bz2
openbsd-df53803271f666cca4371636e989aa3c43db7649.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/dsa/dsa_gen.c')
0 files changed, 0 insertions, 0 deletions