tls_record_decryption.h
uint32_t tlsVerifyMac(TlsContext *context, TlsEncryptionEngine *decryptionEngine, const void *record, const uint8_t *data, size_t dataLen, size_t maxDataLen, const uint8_t *mac)
MAC verification (constant time)
Definition: tls_record_decryption.c:663
error_t tlsDecryptAeadRecord(TlsContext *context, TlsEncryptionEngine *decryptionEngine, void *record)
Record decryption (AEAD cipher)
Definition: tls_record_decryption.c:126
error_t tlsDecryptRecord(TlsContext *context, TlsEncryptionEngine *decryptionEngine, void *record)
Decrypt an incoming TLS record.
Definition: tls_record_decryption.c:56
uint32_t tlsVerifyPadding(const uint8_t *data, size_t dataLen, size_t *paddingLen)
CBC padding verification (constant time)
Definition: tls_record_decryption.c:610
error_t tlsDecryptCbcRecord(TlsContext *context, TlsEncryptionEngine *decryptionEngine, void *record)
Record decryption (CBC block cipher)
Definition: tls_record_decryption.c:288
error_t tlsDecryptStreamRecord(TlsContext *context, TlsEncryptionEngine *decryptionEngine, void *record)
Record decryption (stream cipher)
Definition: tls_record_decryption.c:431
uint32_t tlsExtractMac(TlsEncryptionEngine *decryptionEngine, const uint8_t *data, size_t dataLen, size_t maxDataLen, uint8_t *mac)
Extract the MAC from the TLS record (constant time)
Definition: tls_record_decryption.c:864
TLS (Transport Layer Security)
error_t tlsVerifyMessageAuthCode(TlsContext *context, TlsEncryptionEngine *decryptionEngine, void *record)
Check message authentication code.
Definition: tls_record_decryption.c:472