Expand description
OpenPGP helper module using rPGP facilities.
Structs§
- KeyPair
- A PGP keypair.
Constants§
- HASH_
ALGORITHM 🔒 - Preferred cryptographic hash.
- HEADER_
SETUPCODE - SYMMETRIC_
KEY_ 🔒ALGORITHM - Preferred symmetric encryption algorithm.
Functions§
- create_
keypair 🔒 - Create a new key pair.
- pk_
calc_ signature - Signs
plain
text usingprivate_key_for_signing
. - pk_
decrypt - Decrypts the message with keys from the private key keyring.
- pk_
encrypt - Encrypts
plain
text usingpublic_keys_for_encryption
and signs it usingprivate_key_for_signing
. - pk_
validate - Validates detached signature.
- select_
pk_ 🔒for_ encryption - Selects a subkey of the public key to use for encryption.
- split_
armored_ data - Split data from PGP Armored Data as defined in https://tools.ietf.org/html/rfc4880#section-6.2.
- symm_
decrypt - Symmetric decryption.
- symm_
encrypt - Symmetric encryption.
- valid_
signature_ fingerprints - Returns fingerprints
of all keys from the
public_keys_for_validation
keyring that have valid signatures there.