Struct cryptoxide::chacha20poly1305::ContextEncryption
source · pub struct ContextEncryption<const ROUNDS: usize>(_);
Expand description
ChaCha20Poly1305 Incremental Context for encryption
Implementations§
source§impl<const ROUNDS: usize> ContextEncryption<ROUNDS>
impl<const ROUNDS: usize> ContextEncryption<ROUNDS>
sourcepub fn encrypt_mut(&mut self, buf: &mut [u8])
pub fn encrypt_mut(&mut self, buf: &mut [u8])
Encrypt input in place
Trait Implementations§
source§impl<const ROUNDS: usize> Clone for ContextEncryption<ROUNDS>
impl<const ROUNDS: usize> Clone for ContextEncryption<ROUNDS>
source§fn clone(&self) -> ContextEncryption<ROUNDS>
fn clone(&self) -> ContextEncryption<ROUNDS>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more