Function: epg-generate-key-from-string
epg-generate-key-from-string is a byte-compiled function defined in
epg.el.gz.
Signature
(epg-generate-key-from-string CONTEXT PARAMETERS)
Documentation
Generate a new key pair.
PARAMETERS is a string which tells how to create the key.
Source Code
;; Defined in /usr/src/emacs/lisp/epg.el.gz
(defun epg-generate-key-from-string (context parameters)
"Generate a new key pair.
PARAMETERS is a string which tells how to create the key."
(unwind-protect
(progn
(epg-start-generate-key context (epg-make-data-from-string 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)))