Clean up EVP_CIPHER_CTX_init() usage in cmac.c
authorjoshua <joshua@openbsd.org>
Sun, 28 Jan 2024 14:55:40 +0000 (14:55 +0000)
committerjoshua <joshua@openbsd.org>
Sun, 28 Jan 2024 14:55:40 +0000 (14:55 +0000)
commit2fe3a39751ebb77536815d27b157d508e17ca6ef
tree12af132b2359b5d964a554eb362f66d621ddd3db
parent24e0ccbe05a7fdbbbd23d395dfd276b28272d851
Clean up EVP_CIPHER_CTX_init() usage in cmac.c

This replaces usage of EVP_CIPHER_CTX_init() with EVEP_CIPHER_CTX_new(),
and EVP_CIPHER_CTX_cleanup() with EVP_CIPHER_CTX_reset().

This also replaces usage of malloc with calloc, and free with freezero.

ok tb@
lib/libcrypto/cmac/cmac.c