diff options
author | jsing <> | 2025-08-17 08:04:25 +0000 |
---|---|---|
committer | jsing <> | 2025-08-17 08:04:25 +0000 |
commit | c9f6ed45b268d1c6b5608ff56379e3b051625806 (patch) | |
tree | c4d739fc2ff0a7cc1a149a22a0dee426bf9cdcb4 /src/regress/lib/libcrypto/rsa/rsa_method_test.c | |
parent | 13656f0db6ccf444b794aea868c6e5bdfc241a24 (diff) | |
download | openbsd-c9f6ed45b268d1c6b5608ff56379e3b051625806.tar.gz openbsd-c9f6ed45b268d1c6b5608ff56379e3b051625806.tar.bz2 openbsd-c9f6ed45b268d1c6b5608ff56379e3b051625806.zip |
Further simplify the rc4 implementation.
The RC4_CHUNK related code is intended to process native word sized
chunks if the input and output are naturally aligned. However, RC4_CHUNK
is currently a mess of machine dependent defines.
Replace this with uint64_t on all architectures - 64 bit architectures will
be happy with this and on 32 bit architectures the compiler can decompose
this into multiple 32 bit operations. Provide separate rc4_chunk()
implementations for big and little endian, since not all architectures
have a byte swap instruction that would make this a cheap conversion.
Thanks to gkoehler@ and tb@ for testing on big endian.
ok tb@
Diffstat (limited to 'src/regress/lib/libcrypto/rsa/rsa_method_test.c')
0 files changed, 0 insertions, 0 deletions