Function: epg-decrypt-file
epg-decrypt-file is a byte-compiled function defined in epg.el.gz.
Signature
(epg-decrypt-file CONTEXT CIPHER PLAIN)
Documentation
Decrypt a file CIPHER and store the result to a file PLAIN.
If PLAIN is nil, it returns the result as a string.
Source Code
;; Defined in /usr/src/emacs/lisp/epg.el.gz
(defun epg-decrypt-file (context cipher plain)
"Decrypt a file CIPHER and store the result to a file PLAIN.
If PLAIN is nil, it returns the result as a string."
(unwind-protect
(progn
(setf (epg-context-output-file context)
(or plain (make-temp-file "epg-output")))
(epg-start-decrypt context (epg-make-data-from-file cipher))
(epg-wait-for-completion context)
(epg--check-error-for-decrypt context)
(unless plain
(epg-read-output context)))
(unless plain
(epg-delete-output-file context))
(epg-reset context)))