Expand description
PGP signature verification.
Structs§
- KeyInfo
- A structure holding a PGP key’s name and its parsed certificate.
Statics§
- BUILTIN_
KEYS - A list of built-in PGP keys for registry and package verification.
Functions§
- add_
key_ from_ bytes - Adds a PGP key from a byte slice to the local keyring.
- add_
key_ from_ fingerprint - Fetches a PGP key from a keyserver by fingerprint and adds it to the local keyring.
- add_
key_ from_ path - Imports a PGP key from a file path into the local keyring.
- add_
key_ from_ url - Downloads a PGP key from a URL and adds it to the local keyring.
- cli_
verify_ signature - A CLI-friendly wrapper for verifying a file’s signature using a named key from the local keyring.
- ensure_
builtin_ keys - Synchronizes the local keyring with trusted keys embedded in the Zoi binary.
- get_
all_ local_ certs - Retrieves all PGP certificates stored in the local keyring.
- get_
all_ local_ keys_ info - Retrieves information for all PGP keys stored in the local keyring.
- get_
cert_ status - Returns a human-readable string representing the status of a PGP certificate.
- get_
certs_ by_ name_ or_ fingerprint - Resolves a list of names or fingerprints to PGP certificates from the local keyring.
- get_
pgp_ dir - Returns the path to the local PGP keyring directory.
- list_
keys - Prints a formatted list of all PGP keys stored in the local keyring.
- remove_
key_ by_ fingerprint - Searches for and removes a PGP key from the local keyring by its fingerprint.
- remove_
key_ by_ name - Removes a PGP key from the local keyring by its name.
- search_
keys - Searches for PGP keys in the local keyring by name, fingerprint, or
UserID(name/email). - show_
key - Prints the ASCII-armored content of a PGP key from the local keyring.
- sign_
detached - Signs a file using
GnuPG. - validate_
cert - Validates a PGP certificate, checking for revocation and expiration.
- verify_
detached_ signature - Verifies a detached PGP signature for a file using a specific certificate.
- verify_
detached_ signature_ multi_ key - Verifies a detached PGP signature for a file against a set of trusted certificates.
- verify_
detached_ signature_ raw - Verifies a detached PGP signature for raw data using a specific certificate.