Skip to content

Commit

Permalink
aes: do not include malloc.h
Browse files Browse the repository at this point in the history
No need to include malloc.h, all allocation functions
can come from stdlib.h and types.h

Signed-off-by: Pablo de Lara <[email protected]>
  • Loading branch information
pablodelara authored and mdcornu committed Apr 15, 2024
1 parent 7e4977c commit c4052c1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion aes/gcm_std_vectors_random_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <stdio.h>
#include <stdint.h>
#include <string.h> // for memcmp()
#include <malloc.h> // for memalign() and _aligned_malloc() & aligned_free()
#include <aes_gcm.h>
#include <openssl/sha.h>
#include "gcm_vectors.h"
Expand Down
1 change: 0 additions & 1 deletion aes/gcm_std_vectors_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <stdio.h>
#include <stdint.h>
#include <string.h> // for memcmp
#include <malloc.h> // for memalign() and _aligned_malloc() & aligned_free()
#include <aes_gcm.h>
#include "gcm_vectors.h"
#include "types.h"
Expand Down
1 change: 0 additions & 1 deletion aes/gcm_test_alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#ifndef GCM_TEST_ALLOC_H_
#define GCM_TEST_ALLOC_H_

#include <malloc.h> // for memalign() and _aligned_malloc() & aligned_free()
#include "types.h" // aligned_free() and posix_memalign() wrappers

#define DIM(x) (sizeof(x) / sizeof(x[0]))
Expand Down

0 comments on commit c4052c1

Please sign in to comment.