A simple library to support serving https.
Dependents: oldheating gps motorhome heating
Diff: tls/tls-aes128cbc-sha/tls-aes128cbc-sha.h
- Revision:
- 19:f22327e8be7b
- Parent:
- 18:e3cf22ba2a06
diff -r e3cf22ba2a06 -r f22327e8be7b tls/tls-aes128cbc-sha/tls-aes128cbc-sha.h --- a/tls/tls-aes128cbc-sha/tls-aes128cbc-sha.h Thu Oct 10 15:29:05 2019 +0000 +++ b/tls/tls-aes128cbc-sha/tls-aes128cbc-sha.h Tue Oct 15 07:26:15 2019 +0000 @@ -1,13 +1,14 @@ -#include "aes128.h" + +#include "aes128cbc.h" /* - iv * AES_BLOCKLEN (16) + iv * AES128CBC_BLOCK_SIZE (16) message: payload * payloadLength mac * SHA1_HASH_SIZE (20) - padding * 0 to AES_BLOCKLEN - 1 (0 to 15) + padding * 0 to AES128CBC_BLOCK_SIZE - 1 (0 to 15) paddingLength * 1 */ -#define TLS_AES_128_CBC_SHA1_MAX_OVERHEAD (AES_BLOCKLEN + SHA1_HASH_SIZE + AES_BLOCKLEN - 1 + 1) +#define TLS_AES_128_CBC_SHA1_MAX_OVERHEAD (AES128CBC_BLOCK_SIZE + SHA1_HASH_SIZE + AES128CBC_BLOCK_SIZE - 1 + 1) extern void TlsAes128CbcSha1EncryptStart(uint8_t** pp); extern void TlsAes128CbcSha1EncryptEnd(uint8_t** pp, struct TlsConnection* pConnection, uint8_t contentType);