[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#69257] [PATCH 165/228] gnu: Add rust-ed25519-2.
From: |
Herman Rimm |
Subject: |
[bug#69257] [PATCH 165/228] gnu: Add rust-ed25519-2. |
Date: |
Sun, 18 Feb 2024 22:08:55 +0100 |
* gnu/packages/crates-io.scm (rust-ed25519-2): Add variable.
(rust-ed25519-1): Inherit from rust-ed25519-2.
Change-Id: I444a61ce5b2e8643d3a9949ce97a1d165a1c6c21
---
gnu/packages/crates-crypto.scm | 54 +++++++++++++++++++++++++---------
1 file changed, 40 insertions(+), 14 deletions(-)
diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm
index 0c45722177..108553a5eb 100644
--- a/gnu/packages/crates-crypto.scm
+++ b/gnu/packages/crates-crypto.scm
@@ -2102,8 +2102,47 @@ (define-public rust-ecies-ed25519-0.5
"ECIES on Twisted Edwards Curve25519 using AES-GCM and HKDF-SHA256.")
(license (list license:expat license:asl2.0))))
+(define-public rust-ed25519-2
+ (package
+ (name "rust-ed25519")
+ (version "2.2.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "ed25519" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0lydzdf26zbn82g7xfczcac9d7mzm3qgx934ijjrd5hjpjx32m8i"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-pkcs8" ,rust-pkcs8-0.10)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-serde-bytes" ,rust-serde-bytes-0.11)
+ ("rust-signature" ,rust-signature-2)
+ ("rust-zeroize" ,rust-zeroize-1))
+ #:cargo-development-inputs
+ (("rust-bincode" ,rust-bincode-1)
+ ("rust-ed25519-dalek" ,rust-ed25519-dalek-2)
+ ("rust-hex-literal" ,rust-hex-literal-0.4)
+ ("rust-rand-core" ,rust-rand-core-0.6)
+ ("rust-ring-compat" ,rust-ring-compat-0.8))))
+ (home-page "https://github.com/RustCrypto/signatures/tree/master/ed25519")
+ (synopsis "Edwards Digital Signature Algorithm over Curve25519")
+ (description
+ "EdDSA over Curve25519 is specified in RFC 8032. This package
+contains an ed25519::Signature type which other packages can use in
+conjunction with the signature::Signer and signature::Verifier traits.
+It doesn't contain an implementation of Ed25519.
+
+These traits allow packages which produce and consume Ed25519 signatures
+to be written abstractly in such a way that different signer/verifier
+providers can be plugged in, enabling support for using different Ed25519
+implementations, including HSMs or Cloud KMS services.")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-ed25519-1
(package
+ (inherit rust-ed25519-2)
(name "rust-ed25519")
(version "1.5.3")
(source (origin
@@ -2125,20 +2164,7 @@ (define-public rust-ed25519-1
(("rust-bincode" ,rust-bincode-1)
("rust-ed25519-dalek" ,rust-ed25519-dalek-1)
("rust-hex-literal" ,rust-hex-literal-0.3)
- ("rust-rand-core" ,rust-rand-core-0.5))))
- (home-page "https://github.com/RustCrypto/signatures/tree/master/ed25519")
- (synopsis "Edwards Digital Signature Algorithm (EdDSA) over Curve25519")
- (description
- "EdDSA over Curve25519 is specified in RFC 8032. This package contains
-an ed25519::Signature type which other packages can use in conjunction with
-the signature::Signer and signature::Verifier traits It doesn't contain an
-implementation of Ed25519.
-
-These traits allow packages which produce and consume Ed25519 signatures to be
-written abstractly in such a way that different signer/verifier providers can
-be plugged in, enabling support for using different Ed25519 implementations,
-including HSMs or Cloud KMS services.")
- (license (list license:asl2.0 license:expat))))
+ ("rust-rand-core" ,rust-rand-core-0.5))))))
(define-public rust-ed25519-compact-2
(package
--
2.41.0
- [bug#69257] [PATCH 150/228] gnu: Add rust-ruma-federation-api-0.8., (continued)
- [bug#69257] [PATCH 150/228] gnu: Add rust-ruma-federation-api-0.8., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 152/228] gnu: Add rust-ruma-push-gateway-api-0.8., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 153/228] gnu: Add rust-yap-0.12., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 135/228] gnu: Add rust-konst-0.3., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 156/228] gnu: Move rust-fiat-crypto-0.1., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 117/228] gnu: Add rust-rust-ini-0.18., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 161/228] gnu: Add rust-strobe-rs-0.8., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 157/228] gnu: Add rust-fiat-crypto-0.2., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 167/228] gnu: Add rust-macro-attr-0.2., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 162/228] gnu: Add rust-strobe-rs-0.5., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 165/228] gnu: Add rust-ed25519-2.,
Herman Rimm <=
- [bug#69257] [PATCH 179/228] gnu: Add rust-pkcs7-0.4., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 187/228] gnu: Add rust-web-time-1., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 170/228] gnu: Add rust-ruma-client-api-0.17., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 175/228] gnu: Add rust-matrix-sdk-common-0.7., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 183/228] gnu: Add rust-olm-rs-2., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 172/228] gnu: Add rust-ruma-state-res-0.10., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 188/228] gnu: Add rust-ulid-1., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 201/228] gnu: Place rust-serdeconv-0.4 in alphabetical order., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 207/228] gnu: Add rust-sqlite3-parser-0.12., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 202/228] gnu: Place rust-serde-wasm-bindgen-0.3 in alphabetical order., Herman Rimm, 2024/02/18