From c0b2afabf0aaba83c0c76e319c6175b159d704b4 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 31 Mar 2024 17:00:22 +0300 Subject: gnu: Add rust-dsa-0.6. * gnu/packages/crates-crypto.scm (rust-dsa-0.6): New variable. Change-Id: If7759e068fc50eadf709f1a033d56f01b9a7f996 --- gnu/packages/crates-crypto.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'gnu/packages') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 15c777f06a..29c489a2f2 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -2088,6 +2088,41 @@ ciphers implementations.") functions.") (license (list license:expat license:asl2.0)))) +(define-public rust-dsa-0.6 + (package + (name "rust-dsa") + (version "0.6.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "dsa" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "12bn5d0nnni4mlla24m3bwi4mhy2nfmyak2qjl0pdbc4j1525g28")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-digest" ,rust-digest-0.10) + ("rust-num-bigint-dig" ,rust-num-bigint-dig-0.8) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-pkcs8" ,rust-pkcs8-0.10) + ("rust-rfc6979" ,rust-rfc6979-0.4) + ("rust-sha2" ,rust-sha2-0.10) + ("rust-signature" ,rust-signature-2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs (("rust-pkcs8" ,rust-pkcs8-0.10) + ("rust-rand" ,rust-rand-0.8) + ("rust-rand-chacha" ,rust-rand-chacha-0.3) + ("rust-sha1" ,rust-sha1-0.10)))) + (home-page "https://github.com/RustCrypto/signatures/tree/master/dsa") + (synopsis + "Rust implementation of the Digital Signature Algorithm (DSA)") + (description + "This package provides a pure Rust implementation of the @acronym{Digital +Signature Algorithm, DSA} as specified in FIPS 186-4 (Digital Signature +Standard), providing RFC6979 deterministic signatures as well as support for +added entropy.") + (license (list license:asl2.0 license:expat)))) + (define-public rust-eax-0.5 (package (name "rust-eax") -- cgit v1.2.3