Clean up alignment handling for SHA-256.
authorjsing <jsing@openbsd.org>
Fri, 7 Jul 2023 15:06:50 +0000 (15:06 +0000)
committerjsing <jsing@openbsd.org>
Fri, 7 Jul 2023 15:06:50 +0000 (15:06 +0000)
commitb039d9494506a9d59f871a8cf0882a60f1f12b15
treed95f6b0b8a416b1bc124587e5ab1b56b3f175407
parent1fd3fa42d1ba312b06fdb35c2ceac4cf64c5c2f9
Clean up alignment handling for SHA-256.

If input data is 32 bit aligned use be32toh() directly, otherwise use
crypto_load_be32toh(), cleaning up all of the HOST_c2l() usage.

ok beck@
lib/libcrypto/sha/sha256.c