Function: pgg-pgp-decrypt-region
pgg-pgp-decrypt-region is a byte-compiled function defined in
pgg-pgp.el.gz.
Signature
(pgg-pgp-decrypt-region START END &optional PASSPHRASE)
Documentation
Decrypt the current region between START and END.
If optional PASSPHRASE is not specified, it will be obtained from the passphrase cache or user.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/pgg-pgp.el.gz
(defun pgg-pgp-decrypt-region (start end &optional passphrase)
"Decrypt the current region between START and END.
If optional PASSPHRASE is not specified, it will be obtained from the
passphrase cache or user."
(let* ((pgg-pgp-user-id (or pgg-pgp-user-id pgg-default-user-id))
(key (pgg-pgp-lookup-key pgg-pgp-user-id 'encrypt))
(passphrase
(or passphrase
(pgg-read-passphrase
(format "PGP passphrase for %s: " pgg-pgp-user-id) key)))
(args
"+verbose=1 +batchmode +language=us -f"))
(pgg-pgp-process-region start end passphrase pgg-pgp-program args)
(pgg-process-when-success
(if pgg-cache-passphrase
(pgg-add-passphrase-to-cache key passphrase)))))