Enum pgp::types::PlainSecretParams [−][src]
pub enum PlainSecretParams {
RSA {
d: Mpi,
p: Mpi,
q: Mpi,
u: Mpi,
},
DSA(Mpi),
ECDSA(Mpi),
ECDH(Mpi),
Elgamal(Mpi),
EdDSA(Mpi),
}
Variants
Tuple Fields of DSA
0: Mpi
Tuple Fields of ECDSA
0: Mpi
Tuple Fields of ECDH
0: Mpi
Tuple Fields of Elgamal
0: Mpi
Tuple Fields of EdDSA
0: Mpi
Implementations
pub fn encrypt<R: CryptoRng + Rng>(
self,
rng: &mut R,
passphrase: &str,
alg: SymmetricKeyAlgorithm,
s2k: StringToKey,
version: KeyVersion,
id: u8
) -> Result<EncryptedSecretParams>
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PlainSecretParams
impl Send for PlainSecretParams
impl Sync for PlainSecretParams
impl Unpin for PlainSecretParams
impl UnwindSafe for PlainSecretParams
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self