NeoMutt  2021-10-29-43-g6b8931
Teaching an old dog new tricks
DOXYGEN
PGP sign, encrypt, check routines

This file contains all of the PGP routines necessary to sign, encrypt, verify and decrypt PGP messages in either the new PGP/MIME format, or in the older Application/Pgp format.

It also contains some code to cache the user's passphrase for repeat use when decrypting or signing a message.

Functions

Function Description Links
key_parent() Find a key's parent (if it's a subkey)
pgp_check_decryption_okay() Check GPG output for status codes
pgp_check_pgp_decryption_okay_regex() Check PGP output to look for successful outcome
pgp_check_traditional_one_body() Check the body of an inline PGP message
pgp_class_application_handler() CryptModuleSpecs::application_handler(), crypto_application_handler
pgp_class_check_traditional() CryptModuleSpecs::pgp_check_traditional(), crypto_pgp_check_traditional
pgp_class_decrypt_mime() CryptModuleSpecs::decrypt_mime(), crypto_decrypt_mime
pgp_class_encrypt_message() CryptModuleSpecs::pgp_encrypt_message(), crypto_pgp_encrypt_message
pgp_class_encrypted_handler() CryptModuleSpecs::encrypted_handler(), crypto_encrypted_handler
pgp_class_extract_key_from_attachment() CryptModuleSpecs::pgp_extract_key_from_attachment(), crypto_pgp_extract_key_from_attachment
pgp_class_find_keys() CryptModuleSpecs::find_keys(), crypto_find_keys
pgp_class_send_menu() CryptModuleSpecs::send_menu(), crypto_send_menu
pgp_class_sign_message() CryptModuleSpecs::sign_message(), crypto_sign_message
pgp_class_traditional_encryptsign() CryptModuleSpecs::pgp_traditional_encryptsign(), crypto_pgp_traditional_encryptsign
pgp_class_valid_passphrase() CryptModuleSpecs::valid_passphrase(), crypto_valid_passphrase
pgp_class_verify_one() CryptModuleSpecs::verify_one(), crypto_verify_one
pgp_class_void_passphrase() CryptModuleSpecs::void_passphrase(), crypto_void_passphrase
pgp_copy_checksig() Copy PGP output and look for signs of a good signature
pgp_copy_clearsigned() Copy a clearsigned message, stripping the signature
pgp_decrypt_part() Decrypt part of a PGP message
pgp_extract_keys_from_attachment() Extract pgp keys from messages/attachments
pgp_fingerprint() Get the key's fingerprint
pgp_fpr_or_lkeyid() Get the fingerprint or long keyid
pgp_keyid() Get the ID of the main (parent) key
pgp_long_keyid() Get a key's long id
pgp_short_keyid() Get a key's short id
pgp_this_keyid() Get the ID of this key
pgp_use_gpg_agent() Does the user want to use the gpg agent?