Skip to content

Commit dc2a811

Browse files
committed
Revert "Allow compiling aes.c with WOLFSSL_NO_MALLOC"
This reverts commit 56a96ba.
1 parent ee92f38 commit dc2a811

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

wolfcrypt/src/aes.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11299,7 +11299,6 @@ int wc_AesCcmEncrypt_ex(Aes* aes, byte* out, const byte* in, word32 sz,
1129911299

1130011300
#endif /* HAVE_AESCCM */
1130111301

11302-
#ifndef WOLFSSL_NO_MALLOC
1130311302
Aes* wc_AesNew(void* heap, int devId)
1130411303
{
1130511304
Aes* aes = (Aes*)XMALLOC(sizeof(Aes), heap, DYNAMIC_TYPE_AES);
@@ -11314,7 +11313,6 @@ Aes* wc_AesNew(void* heap, int devId)
1131411313
}
1131511314
return aes;
1131611315
}
11317-
#endif
1131811316

1131911317
/* Initialize Aes for use with async hardware */
1132011318
int wc_AesInit(Aes* aes, void* heap, int devId)
@@ -11527,11 +11525,9 @@ void wc_AesFree(Aes* aes)
1152711525
wc_MemZero_Check(aes, sizeof(Aes));
1152811526
#endif
1152911527

11530-
#ifndef WOLFSSL_NO_MALLOC
1153111528
if (isAllocated) {
1153211529
XFREE(aes, heap, DYNAMIC_TYPE_AES);
1153311530
}
11534-
#endif
1153511531

1153611532
}
1153711533

0 commit comments

Comments
 (0)