From c4052c1815410a423738b1210b21f110d9c7ebca Mon Sep 17 00:00:00 2001 From: Pablo de Lara Date: Mon, 15 Apr 2024 15:22:17 +0100 Subject: [PATCH] aes: do not include malloc.h No need to include malloc.h, all allocation functions can come from stdlib.h and types.h Signed-off-by: Pablo de Lara --- aes/gcm_std_vectors_random_test.c | 1 - aes/gcm_std_vectors_test.c | 1 - aes/gcm_test_alloc.h | 1 - 3 files changed, 3 deletions(-) diff --git a/aes/gcm_std_vectors_random_test.c b/aes/gcm_std_vectors_random_test.c index f2b7c9b6..0b3fb866 100644 --- a/aes/gcm_std_vectors_random_test.c +++ b/aes/gcm_std_vectors_random_test.c @@ -31,7 +31,6 @@ #include #include #include // for memcmp() -#include // for memalign() and _aligned_malloc() & aligned_free() #include #include #include "gcm_vectors.h" diff --git a/aes/gcm_std_vectors_test.c b/aes/gcm_std_vectors_test.c index 5cc3edb3..d85f9bdb 100644 --- a/aes/gcm_std_vectors_test.c +++ b/aes/gcm_std_vectors_test.c @@ -31,7 +31,6 @@ #include #include #include // for memcmp -#include // for memalign() and _aligned_malloc() & aligned_free() #include #include "gcm_vectors.h" #include "types.h" diff --git a/aes/gcm_test_alloc.h b/aes/gcm_test_alloc.h index 3dd392ae..e76ba793 100644 --- a/aes/gcm_test_alloc.h +++ b/aes/gcm_test_alloc.h @@ -30,7 +30,6 @@ #ifndef GCM_TEST_ALLOC_H_ #define GCM_TEST_ALLOC_H_ -#include // for memalign() and _aligned_malloc() & aligned_free() #include "types.h" // aligned_free() and posix_memalign() wrappers #define DIM(x) (sizeof(x) / sizeof(x[0]))