13#define TICKET_SECRET_LEN 48
14#define TICKET_KEY_LEN 32
17#define TICKET_NONCE_LEN 12
18#define TICKET_TAG_LEN 16
19#define TICKET_PLAIN_LEN (TICKET_SECRET_LEN + 8 + 4 + 4 + 1 + 1 + 2)
20#define TICKET_SEALED_LEN (TICKET_NONCE_LEN + TICKET_PLAIN_LEN + TICKET_TAG_LEN)
45void ticket_seal(
const ticket* t,
const u8 key[TICKET_KEY_LEN],
u8* out);
Value-type views that fold the SDK's recurring argument shapes into single parameters,...
One resumption ticket's plaintext contents (RFC 8446 4.6.1).
Definition ticket.h:23
u8 secret[TICKET_SECRET_LEN]
resumption master secret
Definition ticket.h:24
u32 lifetime_secs
ticket_lifetime (RFC 8446 4.6.1)
Definition ticket.h:26
u16 suite
RFC 8446 4.2.10/4.2.11: the issuing connection's cipher suite.
Definition ticket.h:38
u32 age_add
ticket_age_add (RFC 8446 4.6.1), random per ticket
Definition ticket.h:27
u64 issued_at
server clock at issuance
Definition ticket.h:25
u8 alpn
RFC 8446 4.2.10: the issuing connection's negotiated ALPN (a salpn_choice), so 0-RTT is only accepted...
Definition ticket.h:31
u8 ticket_nonce
RFC 8446 4.6.1: the ticket_nonce sent with this ticket, kept so the server derives the same PSK when ...
Definition ticket.h:34
Read-only view of a byte range.
Definition span.h:30
unsigned int u32
unsigned 32-bit integer
Definition types.h:15
unsigned short u16
unsigned 16-bit integer
Definition types.h:17
unsigned char u8
unsigned 8-bit integer / byte
Definition types.h:18
unsigned long u64
unsigned 64-bit integer
Definition types.h:13