aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/crates-crypto.scm
diff options
context:
space:
mode:
authorHerman Rimm <herman@rimm.ee>2024-02-18 22:08:56 +0100
committerEfraim Flashner <efraim@flashner.co.il>2024-07-19 00:43:29 +0300
commitd3ee4d7f5c1ddfc12ff40b0af16bde543dfb810a (patch)
tree896a80f23ecd87b79095c7114d4ee0b2a0cc4630 /gnu/packages/crates-crypto.scm
parenteaef7aee2d85486656e98fb1e16857f8be156c86 (diff)
downloadguix-d3ee4d7f5c1ddfc12ff40b0af16bde543dfb810a.tar.gz
guix-d3ee4d7f5c1ddfc12ff40b0af16bde543dfb810a.zip
gnu: Add rust-ed25519-dalek-2.
* gnu/packages/crates-io.scm (rust-ed25519-dalek-2): Add variable. (rust-ed25519-dalek-1): Inherit from rust-ed25519-dalek-2. Change-Id: I423a0c695b3ec4e70975077b5fe7f14130f70c94 Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages/crates-crypto.scm')
-rw-r--r--gnu/packages/crates-crypto.scm58
1 files changed, 51 insertions, 7 deletions
diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm
index 8282e72298..d7683ed720 100644
--- a/gnu/packages/crates-crypto.scm
+++ b/gnu/packages/crates-crypto.scm
@@ -2276,8 +2276,57 @@ including HSMs or Cloud KMS services.")
implementation.")
(license license:expat)))
+(define-public rust-ed25519-dalek-2
+ (package
+ (name "rust-ed25519-dalek")
+ (version "2.1.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "ed25519-dalek" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0w88cafwglg9hjizldbmlza0ns3hls81zk1bcih3m5m3h67algaa"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-test-flags '("--release" "--"
+ ;; Some tests aren't shipped in the crate.
+ "--skip=vectors::against_reference_implementation"
+ "--skip=check_validation_criteria"
+ "--skip=find_validation_criteria")
+ #:cargo-inputs (("rust-curve25519-dalek" ,rust-curve25519-dalek-4)
+ ("rust-ed25519" ,rust-ed25519-2)
+ ("rust-merlin" ,rust-merlin-3)
+ ("rust-rand-core" ,rust-rand-core-0.6)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-sha2" ,rust-sha2-0.10)
+ ("rust-signature" ,rust-signature-2)
+ ("rust-subtle" ,rust-subtle-2)
+ ("rust-zeroize" ,rust-zeroize-1))
+ #:cargo-development-inputs
+ (("rust-bincode" ,rust-bincode-1)
+ ("rust-blake2" ,rust-blake2-0.10)
+ ("rust-criterion" ,rust-criterion-0.5)
+ ("rust-curve25519-dalek" ,rust-curve25519-dalek-4)
+ ("rust-hex" ,rust-hex-0.4)
+ ("rust-hex-literal" ,rust-hex-literal-0.4)
+ ("rust-rand" ,rust-rand-0.8)
+ ("rust-rand-core" ,rust-rand-core-0.6)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-sha3" ,rust-sha3-0.10)
+ ("rust-toml" ,rust-toml-0.7)
+ ("rust-x25519-dalek" ,rust-x25519-dalek-2))))
+ (home-page "https:///doc.dalek.rs/ed25519_dalek")
+ (synopsis "Ed25519 EdDSA key generations, signing, and verification")
+ (description
+ "This package provides fast and efficient ed25519 @code{EdDSA} key
+generations, signing, and verification in pure Rust.")
+ (license license:bsd-3)))
+
(define-public rust-ed25519-dalek-1
(package
+ (inherit rust-ed25519-dalek-2)
(name "rust-ed25519-dalek")
(version "1.0.1")
(source
@@ -2299,13 +2348,8 @@ implementation.")
("rust-serde" ,rust-serde-1)
("rust-serde-bytes" ,rust-serde-bytes-0.11)
("rust-sha2" ,rust-sha2-0.9)
- ("rust-zeroize" ,rust-zeroize-1))))
- (home-page "https://dalek.rs")
- (synopsis "Ed25519 EdDSA key generations, signing, and verification")
- (description
- "This package provides fast and efficient ed25519 EdDSA key generations,
-signing, and verification in pure Rust.")
- (license license:bsd-3)))
+ ("rust-zeroize" ,rust-zeroize-1))))))
+
(define-public rust-elliptic-curve-0.13
(package