diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-03-20 22:33:52 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-03-20 23:06:47 +0100 |
commit | 1fda6840a892e55b579dfeb8f4590b5cd2874662 (patch) | |
tree | e4abf299e7bfa8df30ec6ca743a761e09d744923 /tests | |
parent | 2f66e64c53ccae423a791b51cd635ad892f0feab (diff) | |
download | guix-1fda6840a892e55b579dfeb8f4590b5cd2874662.tar guix-1fda6840a892e55b579dfeb8f4590b5cd2874662.tar.gz |
pk-crypto: Don't use Ed25519 when libgcrypt is older than 1.6.0.
* guix/pk-crypto.scm (gcrypt-version): New procedure.
* guix/scripts/archive.scm (%key-generation-parameters): New variable.
(%options) <generate-key>: Use it.
* tests/pk-crypto.scm ("sign + verify, Ed25519"): Skip if using gcrypt < 1.6.0.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pk-crypto.scm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/pk-crypto.scm b/tests/pk-crypto.scm index 4d498020f5..294c7f3df8 100644 --- a/tests/pk-crypto.scm +++ b/tests/pk-crypto.scm @@ -184,6 +184,8 @@ #:key-type (key-type public)) public))))) +;; Ed25519 appeared in libgcrypt 1.6.0. +(test-skip (if (version>? (gcrypt-version) "1.6.0") 0 1)) (test-assert "sign + verify, Ed25519" (let* ((pair (string->canonical-sexp %ecc-key-pair)) (secret (find-sexp-token pair 'private-key)) |