Rework input and output handling for sha1.
authorjsing <jsing@openbsd.org>
Tue, 26 Mar 2024 12:54:22 +0000 (12:54 +0000)
committerjsing <jsing@openbsd.org>
Tue, 26 Mar 2024 12:54:22 +0000 (12:54 +0000)
commitc2de78a730b8a1135bccded945e3e59713ca7cbe
tree0feaac221073af6bab8849c392908c233560065d
parent47d273e8832472e1944a8f92392018a2e3e9a67c
Rework input and output handling for sha1.

Use be32toh(), htobe32() and crypto_{load,store}_htobe32() as appropriate.

Also use the same while() loop that is used for other hash functions.

ok joshua@ tb@
lib/libcrypto/sha/sha1.c