pub struct HlsContext {
pub client_system_title: Vec<u8>,
pub server_system_title: Vec<u8>,
pub security_control_byte: u8,
pub server_invocation_counter: u32,
pub encryption_key: Vec<u8>,
pub authentication_key: Vec<u8>,
pub gost_key: Vec<u8>,
pub signing_key: Vec<u8>,
pub peer_public_key: Vec<u8>,
}Expand description
Cryptographic material for the HLS handshake, shared by the mechanisms that
need more than the plain secret: GMAC (5), SHA-256 (6), Kuznyechik CMAC (8)
and Streebog (9). Fields not relevant to the negotiated mechanism may stay
empty (see Default).
Fields§
§client_system_title: Vec<u8>Client System-Title (8 octets).
server_system_title: Vec<u8>Server System-Title (8 octets).
security_control_byte: u8Security control byte (SC) — GMAC / CMAC.
server_invocation_counter: u32Server invocation counter (IC) — carried in f(CtoS) for GMAC / CMAC.
encryption_key: Vec<u8>Block cipher encryption key (EK), 16 or 32 octets — GMAC (mechanism 5).
authentication_key: Vec<u8>Authentication key (AK) — GMAC (mechanism 5).
gost_key: Vec<u8>Global key K_EM (64 octets, 512 bits) — Kuznyechik CMAC (mechanism 8).
signing_key: Vec<u8>Server signing private key — ECDSA (mechanism 7, Vec256/Vec384 raw
scalar) or GOST 34.10 (mechanism 10, little-endian Vec256).
peer_public_key: Vec<u8>Client verification public key — ECDSA (raw x ‖ y or SEC1) or GOST
34.10 (π_x(Q) ‖ π_y(Q), 64 octets). Signature mechanisms 7 / 10.
Trait Implementations§
Source§impl Clone for HlsContext
impl Clone for HlsContext
Source§fn clone(&self) -> HlsContext
fn clone(&self) -> HlsContext
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more