Add stub functions for Aes/Des Init/Free in TI_CRYPT

This commit is contained in:
kaleb-himes 2017-11-14 15:30:16 -07:00
parent cc65429946
commit 9ce73cf1a6
2 changed files with 32 additions and 0 deletions

View File

@ -545,6 +545,22 @@ WOLFSSL_API int wc_AesCcmDecrypt(Aes* aes, byte* out, const byte* in, word32 inS
}
#endif /* HAVE_AESCCM */
WOLFSSL_API int wc_AesInit(Aes* aes, void* heap, int devId)
{
if (aes == NULL)
return BAD_FUNC_ARG;
aes->heap = heap;
(void)devId;
return 0;
}
WOLFSSL_API void wc_AesFree(Aes* aes)
{
(void)aes;
}
#endif /* WOLFSSL_TI_CRYPT */
#endif /* NO_AES */

View File

@ -182,6 +182,22 @@ WOLFSSL_API int wc_Des3_CbcDecryptWithKey(byte* out, const byte* in, word32 sz,
return -1 ;
}
WOLFSSL_API int wc_Des3Init(Des3* des, void* heap, int devId)
{
if (des == NULL)
return BAD_FUNC_ARG;
des->heap = heap;
(void)devId;
return 0;
}
WOLFSSL_API void wc_Des3Free(Des3* des)
{
(void)des;
}
#endif /* WOLFSSL_TI_CRYPT */