Expand description
Cryptographic key module.
Structs§
- Fingerprint
- A key fingerprint
- Signed
Public Key - An OpenPGP public key (“Transferable Public Key”, also known as an “OpenPGP certificate”).
- Signed
Secret Key - An OpenPGP secret key (“Transferable Secret Key”), complete with self-signatures.
Traits§
- DcKey
- Convenience trait for working with keys.
Functions§
- generate_
keypair 🔒 - load_
keypair 🔒 - load_
self_ 🔒public_ key - Loads own public key.
- load_
self_ 🔒public_ key_ opt - Attempts to load own public key.
- load_
self_ 🔒public_ keyring - Returns our own public keyring.
- load_
self_ 🔒secret_ key - load_
self_ 🔒secret_ keyring - preconfigure_
keypair - Saves a keypair as the default keys.
- self_
fingerprint 🔒 - Returns own public key fingerprint in (not human-readable) hex representation. This is the fingerprint format that is used in the database.
- self_
fingerprint_ 🔒opt - Returns own public key fingerprint in (not human-readable) hex representation. This is the fingerprint format that is used in the database.
- store_
self_ 🔒keypair - Store the keypair as an owned keypair for addr in the database.