Trait s2n_quic_core::crypto::initial::InitialKey
source · pub trait InitialKey: Key + Sized {
type HeaderKey: HeaderKey;
// Required methods
fn new_server(connection_id: &[u8]) -> (Self, Self::HeaderKey);
fn new_client(connection_id: &[u8]) -> (Self, Self::HeaderKey);
}Expand description
Types for which are able to perform initial cryptography.
This marker trait ensures only Initial-level keys are used with Initial packets. Any key misuses are caught by the type system.
Required Associated Types§
Required Methods§
fn new_server(connection_id: &[u8]) -> (Self, Self::HeaderKey)
fn new_client(connection_id: &[u8]) -> (Self, Self::HeaderKey)
Object Safety§
This trait is not object safe.