⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

decrypt_record

Function decrypt_record 

Source
pub fn decrypt_record(
    record: &TlsRecord,
    key: &[u8],
    iv: &[u8; 12],
    seq_num: u64,
    cipher: CipherSuite,
) -> Option<TlsRecord>
Expand description

Unwrap an encrypted TLS 1.3 record back to plaintext.