From 11ed36d9349bb1a84334c6315feb9b542f805c54 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:31:32 +0200 Subject: gnu: rust-rfc6979: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-rfc6979-0.4, rust-rfc6979-0.3): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I8614ca4773ec25ee703536ba66809adb9f9abbd9 --- gnu/packages/crates-crypto.scm | 45 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 45 ------------------------------------------ 2 files changed, 45 insertions(+), 45 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 73a02ffdc2..fd3096b2dc 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -2004,3 +2004,48 @@ implementation suitable for use with cryptographic private keys.") (description "This crate provides an implementation of the crypto-simd API for x86.") (license (list license:asl2.0 license:expat)))) + +(define-public rust-rfc6979-0.4 + (package + (name "rust-rfc6979") + (version "0.4.0") + (source (origin + (method url-fetch) + (uri (crate-uri "rfc6979" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1chw95jgcfrysyzsq6a10b1j5qb7bagkx8h0wda4lv25in02mpgq")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-hmac" ,rust-hmac-0.12) + ("rust-subtle" ,rust-subtle-2)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-sha2" ,rust-sha2-0.10)))) + (home-page "https://github.com/RustCrypto/signatures/tree/master/rfc6979") + (synopsis "Pure Rust implementation of RFC6979") + (description + "This package provides a pure Rust implementation of RFC6979: Deterministic +Usage of the @dfn{Digital Signature Algorithm} (DSA) and @dfn{Elliptic Curve +Digital Signature Algorithm} (ECDSA).") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-rfc6979-0.3 + (package + (inherit rust-rfc6979-0.4) + (name "rust-rfc6979") + (version "0.3.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "rfc6979" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1fzsp705b5lhwd2r9il9grc3lj6rm3b2r89vh0xv181gy5xg2hvp")))) + (arguments + `(#:cargo-inputs (("rust-crypto-bigint" ,rust-crypto-bigint-0.4) + ("rust-hmac" ,rust-hmac-0.12) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs (("rust-sha2" ,rust-sha2-0.10)))))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 4cae8e96a7..1316d9d273 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -56880,51 +56880,6 @@ functionality as retain but gives mutable borrow to the predicate.") MIME Message Headers.") (license license:expat))) -(define-public rust-rfc6979-0.4 - (package - (name "rust-rfc6979") - (version "0.4.0") - (source (origin - (method url-fetch) - (uri (crate-uri "rfc6979" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1chw95jgcfrysyzsq6a10b1j5qb7bagkx8h0wda4lv25in02mpgq")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-hmac" ,rust-hmac-0.12) - ("rust-subtle" ,rust-subtle-2)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-sha2" ,rust-sha2-0.10)))) - (home-page "https://github.com/RustCrypto/signatures/tree/master/rfc6979") - (synopsis "Pure Rust implementation of RFC6979") - (description - "This package provides a pure Rust implementation of RFC6979: Deterministic -Usage of the @dfn{Digital Signature Algorithm} (DSA) and @dfn{Elliptic Curve -Digital Signature Algorithm} (ECDSA).") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-rfc6979-0.3 - (package - (inherit rust-rfc6979-0.4) - (name "rust-rfc6979") - (version "0.3.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "rfc6979" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1fzsp705b5lhwd2r9il9grc3lj6rm3b2r89vh0xv181gy5xg2hvp")))) - (arguments - `(#:cargo-inputs (("rust-crypto-bigint" ,rust-crypto-bigint-0.4) - ("rust-hmac" ,rust-hmac-0.12) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs (("rust-sha2" ,rust-sha2-0.10)))))) - (define computed-origin-method (@@ (guix packages) computed-origin-method)) (define rust-ring-0.17-sources (let* ((version "0.17.7") -- cgit v1.2.3