Module openpgp

Module openpgp 

Source
Expand description

OpenPGP signer interface.

Structsยง

Hasher ๐Ÿ”’
Provides an adapter bridging two versions of the digest crate.
SignedSecretKey
Represents a secret signed PGP key.
SigningKey ๐Ÿ”’
PGP-adapter for a raw HSM key.

Traitsยง

Deserializable

Functionsยง

add_certificate
Generates an OpenPGP certificate for a RawSigningKey implementation.
ecdsa_to_public_key ๐Ÿ”’
Creates a [PublicKey] object from ECDSA parameters.
extract_certificate
Extracts an OpenPGP certificate from an OpenPGP private key.
sign
Generates an OpenPGP signature using a RawSigningKey implementation.
sign_hasher_state
Generates an armored OpenPGP signature based on provided hasher state.
to_rpgp_error ๐Ÿ”’
Wraps an Error in a std::io::Error and returns it as a [pgp::errors::Error].
tsk_to_private_key_import
Converts an OpenPGP Transferable Secret Key into PrivateKeyImport object.