rustls::crypto::cipher

Function make_tls12_aad

source
pub fn make_tls12_aad(
    seq: u64,
    typ: ContentType,
    vers: ProtocolVersion,
    len: usize,
) -> [u8; 13]
Expand description

Returns a TLS1.2 additional_data encoding.

See RFC5246 s6.2.3.3 for the additional_data definition.