Merge pull request #1233 from kaleb-himes/TI_CRYPT_UPDATE

resolving build-time issues when using TI-CRYPT
This commit is contained in:
dgarske
2017-11-16 12:40:46 -08:00
committed by GitHub
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 */