pub fn extract_session_data<R>(
reader: &mut R,
file_version: u8,
public_iv: &Iv16,
setup_key: &Aes256Key,
session_iv_out: &mut Iv16,
session_key_out: &mut Aes256Key,
) -> Result<(), AescryptError>where
R: Read,Expand description
Extract session IV + key — secure from first byte
- No raw buffers ever hold secrets
- Zero exposure window
- Full auto-zeroizing (even ciphertext & HMAC tags)
- Maximum performance