1 2 3 4 5 6 7 8 9 10
//! Stream XOR trait (portable implementation). use crate::params::{ KEY_BYTES, NONCE_BYTES, }; pub trait TweakAeadStreamOps { fn xor_keystream(key: &[u8; KEY_BYTES], nonce: &[u8; NONCE_BYTES], pt: &[u8], ct: &mut [u8]); }