Module pgp

Module pgp 

Source
Expand description

OpenPGP helper module using rPGP facilities.

Enums§

SeipdVersion
Version of SEIPD packet to use.

Constants§

SYMMETRIC_KEY_ALGORITHM 🔒
Preferred symmetric encryption algorithm.

Functions§

addresses_from_public_key 🔒
Returns relays addresses from the public key signature.
create_keypair 🔒
Create a new key pair.
merge_openpgp_certificates
Merges and minimizes OpenPGP certificates.
pk_calc_signature
Produces a detached signature for plain text using private_key_for_signing.
pk_encrypt
Encrypts plain text using public_keys_for_encryption and signs it using private_key_for_signing.
pk_validate
Validates detached signature.
pubkey_supports_seipdv2 🔒
Returns true if public key advertises SEIPDv2 feature.
select_pk_for_encryption 🔒
Selects a subkey of the public key to use for encryption.
symm_encrypt_message
Symmetrically encrypt the message. This is used for broadcast channels and for version 2 of the Securejoin protocol. shared secret is the secret that will be used for symmetric encryption.
valid_signature_fingerprints
Returns fingerprints of all keys from the public_keys_for_validation keyring that have valid signatures in msg and corresponding intended recipient fingerprints (https://www.rfc-editor.org/rfc/rfc9580.html#name-intended-recipient-fingerpr) if any.