A simple library to support serving https.

Dependents:   oldheating gps motorhome heating

Revision:
18:e3cf22ba2a06
Child:
19:f22327e8be7b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tls/tls-aes128cbc-sha/tls-aes128cbc-sha.h	Thu Oct 10 15:29:05 2019 +0000
@@ -0,0 +1,14 @@
+#include "aes128.h"
+/*
+    iv          * AES_BLOCKLEN (16)
+    message:
+        payload       * payloadLength
+        mac           * SHA1_HASH_SIZE (20)
+        padding       * 0 to AES_BLOCKLEN - 1 (0 to 15)
+        paddingLength * 1
+*/
+#define TLS_AES_128_CBC_SHA1_MAX_OVERHEAD (AES_BLOCKLEN + SHA1_HASH_SIZE + AES_BLOCKLEN - 1 + 1)
+
+extern void TlsAes128CbcSha1EncryptStart(uint8_t** pp);
+extern void TlsAes128CbcSha1EncryptEnd(uint8_t** pp, struct TlsConnection* pConnection, uint8_t contentType);
+extern void TlsAes128CbcSha1Decrypt(int* pLength, uint8_t** pp, struct TlsConnection* pConnection, uint8_t contentType);