NeoMutt  2024-04-16-36-g75b6fb
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
PGP sign, encrypt, check routines

Code to sign, encrypt, verify and decrypt PGP messages.

The code accepts 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() Manage the MIME type "application/pgp" or "application/smime" CryptModuleSpecs::application_handler(), crypto_application_handler
pgp_class_check_traditional() Look for inline (non-MIME) PGP content CryptModuleSpecs::pgp_check_traditional(), crypto_pgp_check_traditional
pgp_class_decrypt_mime() Decrypt an encrypted MIME part CryptModuleSpecs::decrypt_mime(), crypto_decrypt_mime
pgp_class_encrypt_message() PGP encrypt an email CryptModuleSpecs::pgp_encrypt_message(), crypto_pgp_encrypt_message
pgp_class_encrypted_handler() Manage a PGP or S/MIME encrypted MIME part CryptModuleSpecs::encrypted_handler(), crypto_encrypted_handler
pgp_class_extract_key_from_attachment() Extract PGP key from an attachment CryptModuleSpecs::pgp_extract_key_from_attachment(), crypto_pgp_extract_key_from_attachment
pgp_class_find_keys() Find the keyids of the recipients of a message CryptModuleSpecs::find_keys(), crypto_find_keys
pgp_class_send_menu() Ask the user whether to sign and/or encrypt the email CryptModuleSpecs::send_menu(), crypto_send_menu
pgp_class_sign_message() Cryptographically sign the Body of a message CryptModuleSpecs::sign_message(), crypto_sign_message
pgp_class_traditional_encryptsign() Create an inline PGP encrypted, signed email CryptModuleSpecs::pgp_traditional_encryptsign(), crypto_pgp_traditional_encryptsign
pgp_class_valid_passphrase() Ensure we have a valid passphrase CryptModuleSpecs::valid_passphrase(), crypto_valid_passphrase
pgp_class_verify_one() Check a signed MIME part against a signature CryptModuleSpecs::verify_one(), crypto_verify_one
pgp_class_void_passphrase() Forget the cached 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?