diff options
author | jsing <> | 2024-11-23 15:38:12 +0000 |
---|---|---|
committer | jsing <> | 2024-11-23 15:38:12 +0000 |
commit | ee65f9388e2e3a70bf26a70fa1747948f88269dc (patch) | |
tree | f8f8e8ce27814c367d48b98920c756126feb9c42 /src/usr.bin | |
parent | f69cab5db16bb210dd0d4ae2f7e6e80ea8b29503 (diff) | |
download | openbsd-ee65f9388e2e3a70bf26a70fa1747948f88269dc.tar.gz openbsd-ee65f9388e2e3a70bf26a70fa1747948f88269dc.tar.bz2 openbsd-ee65f9388e2e3a70bf26a70fa1747948f88269dc.zip |
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@
Diffstat (limited to 'src/usr.bin')
0 files changed, 0 insertions, 0 deletions