[−][src]Trait pgp::types::SecretKeyTrait
Associated Types
type PublicKey
Required methods
fn unlock<F, G>(&self, pw: F, work: G) -> Result<()> where
F: FnOnce() -> String,
G: FnOnce(&SecretKeyRepr) -> Result<()>,
F: FnOnce() -> String,
G: FnOnce(&SecretKeyRepr) -> Result<()>,
fn create_signature<F>(
&self,
key_pw: F,
hash: HashAlgorithm,
data: &[u8]
) -> Result<Vec<Mpi>> where
F: FnOnce() -> String,
&self,
key_pw: F,
hash: HashAlgorithm,
data: &[u8]
) -> Result<Vec<Mpi>> where
F: FnOnce() -> String,
fn public_key(&self) -> Self::PublicKey
Implementations on Foreign Types
impl<'a, T: SecretKeyTrait> SecretKeyTrait for &'a T
[src]
type PublicKey = T::PublicKey
fn unlock<F, G>(&self, pw: F, work: G) -> Result<()> where
F: FnOnce() -> String,
G: FnOnce(&SecretKeyRepr) -> Result<()>,
[src]
F: FnOnce() -> String,
G: FnOnce(&SecretKeyRepr) -> Result<()>,
fn create_signature<F>(
&self,
key_pw: F,
hash: HashAlgorithm,
data: &[u8]
) -> Result<Vec<Mpi>> where
F: FnOnce() -> String,
[src]
&self,
key_pw: F,
hash: HashAlgorithm,
data: &[u8]
) -> Result<Vec<Mpi>> where
F: FnOnce() -> String,
fn public_key(&self) -> Self::PublicKey
[src]
Implementors
impl SecretKeyTrait for SignedSecretKey
[src]
type PublicKey = PublicKey
fn unlock<F, G>(&self, pw: F, work: G) -> Result<()> where
F: FnOnce() -> String,
G: FnOnce(&SecretKeyRepr) -> Result<()>,
[src]
F: FnOnce() -> String,
G: FnOnce(&SecretKeyRepr) -> Result<()>,
fn create_signature<F>(
&self,
key_pw: F,
hash: HashAlgorithm,
data: &[u8]
) -> Result<Vec<Mpi>> where
F: FnOnce() -> String,
[src]
&self,
key_pw: F,
hash: HashAlgorithm,
data: &[u8]
) -> Result<Vec<Mpi>> where
F: FnOnce() -> String,
fn public_key(&self) -> Self::PublicKey
[src]
impl SecretKeyTrait for SignedSecretSubKey
[src]
type PublicKey = PublicSubkey
fn unlock<F, G>(&self, pw: F, work: G) -> Result<()> where
F: FnOnce() -> String,
G: FnOnce(&SecretKeyRepr) -> Result<()>,
[src]
F: FnOnce() -> String,
G: FnOnce(&SecretKeyRepr) -> Result<()>,
fn create_signature<F>(
&self,
key_pw: F,
hash: HashAlgorithm,
data: &[u8]
) -> Result<Vec<Mpi>> where
F: FnOnce() -> String,
[src]
&self,
key_pw: F,
hash: HashAlgorithm,
data: &[u8]
) -> Result<Vec<Mpi>> where
F: FnOnce() -> String,
fn public_key(&self) -> Self::PublicKey
[src]
impl SecretKeyTrait for SecretKey
[src]
type PublicKey = PublicKey
fn unlock<F, G>(&self, pw: F, work: G) -> Result<()> where
F: FnOnce() -> String,
G: FnOnce(&SecretKeyRepr) -> Result<()>,
[src]
F: FnOnce() -> String,
G: FnOnce(&SecretKeyRepr) -> Result<()>,
Unlock the raw data in the secret parameters.
fn create_signature<F>(
&self,
key_pw: F,
hash: HashAlgorithm,
data: &[u8]
) -> Result<Vec<Mpi>> where
F: FnOnce() -> String,
[src]
&self,
key_pw: F,
hash: HashAlgorithm,
data: &[u8]
) -> Result<Vec<Mpi>> where
F: FnOnce() -> String,
fn public_key(&self) -> PublicKey
[src]
impl SecretKeyTrait for SecretSubkey
[src]
type PublicKey = PublicSubkey
fn unlock<F, G>(&self, pw: F, work: G) -> Result<()> where
F: FnOnce() -> String,
G: FnOnce(&SecretKeyRepr) -> Result<()>,
[src]
F: FnOnce() -> String,
G: FnOnce(&SecretKeyRepr) -> Result<()>,
Unlock the raw data in the secret parameters.
fn create_signature<F>(
&self,
key_pw: F,
hash: HashAlgorithm,
data: &[u8]
) -> Result<Vec<Mpi>> where
F: FnOnce() -> String,
[src]
&self,
key_pw: F,
hash: HashAlgorithm,
data: &[u8]
) -> Result<Vec<Mpi>> where
F: FnOnce() -> String,