Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/ktls.h
Show All 38 Lines | struct tls_record_layer { | ||||
uint16_t tls_length; | uint16_t tls_length; | ||||
uint8_t tls_data[0]; | uint8_t tls_data[0]; | ||||
} __attribute__ ((packed)); | } __attribute__ ((packed)); | ||||
#define TLS_MAX_MSG_SIZE_V10_2 16384 | #define TLS_MAX_MSG_SIZE_V10_2 16384 | ||||
#define TLS_MAX_PARAM_SIZE 1024 /* Max key/mac/iv in sockopt */ | #define TLS_MAX_PARAM_SIZE 1024 /* Max key/mac/iv in sockopt */ | ||||
#define TLS_AEAD_GCM_LEN 4 | #define TLS_AEAD_GCM_LEN 4 | ||||
#define TLS_1_3_GCM_IV_LEN 12 | #define TLS_1_3_GCM_IV_LEN 12 | ||||
#define TLS_CHACHA20_IV_LEN 12 | |||||
#define TLS_CBC_IMPLICIT_IV_LEN 16 | #define TLS_CBC_IMPLICIT_IV_LEN 16 | ||||
/* Type values for the record layer */ | /* Type values for the record layer */ | ||||
#define TLS_RLTYPE_APP 23 | #define TLS_RLTYPE_APP 23 | ||||
/* | /* | ||||
* Nonce for GCM for TLS 1.2 per RFC 5288. | * Nonce for GCM for TLS 1.2 per RFC 5288. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 193 Lines • Show Last 20 Lines |