pub fn initial(
        initial_salt: &hkdf::Salt,
        client_dst_connection_id: &[u8],
        is_client: bool,
    ) -> Self {
        const CLIENT_LABEL: &[u8] = b"client in";
        const SERVER_LABEL: &[u8] = b"server in";
        let hs_secret = initial_salt.extract(client_dst_connection_id);

        let secrets = Secrets {
            client: hkdf_expand(&hs_secret, hkdf::HKDF_SHA256, CLIENT_LABEL, &[]),
            server: hkdf_expand(&hs_secret, hkdf::HKDF_SHA256, SERVER_LABEL, &[]),
        };
        Self::new(&TLS13_AES_128_GCM_SHA256, is_client, &secrets)
    }
/// Construct keys for use with initial packets
Construct keys for use with initial packets
Construct keys for use with initial packets
pub fn initial(
        initial_salt: &hkdf::Salt,
        client_dst_connection_id: &[u8],
        is_client: bool,
    ) -> Self {
        const CLIENT_LABEL: &[u8] = b"client in";
        const SERVER_LABEL: &[u8] = b"server in";
        let hs_secret = initial_salt.extract(client_dst_connection_id);
        let secrets = Secrets {
            client: hkdf_expand(&hs_secret, hkdf::HKDF_SHA256, CLIENT_LABEL, &[]),
            server: hkdf_expand(&hs_secret, hkdf::HKDF_SHA256, SERVER_LABEL, &[]),
        };
        Self::new(&TLS13_AES_128_GCM_SHA256, is_client, &secrets)
    }
pub fn initial ( initial_salt : & hkdf :: Salt , client_dst_connection_id : & [ u8 ] , is_client : bool , ) -> Self { const CLIENT_LABEL : & [ u8 ] = b" " ; const SERVER_LABEL : & [ u8 ] = b" " ; let hs_secret = initial_salt . extract ( client_dst_connection_id ) ; let secrets = Secrets { client : hkdf_expand ( & hs_secret , hkdf :: HKDF_SHA256 , CLIENT_LABEL , & [ ] ) , server : hkdf_expand ( & hs_secret , hkdf :: HKDF_SHA256 , SERVER_LABEL , & [ ] ) , } ; Self :: new ( & TLS13_AES_128_GCM_SHA256 , is_client , & secrets ) }
Construct keys for use with initial packets
Construct keys for use with initial packets
initial_salt
&hkdf::Salt
client_dst_connection_id
&[u8]
is_client
bool
initial_salt
&hkdf::Salt
client_dst_connection_id
&[u8]
is_client
bool