pub struct ParsedFrame {
pub plaintext_len: u32,
pub salt: [u8; 16],
pub nonce: [u8; 12],
pub ciphertext: Vec<u8>,
}Expand description
Parsed payload frame.
Contains all fields needed to decrypt the embedded message: the original plaintext length, the Argon2 salt and AES-GCM-SIV nonce for key derivation/decryption, and the ciphertext (including auth tag).
Fields§
§plaintext_len: u32Original plaintext length in bytes (before encryption). v1 frames store this as u16; v2 frames as u32.
salt: [u8; 16]Argon2 salt for Tier-2 encryption key derivation.
nonce: [u8; 12]AES-GCM-SIV nonce.
ciphertext: Vec<u8>Ciphertext including 16-byte authentication tag.
Auto Trait Implementations§
impl Freeze for ParsedFrame
impl RefUnwindSafe for ParsedFrame
impl Send for ParsedFrame
impl Sync for ParsedFrame
impl Unpin for ParsedFrame
impl UnsafeUnpin for ParsedFrame
impl UnwindSafe for ParsedFrame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more