openssl/providers/implementations/macs
Jiasheng Jiang e97f468589 macs/kmac_prov.c: Add checks for the EVP_MD_get_size()
Add checks for the EVP_MD_get_size() to avoid integer overflow and then explicitly cast from int to size_t.

Fixes: 6e624a6453 ("KMAC implementation using EVP_MAC")
Signed-off-by: Jiasheng Jiang <jiasheng@purdue.edu>

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23946)
2024-04-01 15:16:44 -04:00
..
blake2_mac_impl.c
blake2b_mac.c
blake2s_mac.c
build.info
cmac_prov.c
gmac_prov.c
hmac_prov.c
kmac_prov.c
poly1305_prov.c
siphash_prov.c