Function: epg-generate-key-from-file
epg-generate-key-from-file is a byte-compiled function defined in
epg.el.gz.
Signature
(epg-generate-key-from-file CONTEXT PARAMETERS)
Documentation
Generate a new key pair.
PARAMETERS is a file which tells how to create the key.
Source Code
;; Defined in /usr/src/emacs/lisp/epg.el.gz
(defun epg-generate-key-from-file (context parameters)
"Generate a new key pair.
PARAMETERS is a file which tells how to create the key."
(unwind-protect
(progn
(epg-start-generate-key context (epg-make-data-from-file parameters))
(epg-wait-for-completion context)
(let ((errors (epg-context-result-for context 'error)))
(if errors
(signal 'epg-error
(list "Generate key failed"
(epg-errors-to-string errors))))))
(epg-reset context)))