Enum pgp::composed::key::KeyType [−][src]
pub enum KeyType {
Rsa(u32),
ECDH,
EdDSA,
}
Variants
Encryption & Signing with RSA an the given bitsize.
Tuple Fields of Rsa
0: u32
Encrypting with Curve25519
Signing with Curve25519
Implementations
pub fn generate_with_rng<R: Rng + CryptoRng>(
self,
rng: &mut R,
passphrase: Option<String>
) -> Result<(PublicParams, SecretParams)>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KeyType
impl UnwindSafe for KeyType
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self