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 Copyright year updates 2023-09-07 09:59:15 +01:00
blake2b_mac.c mac: add a getter for the MAC block size. 2021-05-25 17:23:50 +10:00
blake2s_mac.c mac: add a getter for the MAC block size. 2021-05-25 17:23:50 +10:00
build.info Drop libimplementations.a 2021-05-07 10:17:23 +02:00
cmac_prov.c evp-cmac: do not seg-fault when getting mac-size before init 2023-12-01 11:54:51 +01:00
gmac_prov.c Copyright year updates 2023-09-07 09:59:15 +01:00
hmac_prov.c Ignore OSSL_MAC_PARAM_DIGEST_NOINIT/OSSL_MAC_PARAM_DIGEST_ONESHOT 2023-12-26 10:36:00 -05:00
kmac_prov.c macs/kmac_prov.c: Add checks for the EVP_MD_get_size() 2024-04-01 15:16:44 -04:00
poly1305_prov.c Copyright year updates 2023-09-07 09:59:15 +01:00
siphash_prov.c Copyright year updates 2023-09-07 09:59:15 +01:00