Trait pgp::native::types::SecretKeyTrait
source · pub trait SecretKeyTrait: PublicKeyTrait {
type PublicKey;
// Required methods
fn unlock<F, G>(&self, pw: F, work: G) -> Result<(), Error>
where F: FnOnce() -> String,
G: FnOnce(&SecretKeyRepr) -> Result<(), Error>;
fn create_signature<F>(
&self,
key_pw: F,
hash: HashAlgorithm,
data: &[u8]
) -> Result<Vec<Mpi, Global>, Error>
where F: FnOnce() -> String;
fn public_key(&self) -> Self::PublicKey;
}