pub trait SecretKeyTrait: KeyDetails + Debug {
// Required methods
fn create_signature(
&self,
key_pw: &Password,
hash: HashAlgorithm,
data: &[u8],
) -> Result<SignatureBytes>;
fn hash_alg(&self) -> HashAlgorithm;
}
Required Methods§
fn create_signature( &self, key_pw: &Password, hash: HashAlgorithm, data: &[u8], ) -> Result<SignatureBytes>
Sourcefn hash_alg(&self) -> HashAlgorithm
fn hash_alg(&self) -> HashAlgorithm
The recommended hash algorithm to calculate the signature hash digest with, when using this as a signer
Trait Implementations§
Source§impl KeyDetails for Box<&dyn SecretKeyTrait>
impl KeyDetails for Box<&dyn SecretKeyTrait>
fn version(&self) -> KeyVersion
fn fingerprint(&self) -> Fingerprint
fn key_id(&self) -> KeyId
fn algorithm(&self) -> PublicKeyAlgorithm
Source§impl SecretKeyTrait for Box<&dyn SecretKeyTrait>
impl SecretKeyTrait for Box<&dyn SecretKeyTrait>
fn create_signature( &self, key_pw: &Password, hash: HashAlgorithm, data: &[u8], ) -> Result<SignatureBytes>
Source§fn hash_alg(&self) -> HashAlgorithm
fn hash_alg(&self) -> HashAlgorithm
The recommended hash algorithm to calculate the signature hash digest with,
when using this as a signer