A simple library to support serving https.
Dependents: oldheating gps motorhome heating
Diff: tls/tls-connection.h
- Revision:
- 19:f22327e8be7b
- Parent:
- 17:93feb2a51d58
--- a/tls/tls-connection.h Thu Oct 10 15:29:05 2019 +0000 +++ b/tls/tls-connection.h Tue Oct 15 07:26:15 2019 +0000 @@ -2,7 +2,9 @@ #include <stdint.h> #include "tls-defs.h" +#include "sha1.h" #include "sha256.h" +#include "aes128cbc.h" #define DO_WAIT_CLIENT_HELLO 0 #define DO_SEND_SERVER_HELLO_NEW 1 @@ -36,10 +38,10 @@ uint32_t serverPositionInStreamOffset; int slotPriKeyDecryption; - uint8_t clientMacKey [TLS_LENGTH_MAC_KEY]; - uint8_t serverMacKey [TLS_LENGTH_MAC_KEY]; - uint8_t clientWriteKey[TLS_LENGTH_CIPHER_KEY]; - uint8_t serverWriteKey[TLS_LENGTH_CIPHER_KEY]; + uint8_t clientMacKey [SHA1_HASH_SIZE]; + uint8_t serverMacKey [SHA1_HASH_SIZE]; + uint8_t clientWriteKey[AES128CBC_BLOCK_SIZE]; + uint8_t serverWriteKey[AES128CBC_BLOCK_SIZE]; }; extern struct TlsConnection* TlsConnectionGetNext(void);