hostapd/src/crypto
Jouni Malinen a9bc6e89df OpenSSL: Fix a memory leak in CMAC
The OpenSSL 3.0 (or newer) version of omac1_aes_vector() did not free
the EVP_MAC. This resulted in a memory leak that shows up in a bit
strange way in valgrind reports and because of that, was not caught
during automated testing.

Fixes: 0c61f6234f ("OpenSSL: Implement CMAC using the EVP_MAC API")
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
2024-03-27 20:35:25 +02:00
..
aes-cbc.c Add TEST_FAIL() condition to aes_128_cbc_encrypt/decrypt() 2015-11-28 20:46:36 +02:00
aes-ccm.c AES-CCM: Use os_memcmp_const() for hash/password comparisons 2014-07-02 12:38:47 +03:00
aes-ctr.c Extend AES-SIV implementation to support different key lengths 2016-10-10 19:40:59 +03:00
aes-eax.c crypto: Clear temporary heap allocations before freeing 2015-01-06 02:49:13 +02:00
aes-encblock.c Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
aes-gcm.c AES-GCM: Use os_memcmp_const() for hash/password comparisons 2014-07-02 12:38:47 +03:00
aes-internal-dec.c crypto: Add return value to DES and AES encrypt/decrypt 2017-02-28 11:23:54 +02:00
aes-internal-enc.c Add TEST_FAIL() to aes_encrypt_init() with internal crypto 2019-03-16 18:52:09 +02:00
aes-internal.c Add support for using 192-bit and 256-bit keys with AES-GCM 2012-09-09 13:30:51 +03:00
aes-omac1.c tests: Add TEST_FAIL() condition to omac1_aes_vector() 2015-10-17 20:40:36 +03:00
aes-siv.c Use os_memdup() 2017-03-07 13:19:10 +02:00
aes-unwrap.c AES: Extend key wrap implementation to support longer data 2014-10-07 14:57:10 +03:00
aes-wrap.c AES: Extend key wrap implementation to support longer data 2014-10-07 14:57:10 +03:00
aes.h crypto: Add return value to DES and AES encrypt/decrypt 2017-02-28 11:23:54 +02:00
aes_i.h UBSan: Avoid dependency on undefined behavior in internal AES operation 2019-05-25 01:51:12 +03:00
aes_siv.h Extend AES-SIV implementation to support different key lengths 2016-10-10 19:40:59 +03:00
aes_wrap.h Extend AES-SIV implementation to support different key lengths 2016-10-10 19:40:59 +03:00
crypto.h Decrement hmac_sha*_vector() maximum num_elem value to 11 2023-08-25 11:34:14 +03:00
crypto_gnutls.c OpenSSL: Unload providers only at process exit 2022-04-16 18:51:32 +03:00
crypto_internal-cipher.c Fix AES block size handling for internal cipher 2012-09-09 14:12:59 +03:00
crypto_internal-modexp.c Add explicit checks for peer's DH public key 2019-03-05 17:05:03 +02:00
crypto_internal-rsa.c Replace "dummy" with "stub" in comments/documentation 2021-10-11 20:52:50 +03:00
crypto_internal.c OpenSSL: Unload providers only at process exit 2022-04-16 18:51:32 +03:00
crypto_libtomcrypt.c OpenSSL: Unload providers only at process exit 2022-04-16 18:51:32 +03:00
crypto_linux.c OpenSSL: Unload providers only at process exit 2022-04-16 18:51:32 +03:00
crypto_module_tests.c tests: Fix a memory leak in a module test 2024-01-22 21:16:47 +02:00
crypto_nettle.c OpenSSL: Unload providers only at process exit 2022-04-16 18:51:32 +03:00
crypto_none.c OpenSSL: Unload providers only at process exit 2022-04-16 18:51:32 +03:00
crypto_openssl.c OpenSSL: Fix a memory leak in CMAC 2024-03-27 20:35:25 +02:00
crypto_wolfssl.c wolfSSL: Old FIPS APIs have void return 2023-11-04 18:41:26 +02:00
des-internal.c crypto: Add return value to DES and AES encrypt/decrypt 2017-02-28 11:23:54 +02:00
des_i.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
dh_group5.c Fix memory leak on NFC DH generation error path 2015-11-29 20:53:20 +02:00
dh_group5.h Add dh5_init_fixed() to allow fixed DH parameters to be used 2012-06-27 21:22:12 +03:00
dh_groups.c Add explicit checks for peer's DH public key 2019-03-05 17:05:03 +02:00
dh_groups.h Add Diffie-Hellman group definitions for MODP groups in RFC 5114 2013-01-12 17:51:54 +02:00
fips_prf_internal.c FIPS PRF: Avoid duplicate SHA1Init() functionality 2022-05-27 00:32:12 +03:00
fips_prf_openssl.c OpenSSL: Use internal FIPS 186-2 PRF with OpenSSL 3.0 2022-05-27 00:32:10 +03:00
fips_prf_wolfssl.c wolfSSL: Use new digest namespace 2018-05-02 12:04:46 +03:00
Makefile build: Make more library things common 2020-10-12 20:20:35 +03:00
md4-internal.c crypto internal: Make MD4 PADDING array const 2019-01-02 17:26:57 +02:00
md5-internal.c Add TEST_FAIL() support for internal hash functions 2015-11-29 21:01:33 +02:00
md5.c crypto: Clear temporary stack buffers after use 2015-01-06 02:49:13 +02:00
md5.h FIPS: Remove md5-non-fips.c 2012-08-19 16:53:15 +03:00
md5_i.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
milenage.c Milenage: Use os_memcmp_const() for hash/password comparisons 2014-07-02 12:38:47 +03:00
milenage.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
ms_funcs.c crypto: Process des_encrypt() error returns in callers 2017-02-28 11:24:05 +02:00
ms_funcs.h crypto: Process des_encrypt() error returns in callers 2017-02-28 11:24:05 +02:00
random.c Replace "dummy" with "stub" in crypto/random 2021-10-11 20:57:06 +03:00
random.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
rc4.c Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
sha1-internal.c More forceful clearing of stack memory with keys 2019-05-26 16:11:56 +03:00
sha1-pbkdf2.c Clear temporary results from stack in PBKDF2-SHA1 2022-02-26 19:12:11 +02:00
sha1-prf.c More forceful clearing of stack memory with keys 2019-05-26 16:11:56 +03:00
sha1-tlsprf.c More forceful clearing of stack memory with keys 2019-05-26 16:11:56 +03:00
sha1-tprf.c More forceful clearing of stack memory with keys 2019-05-26 16:11:56 +03:00
sha1.c More forceful clearing of stack memory with keys 2019-05-26 16:11:56 +03:00
sha1.h Convert remaining SSID routines from char* to u8* 2012-08-07 16:07:25 +03:00
sha1_i.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
sha256-internal.c Get rid of multiple MIN macros 2024-01-14 20:13:20 +02:00
sha256-kdf.c More forceful clearing of stack memory with keys 2019-05-26 16:11:56 +03:00
sha256-prf.c More forceful clearing of stack memory with keys 2019-05-26 16:11:56 +03:00
sha256-tlsprf.c Return success/failure result from tls_prf_sha256() 2019-07-09 16:38:32 +03:00
sha256.c Decrement hmac_sha*_vector() maximum num_elem value to 11 2023-08-25 11:34:14 +03:00
sha256.h Return success/failure result from tls_prf_sha256() 2019-07-09 16:38:32 +03:00
sha256_i.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
sha384-internal.c Add SHA384 and SHA512 implementations from LibTomCrypt library 2015-11-29 18:19:32 +02:00
sha384-kdf.c More forceful clearing of stack memory with keys 2019-05-26 16:11:56 +03:00
sha384-prf.c More forceful clearing of stack memory with keys 2019-05-26 16:11:56 +03:00
sha384-tlsprf.c Add TLS-PRF using HMAC with P_SHA384 for TEAP 2019-08-16 21:16:37 +03:00
sha384.c Decrement hmac_sha*_vector() maximum num_elem value to 11 2023-08-25 11:34:14 +03:00
sha384.h Add TLS-PRF using HMAC with P_SHA384 for TEAP 2019-08-16 21:16:37 +03:00
sha384_i.h Add SHA384 and SHA512 implementations from LibTomCrypt library 2015-11-29 18:19:32 +02:00
sha512-internal.c Get rid of multiple MIN macros 2024-01-14 20:13:20 +02:00
sha512-kdf.c More forceful clearing of stack memory with keys 2019-05-26 16:11:56 +03:00
sha512-prf.c More forceful clearing of stack memory with keys 2019-05-26 16:11:56 +03:00
sha512.c Decrement hmac_sha*_vector() maximum num_elem value to 11 2023-08-25 11:34:14 +03:00
sha512.h Extend SHA-384 and SHA-512 support to match SHA-256 2017-06-17 18:04:12 +03:00
sha512_i.h Add SHA384 and SHA512 implementations from LibTomCrypt library 2015-11-29 18:19:32 +02:00
tls.h Compile-time config for dynamically loading libraries in wpa_supplicant 2023-11-05 10:23:29 +02:00
tls_gnutls.c Fix tls_connection_set_success_data() in TLS library wrappers 2022-05-04 00:05:09 +03:00
tls_internal.c Fix tls_connection_set_success_data() in TLS library wrappers 2022-05-04 00:05:09 +03:00
tls_none.c Fix tls_connection_set_success_data() in TLS library wrappers 2022-05-04 00:05:09 +03:00
tls_openssl.c Fix building against OpenSSL 3 2024-01-20 09:39:49 +02:00
tls_openssl.h BoringSSL: Move OCSP implementation into a separate file 2015-12-04 20:08:31 +02:00
tls_openssl_ocsp.c Remove a host of unnecessary OPENSSL_IS_BORINGSSL ifdefs 2022-07-28 12:57:40 +03:00
tls_wolfssl.c wolfSSL: Add more precise logging in wolfssl_handshake() 2023-11-04 18:18:25 +02:00