Add native MbedTLS crypto backend

This commit is contained in:
Cameron Gutman
2021-04-17 19:00:26 -05:00
parent d62ee951a0
commit 98d7ceecf7
3 changed files with 147 additions and 1 deletions

View File

@@ -247,7 +247,7 @@ static void inputSendThreadProc(void* context) {
else {
// Encrypt the message into the output buffer while leaving room for the length
encryptedSize = sizeof(encryptedBuffer) - 4;
err = encryptData((const unsigned char*)&holder->packet, holder->packetLength,
err = encryptData((unsigned char*)&holder->packet, holder->packetLength,
(unsigned char*)&encryptedBuffer[4], (int*)&encryptedSize);
free(holder);
if (err != 0) {