pub enum AnonCryptAlg {
A256cbcHs512EcdhEsA256kw,
Xc20pEcdhEsA256kw,
A256gcmEcdhEsA256kw,
}Expand description
Algorithms for anonymous encryption
Variants§
A256cbcHs512EcdhEsA256kw
AES256-CBC + HMAC-SHA512 with a 512 bit key content encryption, ECDH-ES key agreement with A256KW key wrapping
Xc20pEcdhEsA256kw
XChaCha20Poly1305 with a 256 bit key content encryption, ECDH-ES key agreement with A256KW key wrapping
A256gcmEcdhEsA256kw
A256GCM_ECDH_ES_A256KW: XChaCha20Poly1305 with a 256 bit key content encryption, ECDH-ES key agreement with A256KW key wrapping
Trait Implementations§
Source§impl Clone for AnonCryptAlg
impl Clone for AnonCryptAlg
Source§fn clone(&self) -> AnonCryptAlg
fn clone(&self) -> AnonCryptAlg
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 AnonCryptAlg
impl Debug for AnonCryptAlg
Source§impl Default for AnonCryptAlg
impl Default for AnonCryptAlg
Source§impl<'de> Deserialize<'de> for AnonCryptAlg
impl<'de> Deserialize<'de> for AnonCryptAlg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AnonCryptAlg
impl PartialEq for AnonCryptAlg
Source§impl Serialize for AnonCryptAlg
impl Serialize for AnonCryptAlg
impl Eq for AnonCryptAlg
impl StructuralPartialEq for AnonCryptAlg
Auto Trait Implementations§
impl Freeze for AnonCryptAlg
impl RefUnwindSafe for AnonCryptAlg
impl Send for AnonCryptAlg
impl Sync for AnonCryptAlg
impl Unpin for AnonCryptAlg
impl UnwindSafe for AnonCryptAlg
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