Module pgp

Source
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 using private_key_for_signing.
pk_decrypt
Decrypts the message with keys from the private key keyring.
pk_encrypt
Encrypts plain text using public_keys_for_encryption and signs it using private_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.