forked from wolfSSL/wolfssl
Merge pull request #1233 from kaleb-himes/TI_CRYPT_UPDATE
resolving build-time issues when using TI-CRYPT
This commit is contained in:
@@ -545,6 +545,22 @@ WOLFSSL_API int wc_AesCcmDecrypt(Aes* aes, byte* out, const byte* in, word32 inS
|
|||||||
}
|
}
|
||||||
#endif /* HAVE_AESCCM */
|
#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 /* WOLFSSL_TI_CRYPT */
|
||||||
|
|
||||||
#endif /* NO_AES */
|
#endif /* NO_AES */
|
||||||
|
@@ -182,6 +182,22 @@ WOLFSSL_API int wc_Des3_CbcDecryptWithKey(byte* out, const byte* in, word32 sz,
|
|||||||
return -1 ;
|
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 */
|
#endif /* WOLFSSL_TI_CRYPT */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user