Bounds check mdlen that is passed to sha3_init().
authorjsing <jsing@openbsd.org>
Sun, 16 Apr 2023 15:32:16 +0000 (15:32 +0000)
committerjsing <jsing@openbsd.org>
Sun, 16 Apr 2023 15:32:16 +0000 (15:32 +0000)
commitaae7803dbcc61e039a0f8f11e61b169dc1010ae5
treef08dccc276f65742f8a8eae814486d0eceb23964
parent22b39d6b49cacc81d94eb781231c96e28edc172f
Bounds check mdlen that is passed to sha3_init().

While here, use KECCAK_BYTE_WIDTH instead of hardcoding the value.
lib/libcrypto/sha/sha3.c