mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 13:28:12 -05:00
guix archive: Generate curve Ed25519 keys by default.
* guix/scripts/archive.scm (%options) <generate-key>: Default to curve Ed25519. Suggested by Christian Grothoff <grothoff@in.tum.de>.
This commit is contained in:
parent
d0a850698a
commit
1cbfce1669
1 changed files with 4 additions and 1 deletions
|
@ -110,9 +110,12 @@ (define %options
|
|||
(lambda (opt name arg result)
|
||||
(catch 'gcry-error
|
||||
(lambda ()
|
||||
;; XXX: Curve25519 was actually introduced in
|
||||
;; libgcrypt 1.6.0.
|
||||
(let ((params
|
||||
(string->canonical-sexp
|
||||
(or arg "(genkey (rsa (nbits 4:4096)))"))))
|
||||
(or arg "\
|
||||
(genkey (ecdsa (curve Ed25519) (flags rfc6979)))"))))
|
||||
(alist-cons 'generate-key params result)))
|
||||
(lambda (key err)
|
||||
(leave (_ "invalid key generation parameters: ~a: ~a~%")
|
||||
|
|
Loading…
Reference in a new issue