From a83965f0772065dbbb2ac452e1f56db1a6f84ab5 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:24:21 +0200 Subject: [PATCH] gnu: rust-pbkdf2: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-pbkdf2-0.12, rust-pbkdf2-0.11, rust-pbkdf-0.10, rust-pbkdf-0.9, rust-pbkdf-0.8, rust-pbkdf-0.6): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: Ifb07e8de73601a8ddda49565e18b2a79a4659d24 --- gnu/packages/crates-crypto.scm | 173 +++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 173 --------------------------------- 2 files changed, 173 insertions(+), 173 deletions(-) diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 10d7df870f..16b64b91ff 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1740,3 +1740,176 @@ (define-public rust-orion-0.17 "Orion is a cryptography library written in pure Rust. It aims to provide easy and usable crypto while trying to minimize the use of unsafe code.") (license license:expat))) + +(define-public rust-pbkdf2-0.12 + (package + (name "rust-pbkdf2") + (version "0.12.2") + (source (origin + (method url-fetch) + (uri (crate-uri "pbkdf2" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1wms79jh4flpy1zi8xdp4h8ccxv4d85adc6zjagknvppc5vnmvgq")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-digest" ,rust-digest-0.10) + ("rust-hmac" ,rust-hmac-0.12) + ("rust-password-hash" ,rust-password-hash-0.5) + ("rust-rayon" ,rust-rayon-1) + ("rust-sha1" ,rust-sha1-0.10) + ("rust-sha2" ,rust-sha2-0.10)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.4) + ("rust-hmac" ,rust-hmac-0.12) + ("rust-sha1" ,rust-sha1-0.10) + ("rust-sha2" ,rust-sha2-0.10) + ("rust-streebog" ,rust-streebog-0.10)))) + (home-page + "https://github.com/RustCrypto/password-hashes/tree/master/pbkdf2") + (synopsis "Generic implementation of PBKDF2") + (description "This package contains a collection of password hashing +algorithms, otherwise known as password-based key derivation functions, written +in pure Rust.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-pbkdf2-0.11 + (package + (inherit rust-pbkdf2-0.12) + (name "rust-pbkdf2") + (version "0.11.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "pbkdf2" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "05q9wqjvfrs4dvw03yn3bvcs4zghz0a7ycfa53pz2k2fqhp6k843")))) + (arguments + `(#:cargo-inputs + (("rust-digest" ,rust-digest-0.10) + ("rust-hmac" ,rust-hmac-0.12) + ("rust-password-hash" ,rust-password-hash-0.4) + ("rust-rayon" ,rust-rayon-1) + ("rust-sha-1" ,rust-sha-1-0.10) + ("rust-sha2" ,rust-sha2-0.10)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-hmac" ,rust-hmac-0.12) + ("rust-sha-1" ,rust-sha-1-0.10) + ("rust-sha2" ,rust-sha2-0.10) + ("rust-streebog" ,rust-streebog-0.10)))) + (home-page "https://github.com/RustCrypto/password-hashing"))) + +(define-public rust-pbkdf2-0.10 + (package + (inherit rust-pbkdf2-0.11) + (name "rust-pbkdf2") + (version "0.10.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "pbkdf2" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1myz799hi58qxdxc9cch3q2sl0vs68vmgrd3j7dmc6aqbgrpj5r7")))) + (arguments + `(#:cargo-inputs + (("rust-digest" ,rust-digest-0.10) + ("rust-hmac" ,rust-hmac-0.12) + ("rust-password-hash" ,rust-password-hash-0.3) + ("rust-rayon" ,rust-rayon-1) + ("rust-sha-1" ,rust-sha-1-0.10) + ("rust-sha2" ,rust-sha2-0.10)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-hmac" ,rust-hmac-0.12) + ("rust-sha-1" ,rust-sha-1-0.10) + ("rust-sha2" ,rust-sha2-0.10) + ("rust-streebog" ,rust-streebog-0.10)))))) + +(define-public rust-pbkdf2-0.9 + (package + (inherit rust-pbkdf2-0.10) + (name "rust-pbkdf2") + (version "0.9.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "pbkdf2" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0fa7j0gdgghk64qlhzdv32yg52p0cfaz5ifhk7i4pfm1wsy98n7h")))) + (arguments + `(#:cargo-inputs + (("rust-crypto-mac" ,rust-crypto-mac-0.11) + ("rust-hmac" ,rust-hmac-0.11) + ("rust-password-hash" ,rust-password-hash-0.3) + ("rust-rayon" ,rust-rayon-1) + ("rust-sha-1" ,rust-sha-1-0.9) + ("rust-sha2" ,rust-sha2-0.9)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-hmac" ,rust-hmac-0.11) + ("rust-sha-1" ,rust-sha-1-0.9) + ("rust-sha2" ,rust-sha2-0.9) + ("rust-streebog" ,rust-streebog-0.9)))))) + +(define-public rust-pbkdf2-0.8 + (package + (inherit rust-pbkdf2-0.10) + (name "rust-pbkdf2") + (version "0.8.0") + (source (origin + (method url-fetch) + (uri (crate-uri "pbkdf2" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1ykgicvyjm41701mzqhrfmiz5sm5y0zwfg6csaapaqaf49a54pyr")))) + (arguments + (list #:cargo-inputs + `(("rust-crypto-mac" ,rust-crypto-mac-0.11) + ("rust-base64ct" ,rust-base64ct-1) + ("rust-hmac" ,rust-hmac-0.11) + ("rust-password-hash" ,rust-password-hash-0.2) + ("rust-rayon" ,rust-rayon-1) + ("rust-sha-1" ,rust-sha-1-0.9) + ("rust-sha2" ,rust-sha2-0.9)) + #:cargo-development-inputs + `(("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-hmac" ,rust-hmac-0.11) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-sha-1" ,rust-sha-1-0.9) + ("rust-sha2" ,rust-sha2-0.9)))))) + +(define-public rust-pbkdf2-0.6 + (package + (inherit rust-pbkdf2-0.10) + (name "rust-pbkdf2") + (version "0.6.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "pbkdf2" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0jjaapyawm5iqn97mmfj40dvipsy78cm80qcva28009l2zbw1f5k")))) + (arguments + `(#:cargo-inputs + (("rust-base64" ,rust-base64-0.13) + ("rust-crypto-mac" ,rust-crypto-mac-0.10) + ("rust-hmac" ,rust-hmac-0.10) + ("rust-rand" ,rust-rand-0.7) + ("rust-rand-core" ,rust-rand-core-0.5) + ("rust-rayon" ,rust-rayon-1) + ("rust-sha2" ,rust-sha2-0.9) + ("rust-subtle" ,rust-subtle-2)) + #:cargo-development-inputs + (("rust-hmac" ,rust-hmac-0.10) + ("rust-sha-1" ,rust-sha-1-0.9) + ("rust-sha2" ,rust-sha2-0.9)))))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 427771367b..679212e30d 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -47535,179 +47535,6 @@ (define-public rust-pathdiff-0.2 path.") (license (list license:asl2.0 license:expat)))) -(define-public rust-pbkdf2-0.12 - (package - (name "rust-pbkdf2") - (version "0.12.2") - (source (origin - (method url-fetch) - (uri (crate-uri "pbkdf2" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1wms79jh4flpy1zi8xdp4h8ccxv4d85adc6zjagknvppc5vnmvgq")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-digest" ,rust-digest-0.10) - ("rust-hmac" ,rust-hmac-0.12) - ("rust-password-hash" ,rust-password-hash-0.5) - ("rust-rayon" ,rust-rayon-1) - ("rust-sha1" ,rust-sha1-0.10) - ("rust-sha2" ,rust-sha2-0.10)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.4) - ("rust-hmac" ,rust-hmac-0.12) - ("rust-sha1" ,rust-sha1-0.10) - ("rust-sha2" ,rust-sha2-0.10) - ("rust-streebog" ,rust-streebog-0.10)))) - (home-page - "https://github.com/RustCrypto/password-hashes/tree/master/pbkdf2") - (synopsis "Generic implementation of PBKDF2") - (description "This package contains a collection of password hashing -algorithms, otherwise known as password-based key derivation functions, written -in pure Rust.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-pbkdf2-0.11 - (package - (inherit rust-pbkdf2-0.12) - (name "rust-pbkdf2") - (version "0.11.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "pbkdf2" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "05q9wqjvfrs4dvw03yn3bvcs4zghz0a7ycfa53pz2k2fqhp6k843")))) - (arguments - `(#:cargo-inputs - (("rust-digest" ,rust-digest-0.10) - ("rust-hmac" ,rust-hmac-0.12) - ("rust-password-hash" ,rust-password-hash-0.4) - ("rust-rayon" ,rust-rayon-1) - ("rust-sha-1" ,rust-sha-1-0.10) - ("rust-sha2" ,rust-sha2-0.10)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-hmac" ,rust-hmac-0.12) - ("rust-sha-1" ,rust-sha-1-0.10) - ("rust-sha2" ,rust-sha2-0.10) - ("rust-streebog" ,rust-streebog-0.10)))) - (home-page "https://github.com/RustCrypto/password-hashing"))) - -(define-public rust-pbkdf2-0.10 - (package - (inherit rust-pbkdf2-0.11) - (name "rust-pbkdf2") - (version "0.10.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "pbkdf2" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1myz799hi58qxdxc9cch3q2sl0vs68vmgrd3j7dmc6aqbgrpj5r7")))) - (arguments - `(#:cargo-inputs - (("rust-digest" ,rust-digest-0.10) - ("rust-hmac" ,rust-hmac-0.12) - ("rust-password-hash" ,rust-password-hash-0.3) - ("rust-rayon" ,rust-rayon-1) - ("rust-sha-1" ,rust-sha-1-0.10) - ("rust-sha2" ,rust-sha2-0.10)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-hmac" ,rust-hmac-0.12) - ("rust-sha-1" ,rust-sha-1-0.10) - ("rust-sha2" ,rust-sha2-0.10) - ("rust-streebog" ,rust-streebog-0.10)))))) - -(define-public rust-pbkdf2-0.9 - (package - (inherit rust-pbkdf2-0.10) - (name "rust-pbkdf2") - (version "0.9.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "pbkdf2" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0fa7j0gdgghk64qlhzdv32yg52p0cfaz5ifhk7i4pfm1wsy98n7h")))) - (arguments - `(#:cargo-inputs - (("rust-crypto-mac" ,rust-crypto-mac-0.11) - ("rust-hmac" ,rust-hmac-0.11) - ("rust-password-hash" ,rust-password-hash-0.3) - ("rust-rayon" ,rust-rayon-1) - ("rust-sha-1" ,rust-sha-1-0.9) - ("rust-sha2" ,rust-sha2-0.9)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-hmac" ,rust-hmac-0.11) - ("rust-sha-1" ,rust-sha-1-0.9) - ("rust-sha2" ,rust-sha2-0.9) - ("rust-streebog" ,rust-streebog-0.9)))))) - -(define-public rust-pbkdf2-0.8 - (package - (inherit rust-pbkdf2-0.10) - (name "rust-pbkdf2") - (version "0.8.0") - (source (origin - (method url-fetch) - (uri (crate-uri "pbkdf2" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1ykgicvyjm41701mzqhrfmiz5sm5y0zwfg6csaapaqaf49a54pyr")))) - (arguments - (list #:cargo-inputs - `(("rust-crypto-mac" ,rust-crypto-mac-0.11) - ("rust-base64ct" ,rust-base64ct-1) - ("rust-hmac" ,rust-hmac-0.11) - ("rust-password-hash" ,rust-password-hash-0.2) - ("rust-rayon" ,rust-rayon-1) - ("rust-sha-1" ,rust-sha-1-0.9) - ("rust-sha2" ,rust-sha2-0.9)) - #:cargo-development-inputs - `(("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-hmac" ,rust-hmac-0.11) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-sha-1" ,rust-sha-1-0.9) - ("rust-sha2" ,rust-sha2-0.9)))))) - -(define-public rust-pbkdf2-0.6 - (package - (inherit rust-pbkdf2-0.10) - (name "rust-pbkdf2") - (version "0.6.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "pbkdf2" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0jjaapyawm5iqn97mmfj40dvipsy78cm80qcva28009l2zbw1f5k")))) - (arguments - `(#:cargo-inputs - (("rust-base64" ,rust-base64-0.13) - ("rust-crypto-mac" ,rust-crypto-mac-0.10) - ("rust-hmac" ,rust-hmac-0.10) - ("rust-rand" ,rust-rand-0.7) - ("rust-rand-core" ,rust-rand-core-0.5) - ("rust-rayon" ,rust-rayon-1) - ("rust-sha2" ,rust-sha2-0.9) - ("rust-subtle" ,rust-subtle-2)) - #:cargo-development-inputs - (("rust-hmac" ,rust-hmac-0.10) - ("rust-sha-1" ,rust-sha-1-0.9) - ("rust-sha2" ,rust-sha2-0.9)))))) - (define-public rust-pcap-0.7 (package (name "rust-pcap")