pub fn sign_hasher_state(
raw_signer: &dyn RawSigningKey,
state: Sha512,
) -> Result<String, Error>Expand description
Generates an armored OpenPGP signature based on provided hasher state.
Signs the hasher state using the RawSigningKey and returns a binary OpenPGP data
signature.
ยงErrors
Returns an Error if creating an OpenPGP signature for the hasher state fails:
- the certificate for a given key has not been generated or is invalid
- subpacket lengths exceed maximum values
- hashing signed data fails
- signature creation using the HSM fails
- constructing OpenPGP signature from parts fails
- writing the signature to vector fails