Skip to main content

encrypt_frame

Function encrypt_frame 

Source
pub fn encrypt_frame(
    key_store: &dyn KeyStore,
    broadcaster_private_key: &SigningKey,
    key_id: u8,
    ctr: u64,
    n_signed: u8,
    maybe_sign: bool,
    encryption_type: u8,
    pad_len: u32,
    plaintext: &[u8],
) -> Result<Frame, MoqSecureError>