summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/arch/amd64
diff options
context:
space:
mode:
authorjsing <>2025-08-14 14:55:43 +0000
committerjsing <>2025-08-14 14:55:43 +0000
commit3d3d845569e98c5b0f11899e4958cca728c8b99a (patch)
treea341bde2bee149d6abd69978567dd1198a091e3d /src/lib/libcrypto/arch/amd64
parenta3eb15e012fb4bb74bd6789fdb9318e71bb32d97 (diff)
downloadopenbsd-3d3d845569e98c5b0f11899e4958cca728c8b99a.tar.gz
openbsd-3d3d845569e98c5b0f11899e4958cca728c8b99a.tar.bz2
openbsd-3d3d845569e98c5b0f11899e4958cca728c8b99a.zip
Clean up parts of rc4.
Provide a static inline rc4_step() function that replaces the near identical RC4_STEP and RC4_LOOP macros. Simplify the processing loop and use for loops with small constants, which the compiler can unroll if it wants to do so. Inline the SK_LOOP macro in rc4_set_key_internal(), also using a small loop that the compiler will most likely unroll. ok tb@
Diffstat (limited to 'src/lib/libcrypto/arch/amd64')
0 files changed, 0 insertions, 0 deletions