pub enum AeadAlgorithm {
AesGcm,
ChaCha20Poly1305,
}
Expand description
AEAD algorithm types
Variants§
AesGcm
AES-GCM (for hybrid constructions)
ChaCha20Poly1305
ChaCha20-Poly1305 (for hybrid constructions)
Implementations§
Source§impl AeadAlgorithm
impl AeadAlgorithm
Sourcepub fn nonce_size(&self) -> usize
pub fn nonce_size(&self) -> usize
Get the nonce size for this algorithm
Trait Implementations§
Source§impl Clone for AeadAlgorithm
impl Clone for AeadAlgorithm
Source§fn clone(&self) -> AeadAlgorithm
fn clone(&self) -> AeadAlgorithm
Returns a duplicate 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 moreSource§impl Debug for AeadAlgorithm
impl Debug for AeadAlgorithm
Source§impl PartialEq for AeadAlgorithm
impl PartialEq for AeadAlgorithm
impl Eq for AeadAlgorithm
impl StructuralPartialEq for AeadAlgorithm
Auto Trait Implementations§
impl Freeze for AeadAlgorithm
impl RefUnwindSafe for AeadAlgorithm
impl Send for AeadAlgorithm
impl Sync for AeadAlgorithm
impl Unpin for AeadAlgorithm
impl UnwindSafe for AeadAlgorithm
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