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)