Add some sanity checks for EVP_CIPHER_meth_new()
authortb <tb@openbsd.org>
Wed, 20 Dec 2023 14:05:58 +0000 (14:05 +0000)
committertb <tb@openbsd.org>
Wed, 20 Dec 2023 14:05:58 +0000 (14:05 +0000)
commit1d4d2a17aac7dbfc3494125876d7069b17754e0c
treec3a6de112b24f232ac7bff9e07bc8b192dc1101a
parentbf2cda3585b27b96d0cc3bdd696bed0d3eb5b821
Add some sanity checks for EVP_CIPHER_meth_new()

Ensure that the nid and key length are non-negative and that the block
size is one of the three sizes 1, 8, or 16 supported by the EVP subsystem.

ok joshua jsing
lib/libcrypto/evp/cipher_method_lib.c