Expand description
OpenPGP-related functions.
Structsยง
- HsmKey ๐
- PGP-adapter for a NetHSM key.
- KeyUsage
Flags - Key usage flags that can be set on the generated certificate.
- Open
PgpUser Id - A basic representation of a User ID for OpenPGP
- Open
PgpUser IdList - A list of
OpenPgpUserId
- Open
PgpVersion Iter - An iterator over the variants of OpenPgpVersion
Enumsยง
- Error
- Open
PgpUser ๐IdType - A distinction between types of OpenPGP User IDs
- Open
PgpVersion - The OpenPGP version
Functionsยง
- add_
certificate - Generates an OpenPGP certificate for the given NetHSM key.
- extract_
certificate - Extracts certificate (public key) from an OpenPGP TSK.
- hash_
to_ ๐oid - Converts OpenPGP hash algorithm into an OID form for PKCS#1 signing.
- hsm_
pk_ ๐to_ pgp_ pk - Converts NetHSM public key to OpenPGP public key.
- parse_
signature ๐ - Parse signature bytes into algorithm-specific vector of MPIs.
- prepare_
digest_ ๐data - Transforms the raw digest data for cryptographic signing.
- sign
- Generates an OpenPGP signature using a given NetHSM key for the message.
- sign_
hasher_ state - Generates an armored OpenPGP signature based on provided hasher state.
- to_
rpgp_ ๐error - Wraps an
Error
in astd::io::Error
and returns it as a [pgp::errors::Error
]. - tsk_
to_ private_ key_ import - Converts an OpenPGP Transferable Secret Key into
PrivateKeyImport
object.