CVSROOT: /cvs Module name: src Changes by: [email protected] 2024/11/23 08:38:12
Modified files:
lib/libcrypto/sha: sha3.c
Log message:
Simplify endian handling in SHA-3.
Rather than having blocks of code that are conditional on
BYTE_ORDER != LITTLE_ENDIAN, use le64toh() and htole64() unconditionally.
In the case of a little endian platform, the compiler will optimise this
away, while on a big endian platform we'll either end up with better code
or the same code than we have currently.
ok tb@
