ffc/ffc_params_generate.c: Add the check for the EVP_MD_get_size()
authorJiasheng Jiang <jiasheng@purdue.edu>
Mon, 25 Mar 2024 16:54:55 +0000 (16:54 +0000)
committerTomas Mraz <tomas@openssl.org>
Tue, 9 Apr 2024 18:47:47 +0000 (20:47 +0200)
commit309c7ffd17334a9f9f5b04286892f10a9aca8a2e
tree4b4c4a9e3c32870857c439ea230191323fdaf5a7
parentf5fde94c54a1ad49663391750fd1b2f47550a4b6
ffc/ffc_params_generate.c: Add the check for the EVP_MD_get_size()

Add the check for the EVP_MD_get_size() to avoid invalid negative numbers.

Fixes: 4f2271d58a ("Add ACVP fips module tests")
Signed-off-by: Jiasheng Jiang <jiasheng@purdue.edu>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23970)
crypto/ffc/ffc_params_generate.c