| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
#pragma once |
| 17 |
|
| 18 |
#include "crypto/s2n_tls13_keys.h" |
| 19 |
#include "tls/s2n_connection.h" |
| 20 |
#include "tls/s2n_key_update.h" |
| 21 |
#include "utils/s2n_blob.h" |
| 22 |
#include "utils/s2n_safety.h" |
| 23 |
|
| 24 |
int s2n_tls13_mac_verify(struct s2n_tls13_keys *keys, struct s2n_blob *finished_verify, struct s2n_blob *wire_verify); |
| 25 |
|
| 26 |
#define s2n_get_hash_state(hash_state, alg, conn) \ |
| 27 |
struct s2n_hash_state hash_state = { 0 }; \ |
| 28 |
POSIX_GUARD(s2n_handshake_get_hash_state(conn, alg, &hash_state)); |
| 29 |
|
| 30 |
|
| 31 |
#define s2n_tls13_connection_keys(keys, conn) \ |
| 32 |
DEFER_CLEANUP(struct s2n_tls13_keys keys = { 0 }, s2n_tls13_keys_free); \ |
| 33 |
POSIX_GUARD(s2n_tls13_keys_from_conn(&keys, conn)); |
| 34 |
|
| 35 |
int s2n_tls13_keys_from_conn(struct s2n_tls13_keys *keys, struct s2n_connection *conn); |
| 36 |
|
| 37 |
int s2n_tls13_compute_shared_secret(struct s2n_connection *conn, struct s2n_blob *shared_secret); |
| 38 |
int s2n_tls13_pq_hybrid_supported(struct s2n_connection *conn); |
| 39 |
int s2n_update_application_traffic_keys(struct s2n_connection *conn, s2n_mode mode, keyupdate_status status); |
| 40 |
|
| 41 |
int s2n_server_hello_retry_recreate_transcript(struct s2n_connection *conn); |