| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
#pragma once |
| 17 |
|
| 18 |
#include "tls/s2n_connection.h" |
| 19 |
|
| 20 |
int s2n_record_parse_aead( |
| 21 |
const struct s2n_cipher_suite *cipher_suite, |
| 22 |
struct s2n_connection *conn, |
| 23 |
uint8_t content_type, |
| 24 |
uint16_t encrypted_length, |
| 25 |
uint8_t *implicit_iv, |
| 26 |
struct s2n_hmac_state *mac, |
| 27 |
uint8_t *sequence_number, |
| 28 |
struct s2n_session_key *session_key); |
| 29 |
int s2n_record_parse_cbc( |
| 30 |
const struct s2n_cipher_suite *cipher_suite, |
| 31 |
struct s2n_connection *conn, |
| 32 |
uint8_t content_type, |
| 33 |
uint16_t encrypted_length, |
| 34 |
uint8_t *implicit_iv, |
| 35 |
struct s2n_hmac_state *mac, |
| 36 |
uint8_t *sequence_number, |
| 37 |
struct s2n_session_key *session_key); |
| 38 |
int s2n_record_parse_composite( |
| 39 |
const struct s2n_cipher_suite *cipher_suite, |
| 40 |
struct s2n_connection *conn, |
| 41 |
uint8_t content_type, |
| 42 |
uint16_t encrypted_length, |
| 43 |
uint8_t *implicit_iv, |
| 44 |
struct s2n_hmac_state *mac, |
| 45 |
uint8_t *sequence_number, |
| 46 |
struct s2n_session_key *session_key); |
| 47 |
int s2n_record_parse_stream( |
| 48 |
const struct s2n_cipher_suite *cipher_suite, |
| 49 |
struct s2n_connection *conn, |
| 50 |
uint8_t content_type, |
| 51 |
uint16_t encrypted_length, |
| 52 |
uint8_t *implicit_iv, |
| 53 |
struct s2n_hmac_state *mac, |
| 54 |
uint8_t *sequence_number, |
| 55 |
struct s2n_session_key *session_key); |