Clean up EVP_CIPHER_CTX_{legacy_clear,cleanup} usage in evp/bio_enc.c
authorjoshua <joshua@openbsd.org>
Mon, 25 Mar 2024 04:05:22 +0000 (04:05 +0000)
committerjoshua <joshua@openbsd.org>
Mon, 25 Mar 2024 04:05:22 +0000 (04:05 +0000)
commitf4205958c0af8ea9c979aca6156791f51a21e21d
tree71379b1e117703824d5a2a12446121a9390ed615
parent631ec0cd5e99d847dc10d0de1205ace2fe75167b
Clean up EVP_CIPHER_CTX_{legacy_clear,cleanup} usage in evp/bio_enc.c

Additionally, this tidies up some surrounding code and replaces usage of
free with freezero and malloc with calloc.

ok tb@
lib/libcrypto/evp/bio_enc.c