Enum cocoon::CocoonCipher
source · pub enum CocoonCipher {
Chacha20Poly1305 = 1,
Aes256Gcm = 2,
}
Expand description
256-bit AEAD ciphers (Authenticated Encryption with Associated Data).
Variants§
Trait Implementations§
source§impl Clone for CocoonCipher
impl Clone for CocoonCipher
source§fn clone(&self) -> CocoonCipher
fn clone(&self) -> CocoonCipher
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 moreimpl Copy for CocoonCipher
Auto Trait Implementations§
impl RefUnwindSafe for CocoonCipher
impl Send for CocoonCipher
impl Sync for CocoonCipher
impl Unpin for CocoonCipher
impl UnwindSafe for CocoonCipher
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