Skip to main content

Module openpgp

Module openpgp 

Source
Expand description

OpenPGP signer interface.

Structsยง

EmptyEd25519Signer
Empty signer that can be used to create dummy signatures and certificates.
Hasher ๐Ÿ”’
Provides an adapter bridging two versions of the digest crate.
Notation
An OpenPGP notation data object.
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ยง

ecdsa_to_public_key ๐Ÿ”’
Creates a [PublicKey] object from ECDSA parameters.
extract_certificate
Extracts an OpenPGP certificate from an OpenPGP private key.
generate_certificate
Generates an OpenPGP certificate for a RawSigningKey implementation.
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.