Provide and use crypto_store_htobe64().
authorjsing <jsing@openbsd.org>
Wed, 12 Apr 2023 04:40:39 +0000 (04:40 +0000)
committerjsing <jsing@openbsd.org>
Wed, 12 Apr 2023 04:40:39 +0000 (04:40 +0000)
commite1ee69a96c9b0c60c270abd422b678721b6d4a83
tree67ed87288b0bbfc580fc59cb8b7a0dddbdbd1723
parentbd19f13d388aebaef2a5d4c6cc691e9be48cd720
Provide and use crypto_store_htobe64().

It is common to need to store data in a specific endianness - rather than
handrolling and deduplicating code to do this, provide a
crypto_store_htobe64() function that converts from host endian to big
endian, before storing the data to a location with unknown alignment.

ok tb@
lib/libcrypto/crypto_internal.h [new file with mode: 0644]
lib/libcrypto/sha/sha512.c