Enum zbox::Cipher [−][src]
pub enum Cipher {
Xchacha,
Aes,
}
Expand description
Crypto cipher primitives.
See https://download.libsodium.org/doc/secret-key_cryptography/aead for more details.
Variants
XChaCha20-Poly1305-IETF
- Key size: 256 bits
- Nonce size: 192 bits
- Block size: 512 bits
- MAC size: 128 bits
AES256-GCM, requires hardware support the Intel SSSE3 extensions,
as well as the aesni
and pclmul
instructions.
- Key size: 256 bits
- Nonce size: 96 bits
- Block size: 128 bits
- MAC size: 128 bits
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Cipher
impl UnwindSafe for Cipher
Blanket Implementations
Mutably borrows from an owned value. Read more