|
wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
|
RFC 9001 4: per-protection-level key sets. More...
Go to the source code of this file.
Data Structures | |
| struct | quic_keyset |
| Per-protection-level key store: one AES-128-GCM key set per level plus an installed flag. More... | |
Functions | |
| void | quic_keyset_init (quic_keyset *state) |
| Clear all levels to not-installed. | |
| int | quic_keyset_install (quic_keyset *state, int level, const quic_initial_keys *keys) |
| Install keys at level (0/1/2). | |
| int | quic_keyset_for_level (const quic_keyset *state, int level, const quic_initial_keys **out) |
| Fetch keys for level into *out. | |
RFC 9001 4: per-protection-level key sets.
Levels: 0=Initial, 1=Handshake, 2=1-RTT. Each level holds one quic_initial_keys (AES-128-GCM material) plus an installed flag.
| int quic_keyset_for_level | ( | const quic_keyset * | state, |
| int | level, | ||
| const quic_initial_keys ** | out ) |
Fetch keys for level into *out.
*out points into state; it stays valid while state lives and the level is not overwritten.
| state | key set to query |
| level | protection level (QUIC_LEVEL_*) |
| out | receives a pointer to the installed keys |
| void quic_keyset_init | ( | quic_keyset * | state | ) |
Clear all levels to not-installed.
| state | key set to reset |
| int quic_keyset_install | ( | quic_keyset * | state, |
| int | level, | ||
| const quic_initial_keys * | keys ) |
Install keys at level (0/1/2).
| state | key set to update |
| level | protection level (QUIC_LEVEL_*) |
| keys | key material copied into the set |