Challenge Assignment
Write a Rust function that parses the TLS record layer header from raw bytes:
#[derive(Debug)]
struct TlsRecordHeader {
content_type: u8,
version: u16,
length: u16,
}
fn parse_record_header(bytes: &[u8]) -> Option<(TlsRecordHeader, &[u8])>
Then: given the write_iv and sequence number from an RFC 8448 test vector,
compute the per-record nonce and verify it matches the expected value in the RFC.