Skip to main content

Module openpgp

Module openpgp 

Source
Expand description

OpenPGP signer interface.

Structsยง

Hasher ๐Ÿ”’
Provides an adapter bridging two versions of the digest crate.
SignedSecretKey
An OpenPGP secret key (โ€œTransferable Secret Keyโ€), complete with self-signatures.
SigningKey ๐Ÿ”’
PGP-adapter for a raw HSM key.
Timestamp
Timestamp that refers to a moment in time after the UNIX_EPOCH.

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.