QUIC v1 Initial packet protection primitives.
Summary
Functions
Derive QUIC Handshake/Application packet protection keys from a TLS secret.
Removes QUIC header protection from a packet prefix and packet number bytes.
Functions
@spec packet_keys(atom(), non_neg_integer(), atom(), atom(), binary()) :: {:ok, map()} | {:error, term()}
Derive QUIC Handshake/Application packet protection keys from a TLS secret.
@spec remove_header_protection( binary(), non_neg_integer(), binary(), :aes_128_gcm | :chacha20_poly1305 ) :: {:ok, binary(), non_neg_integer()} | {:error, atom()}
Removes QUIC header protection from a packet prefix and packet number bytes.