diff options
author | jsing <> | 2024-11-23 15:38:12 +0000 |
---|---|---|
committer | jsing <> | 2024-11-23 15:38:12 +0000 |
commit | d858094ad2067b28a4d1db54ddc77ec7db656253 (patch) | |
tree | f8f8e8ce27814c367d48b98920c756126feb9c42 /src/lib/libcrypto/ec/ecp_methods.c | |
parent | aa46849736d505ed56c131c6b6717eea90101a5f (diff) | |
download | openbsd-d858094ad2067b28a4d1db54ddc77ec7db656253.tar.gz openbsd-d858094ad2067b28a4d1db54ddc77ec7db656253.tar.bz2 openbsd-d858094ad2067b28a4d1db54ddc77ec7db656253.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/lib/libcrypto/ec/ecp_methods.c')
0 files changed, 0 insertions, 0 deletions