Fix compiler error for missing Task_Handle. Fix typo.

This commit is contained in:
David Garske
2023-11-22 14:08:01 -08:00
parent d17955f2d0
commit 842a60465a
2 changed files with 3 additions and 2 deletions

View File

@ -382,7 +382,7 @@ static int AesAuthEncrypt(Aes* aes, byte* out, const byte* in, word32 inSz,
XMEMSET(in_a, 0, ROUNDUP_16(inSz)); XMEMSET(in_a, 0, ROUNDUP_16(inSz));
XMEMCPY(in_a, in, inSz); XMEMCPY(in_a, in, inSz);
out_save = XMALLOC(ROUNDUP_16(inSz), NULL, DYNAMIC_TYPE_TMP_BUFFER) out_save = XMALLOC(ROUNDUP_16(inSz), NULL, DYNAMIC_TYPE_TMP_BUFFER);
if (out_save == NULL) { ret = MEMORY_E; goto exit; } if (out_save == NULL) { ret = MEMORY_E; goto exit; }
out_a = out_save; out_a = out_save;
} }
@ -453,7 +453,7 @@ static int AesAuthDecrypt(Aes* aes, byte* out, const byte* in, word32 inSz,
ret = AesAuthArgCheck(aes, out, in, inSz, nonce, nonceSz, authTag, ret = AesAuthArgCheck(aes, out, in, inSz, nonce, nonceSz, authTag,
authTagSz, authIn, authInSz, &M, &L) authTagSz, authIn, authInSz, &M, &L);
if (ret != 0) { if (ret != 0) {
return ret; return ret;
} }

View File

@ -130,6 +130,7 @@
#include "cmsis_os.h" #include "cmsis_os.h"
#elif defined(WOLFSSL_TIRTOS) #elif defined(WOLFSSL_TIRTOS)
#include <ti/sysbios/BIOS.h> #include <ti/sysbios/BIOS.h>
#include <ti/sysbios/knl/Task.h>
#include <ti/sysbios/knl/Semaphore.h> #include <ti/sysbios/knl/Semaphore.h>
#elif defined(WOLFSSL_FROSTED) #elif defined(WOLFSSL_FROSTED)
#include <semaphore.h> #include <semaphore.h>