pub enum KeyType {
Aes128Gcm96,
Aes256Gcm96,
Chacha20Poly1305,
Ed25519,
EcdsaP256,
EcdsaP384,
EcdsaP521,
Rsa2048,
Rsa3072,
Rsa4096,
}
Variants§
Aes128Gcm96
AES-128 wrapped with GCM using a 96-bit nonce size AEAD (symmetric, supports derivation and convergent encryption)
Aes256Gcm96
AES-256 wrapped with GCM using a 96-bit nonce size AEAD (symmetric, supports derivation and convergent encryption, default)
Chacha20Poly1305
ChaCha20-Poly1305 AEAD (symmetric, supports derivation and convergent encryption)
Ed25519
ED25519 (asymmetric, supports derivation). When using derivation, a sign operation with the same context will derive the same key and signature; this is a signing analogue to convergent_encryption.
EcdsaP256
ECDSA using the P-256 elliptic curve (asymmetric)
EcdsaP384
ECDSA using the P-384 elliptic curve (asymmetric)
EcdsaP521
ECDSA using the P-521 elliptic curve (asymmetric)
Rsa2048
RSA with bit size of 2048 (asymmetric)
Rsa3072
RSA with bit size of 3072 (asymmetric)
Rsa4096
RSA with bit size of 4096 (asymmetric)
Trait Implementations§
source§impl<'de> Deserialize<'de> for KeyType
impl<'de> Deserialize<'de> for KeyType
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>,
impl Copy for KeyType
Auto Trait Implementations§
impl Freeze for KeyType
impl RefUnwindSafe for KeyType
impl Send for KeyType
impl Sync for KeyType
impl Unpin for KeyType
impl UnwindSafe for KeyType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)