Expand description
OpenPGP helper module using rPGP facilities.
Enums§
- Seipd
Version - 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
plaintext usingprivate_key_for_signing. - pk_
encrypt - Encrypts
plaintext usingpublic_keys_for_encryptionand signs it usingprivate_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 secretis the secret that will be used for symmetric encryption. - valid_
signature_ fingerprints - Returns fingerprints
of all keys from the
public_keys_for_validationkeyring that have valid signatures inmsgand corresponding intended recipient fingerprints (https://www.rfc-editor.org/rfc/rfc9580.html#name-intended-recipient-fingerpr) if any.