From 179900942d3ad6f26947c570421a71b8666124db Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 13:40:54 +0200 Subject: gnu: rust-botan: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-botan-0.10, rust-botan-0.8, rust-botan-sys-0.10, rust-botan-sys-0.8, rust-botan-src-0.21903, rust-botan-src-0.21703): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. * gnu/local.mk (GNU_SYSTEM_MODULES): Register new file. Change-Id: I459c94e9f70a51bdf48020792562e57ebc2119df --- gnu/packages/crates-crypto.scm | 146 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100644 gnu/packages/crates-crypto.scm (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm new file mode 100644 index 0000000000..67de332f12 --- /dev/null +++ b/gnu/packages/crates-crypto.scm @@ -0,0 +1,146 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2023 Efraim Flashner +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages crates-crypto) + #:use-module (guix build-system cargo) + #:use-module (guix download) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (guix gexp) + #:use-module (guix utils) + #:use-module (gnu packages) + #:use-module (gnu packages crates-io) + #:use-module (gnu packages crypto)) + +;;; +;;; Please: Try to add new module packages in alphabetic order. +;;; + +(define-public rust-botan-0.10 + (package + (name "rust-botan") + (version "0.10.3") + (source (origin + (method url-fetch) + (uri (crate-uri "botan" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1vzl5pdysh848zpphsgvj9c40zdi3ynl32zzixsd8vg4vaflhb49")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-botan-sys" ,rust-botan-sys-0.10)) + #:cargo-development-inputs + (("rust-hex" ,rust-hex-0.4) + ("rust-wycheproof" ,rust-wycheproof-0.5)))) + (inputs (list botan)) + (home-page "https://botan.randombit.net/") + (synopsis "Rust wrapper for Botan cryptography library") + (description "Rust wrapper for Botan cryptography library") + (license license:expat))) + +(define-public rust-botan-0.8 + (package + (inherit rust-botan-0.10) + (name "rust-botan") + (version "0.8.1") + (source (origin + (method url-fetch) + (uri (crate-uri "botan" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "08bmiyn7c3b0dgx20w6hr28d9jcq7cj78cchr84pc686sb2s41ik")))) + (arguments + `(#:cargo-inputs + (("rust-botan-sys" ,rust-botan-sys-0.8) + ("rust-cstr-core" ,rust-cstr-core-0.2) + ("rust-cty" ,rust-cty-0.2)))))) + +(define-public rust-botan-sys-0.10 + (package + (name "rust-botan-sys") + (version "0.10.3") + (source (origin + (method url-fetch) + (uri (crate-uri "botan-sys" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1cbjr44gc5dhmgl43sfiqzbsma4anfi3h26m4yzsli23yd1lmyf8")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-botan-src" ,rust-botan-src-0.21903)))) + (inputs (list botan)) + (home-page "https://botan.randombit.net/") + (synopsis "FFI wrapper for Botan cryptography library") + (description "FFI wrapper for Botan cryptography library") + (license license:expat))) + +(define-public rust-botan-sys-0.8 + (package + (inherit rust-botan-sys-0.10) + (name "rust-botan-sys") + (version "0.8.1") + (source (origin + (method url-fetch) + (uri (crate-uri "botan-sys" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1m11zblxfanrhl97j7z3ap7n17rr8j0rg91sr7f9j6y2bsniaz1x")))) + (arguments + `(#:cargo-inputs + (("rust-botan-src" ,rust-botan-src-0.21703) + ("rust-cty" ,rust-cty-0.2)))))) + +(define-public rust-botan-src-0.21903 + (package + (name "rust-botan-src") + (version "0.21903.1") + (source (origin + (method url-fetch) + (uri (crate-uri "botan-src" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "19fhll4g0v8hbyjxg8c790l9ln5xgf4r6xdcnw438mpy81hvrdxy")) + (modules '((guix build utils))) + (snippet + '(begin (delete-file-recursively "botan"))))) + (build-system cargo-build-system) + (arguments '(#:skip-build? #t)) + (home-page "https://botan.randombit.net/") + (synopsis "Sources of Botan cryptography library") + (description "Sources of Botan cryptography library") + (license license:expat))) + +(define-public rust-botan-src-0.21703 + (package + (inherit rust-botan-src-0.21903) + (name "rust-botan-src") + (version "0.21703.0") + (source (origin + (method url-fetch) + (uri (crate-uri "botan-src" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0s2ad9q84qsrllfsbj7hjhn7gr3hab9ng6lwzwqmimia6yvja8y8")) + (modules '((guix build utils))) + (snippet + '(begin (delete-file-recursively "botan"))))))) -- cgit v1.2.3 From eec85d8193fe972b69e0d336e855e83ec72c6d39 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 13:43:11 +0200 Subject: gnu: rust-c2-chacha-0.2: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-c2-chacha-0.2): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I3abe34f84ffd1de1410af1b9eabf6d3d42c8e4d6 --- gnu/packages/crates-crypto.scm | 30 ++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 29 ----------------------------- 2 files changed, 30 insertions(+), 29 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 67de332f12..3b6c5be991 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1,4 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2019 John Soo ;;; Copyright © 2023 Efraim Flashner ;;; ;;; This file is part of GNU Guix. @@ -144,3 +145,32 @@ (modules '((guix build utils))) (snippet '(begin (delete-file-recursively "botan"))))))) + +(define-public rust-c2-chacha-0.2 + (package + (name "rust-c2-chacha") + (version "0.2.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "c2-chacha" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "00a11qdc8mg3z0k613rhprkc9p6xz0y7b1681x32ixg0hr3x0r3x")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-byteorder" ,rust-byteorder-1) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-ppv-lite86" ,rust-ppv-lite86-0.2) + ("rust-stream-cipher" ,rust-stream-cipher-0.3)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.2)))) + (home-page "https://github.com/cryptocorrosion/cryptocorrosion") + (synopsis "The ChaCha family of stream ciphers") + (description + "The ChaCha family of stream ciphers.") + (license (list license:asl2.0 license:expat)))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 712341a101..2eebe90bd6 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -9593,35 +9593,6 @@ NULL-terminated C linked lists.") (description "This package procides structures to wrap C arrays in Rust.") (license (list license:asl2.0 license:expat)))) -(define-public rust-c2-chacha-0.2 - (package - (name "rust-c2-chacha") - (version "0.2.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "c2-chacha" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "00a11qdc8mg3z0k613rhprkc9p6xz0y7b1681x32ixg0hr3x0r3x")))) - (build-system cargo-build-system) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-byteorder" ,rust-byteorder-1) - ("rust-lazy-static" ,rust-lazy-static-1) - ("rust-ppv-lite86" ,rust-ppv-lite86-0.2) - ("rust-stream-cipher" ,rust-stream-cipher-0.3)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.2)))) - (home-page "https://github.com/cryptocorrosion/cryptocorrosion") - (synopsis "The ChaCha family of stream ciphers") - (description - "The ChaCha family of stream ciphers.") - (license (list license:asl2.0 license:expat)))) - (define-public rust-cache-padded-1 (package (name "rust-cache-padded") -- cgit v1.2.3 From f4e6eef623fd8a6fc5df6f91ab97c80b34db6e9f Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 13:47:46 +0200 Subject: gnu: rust-aes: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-aes-0.8, rust-aes-0.7, rust-aes-0.6, rust-aes-0.4, rust-aes-0.3, rust-aes-ctr-0.6, rust-aes-gcm-0.10, rust-aes-gcm-0.8, rust-aes-gcm-0.6, rust-aes-gcm-0.5, rust-aes-soft-0.6, rust-aes-soft-0.4, rust-aesni-0.10, rust-aesni-0.7, rust-aesni-0.6): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I1720213127044ac898e46f4d66e78d93b34059a3 --- gnu/packages/crates-crypto.scm | 381 +++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 374 ---------------------------------------- gnu/packages/rust-apps.scm | 1 + 3 files changed, 382 insertions(+), 374 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 3b6c5be991..f51fb986e9 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1,6 +1,13 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2019 John Soo +;;; Copyright © 2020 Arun Isaac +;;; Copyright © 2021 Nicolas Goaziou +;;; Copyright © 2021 Vinicius Monego +;;; Copyright © 2022 Nicolas Graves +;;; Copyright © 2022 Aleksandr Vityazev ;;; Copyright © 2023 Efraim Flashner +;;; Copyright © 2023 Steve George +;;; Copyright © 2023 VÖRÖSKŐI András ;;; ;;; This file is part of GNU Guix. ;;; @@ -32,6 +39,380 @@ ;;; Please: Try to add new module packages in alphabetic order. ;;; +(define-public rust-aes-0.8 + (package + (name "rust-aes") + (version "0.8.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "aes" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1qi7z96wf3zd6alg116nh2myp34bw2574jwly4zrhpz9k19887xc")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-cfg-if" ,rust-cfg-if-1) + ("rust-cipher" ,rust-cipher-0.4) + ("rust-cpufeatures" ,rust-cpufeatures-0.2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-cipher" ,rust-cipher-0.4) + ("rust-hex-literal" ,rust-hex-literal-0.3)))) + (home-page "https://github.com/RustCrypto/block-ciphers") + (synopsis "Facade for AES (Rijndael) block ciphers implementations") + (description "This package provides a facade for AES (Rijndael) block +ciphers implementations.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-aes-0.7 + (package + (inherit rust-aes-0.8) + (name "rust-aes") + (version "0.7.5") + (source + (origin + (method url-fetch) + (uri (crate-uri "aes" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1f0sdx2fsa8w3l7xzsyi9ry3shvnnsgc0znh50if9fm95vslg2wy")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-cfg-if" ,rust-cfg-if-1) + ("rust-cipher" ,rust-cipher-0.3) + ("rust-cpufeatures" ,rust-cpufeatures-0.2) + ("rust-ctr" ,rust-ctr-0.8) + ("rust-opaque-debug" ,rust-opaque-debug-0.3)))))) + +(define-public rust-aes-0.6 + (package + (inherit rust-aes-0.7) + (name "rust-aes") + (version "0.6.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "aes" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0q85mw70mgr4glza9y9lrs9nxfa1cdcqzfk6wx0smb3623pr2hw8")))) + (arguments + `(#:cargo-inputs + (("rust-aes-soft" ,rust-aes-soft-0.6) + ("rust-aesni" ,rust-aesni-0.10) + ("rust-cipher" ,rust-cipher-0.2)) + #:cargo-development-inputs + (("rust-cipher" ,rust-cipher-0.2)))))) + +(define-public rust-aes-0.4 + (package + (inherit rust-aes-0.6) + (name "rust-aes") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "aes" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1xgsp2bn5llsppald60iw4497gaspslg0a8hknhniiz4zmki607p")))) + (arguments + `(#:cargo-inputs + (("rust-aes-soft" ,rust-aes-soft-0.4) + ("rust-aesni" ,rust-aesni-0.7) + ("rust-block-cipher" ,rust-block-cipher-0.7)) + #:cargo-development-inputs + (("rust-block-cipher" ,rust-block-cipher-0.7)))))) + +(define-public rust-aes-0.3 + (package + (inherit rust-aes-0.4) + (name "rust-aes") + (version "0.3.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "aes" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1j90iwpax0y1dqq14i8y9xgpcnnlgnljwkxg3mhzrralwf7ivssl")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-aes-soft" ,rust-aes-soft-0.3) + ("rust-aesni" ,rust-aesni-0.6) + ("rust-block-cipher-trait" ,rust-block-cipher-trait-0.6)))))) + +(define-public rust-aes-ctr-0.6 + (package + (name "rust-aes-ctr") + (version "0.6.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "aes-ctr" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0qspjxzrclnb83501595y01dhc0km1ssrbjnwlxhcrsdwp6w6abp")))) + (build-system cargo-build-system) + (arguments + (list #:cargo-inputs + `(("rust-aesni" ,rust-aesni-0.10) + ("rust-aes-soft" ,rust-aes-soft-0.6) + ("rust-cipher" ,rust-cipher-0.2) + ("rust-ctr" ,rust-ctr-0.6)) + #:cargo-development-inputs `(("rust-cipher" ,rust-cipher-0.2)))) + (home-page "https://github.com/RustCrypto/block-ciphers/tree/master/aes") + (synopsis "Pure Rust implementation of AES") + (description + "A pure Rust implementation of the @acronym{AES, Advanced Encryption +Standard}. Use the AES crate if possible, as the aes-ctr has been into it.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-aes-gcm-0.10 + (package + (name "rust-aes-gcm") + (version "0.10.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "aes-gcm" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0z2429v2d2wyf809h2wc4vwwibwypz3y4p7sn4kzkjb91ip3dqc2")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-aead" ,rust-aead-0.5) + ("rust-aes" ,rust-aes-0.8) + ("rust-cipher" ,rust-cipher-0.4) + ("rust-ctr" ,rust-ctr-0.9) + ("rust-ghash" ,rust-ghash-0.5) + ("rust-subtle" ,rust-subtle-2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-aead" ,rust-aead-0.5) + ("rust-hex-literal" ,rust-hex-literal-0.3)))) + (home-page "https://github.com/RustCrypto/AEADs") + (synopsis "AES-GCM (Galois/Counter Mode) Authenticated Encryption") + (description "This package provides a pure Rust implementation of the +AES-GCM (Galois/Counter Mode) Authenticated Encryption with Associated +Data (AEAD) Cipher with optional architecture-specific hardware +acceleration.") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-aes-gcm-0.8 + (package + (inherit rust-aes-gcm-0.10) + (name "rust-aes-gcm") + (version "0.8.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "aes-gcm" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1nl8iwlh209y1vj9n2lm1a70i69clvg2z6x69bi4dgdrpgxbay2j")))) + (arguments + `(#:cargo-inputs + (("rust-aead" ,rust-aead-0.3) + ("rust-aes" ,rust-aes-0.6) + ("rust-cipher" ,rust-cipher-0.2) + ("rust-ctr" ,rust-ctr-0.6) + ("rust-ghash" ,rust-ghash-0.3) + ("rust-subtle" ,rust-subtle-2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.2)))))) + +(define-public rust-aes-gcm-0.6 + (package + (inherit rust-aes-gcm-0.8) + (name "rust-aes-gcm") + (version "0.6.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "aes-gcm" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1lga8my3zlc0b1nhcpc1hrbykfm014fqs6d64bwrjqii05w01xc6")))) + (arguments + `(#:cargo-inputs + (("rust-aead" ,rust-aead-0.3) + ("rust-aes" ,rust-aes-0.4) + ("rust-block-cipher" ,rust-block-cipher-0.7) + ("rust-ghash" ,rust-ghash-0.3) + ("rust-subtle" ,rust-subtle-2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-criterion" ,rust-criterion-0.3) + ("rust-criterion-cycles-per-byte" + ,rust-criterion-cycles-per-byte-0.1) + ("rust-hex-literal" ,rust-hex-literal-0.2)))))) + +(define-public rust-aes-gcm-0.5 + (package + (inherit rust-aes-gcm-0.6) + (name "rust-aes-gcm") + (version "0.5.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "aes-gcm" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0f66b5bmyj38r1hj55wzamlzw3y1aql34lgwr2vxn93073d6njl3")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-aead" ,rust-aead-0.2) + ("rust-aes" ,rust-aes-0.3) + ("rust-block-cipher-trait" ,rust-block-cipher-trait-0.6) + ("rust-ghash" ,rust-ghash-0.2) + ("rust-subtle" ,rust-subtle-2) + ("rust-zeroize" ,rust-zeroize-1)))))) + +(define-public rust-aes-soft-0.6 + (package + (name "rust-aes-soft") + (version "0.6.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "aes-soft" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0wj0fi2pvmlw09yvb1aqf0mfkzrfxmjsf90finijh255ir4wf55y")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-block-cipher" ,rust-block-cipher-0.7) + ("rust-byteorder" ,rust-byteorder-1) + ("rust-opaque-debug" ,rust-opaque-debug-0.2)) + #:cargo-development-inputs + (("rust-block-cipher" ,rust-block-cipher-0.7)))) + (home-page "https://github.com/RustCrypto/block-ciphers") + (synopsis "Bit-sliced implementation of AES (Rijndael) block ciphers") + (description "This package provides a bit-sliced implementation of +AES (Rijndael) block ciphers. + +This package is deprecated and was replaced by the @code{aes} crate.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-aes-soft-0.4 + (package + (inherit rust-aes-soft-0.6) + (name "rust-aes-soft") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "aes-soft" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "19szsg0qqxq42k7bj5p3svb147n8wxy9a20n4g7mcl2fwrz689a9")))) + (arguments + `(#:cargo-inputs + (("rust-block-cipher" ,rust-block-cipher-0.7) + ("rust-byteorder" ,rust-byteorder-1) + ("rust-opaque-debug" ,rust-opaque-debug-0.2)) + #:cargo-development-inputs + (("rust-block-cipher" ,rust-block-cipher-0.7)))))) + +(define-public rust-aes-soft-0.3 + (package + (inherit rust-aes-soft-0.4) + (name "rust-aes-soft") + (version "0.3.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "aes-soft" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "039si7yjp0wcd750sgq52c60sh2ikaxwd7rq7g0ba7ws7ypfgmyg")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-block-cipher-trait" ,rust-block-cipher-trait-0.6) + ("rust-byteorder" ,rust-byteorder-1) + ("rust-opaque-debug" ,rust-opaque-debug-0.2)))))) + +(define-public rust-aesni-0.10 + (package + (name "rust-aesni") + (version "0.10.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "aesni" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1kmh07fp9hbi1aa8dr2rybbgw8vqz6hjmk34c4w7sbscx7si2bpa")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-cipher" ,rust-cipher-0.2) + ("rust-opaque-debug" ,rust-opaque-debug-0.3)))) + (home-page "https://github.com/RustCrypto/block-ciphers") + (synopsis "AES (Rijndael) block ciphers implementation using AES-NI") + (description "This package provides an implementation of AES (Rijndael) +block ciphers using AES-NI. + +This package is deprecated and was replaced by the @code{aes} crate.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-aesni-0.7 + (package + (inherit rust-aesni-0.10) + (name "rust-aesni") + (version "0.7.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "aesni" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0r6j0mjkyqnwvgib01cvrwfw8rlx1biw75234niv723n1fdx6l6h")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-block-cipher" ,rust-block-cipher-0.7) + ("rust-opaque-debug" ,rust-opaque-debug-0.2) + ("rust-stream-cipher" ,rust-stream-cipher-0.4)) + #:cargo-development-inputs + (("rust-block-cipher" ,rust-block-cipher-0.7) + ("rust-stream-cipher" ,rust-stream-cipher-0.4)))))) + +(define-public rust-aesni-0.6 + (package + (inherit rust-aesni-0.7) + (name "rust-aesni") + (version "0.6.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "aesni" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "007imgcfl82nilfpamj5dik83pkcmkzvbkxp384p7r3iz6sscw1g")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-block-cipher-trait" ,rust-block-cipher-trait-0.6) + ("rust-opaque-debug" ,rust-opaque-debug-0.2) + ("rust-stream-cipher" ,rust-stream-cipher-0.3)))))) + (define-public rust-botan-0.10 (package (name "rust-botan") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 2eebe90bd6..91fd2dc3b4 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -736,380 +736,6 @@ with Associated Data (AEAD) algorithms.") (("rust-generic-array" ,rust-generic-array-0.12) ("rust-heapless" ,rust-heapless-0.5)))))) -(define-public rust-aes-0.8 - (package - (name "rust-aes") - (version "0.8.3") - (source - (origin - (method url-fetch) - (uri (crate-uri "aes" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1qi7z96wf3zd6alg116nh2myp34bw2574jwly4zrhpz9k19887xc")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-cfg-if" ,rust-cfg-if-1) - ("rust-cipher" ,rust-cipher-0.4) - ("rust-cpufeatures" ,rust-cpufeatures-0.2) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-cipher" ,rust-cipher-0.4) - ("rust-hex-literal" ,rust-hex-literal-0.3)))) - (home-page "https://github.com/RustCrypto/block-ciphers") - (synopsis "Facade for AES (Rijndael) block ciphers implementations") - (description "This package provides a facade for AES (Rijndael) block -ciphers implementations.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-aes-0.7 - (package - (inherit rust-aes-0.8) - (name "rust-aes") - (version "0.7.5") - (source - (origin - (method url-fetch) - (uri (crate-uri "aes" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1f0sdx2fsa8w3l7xzsyi9ry3shvnnsgc0znh50if9fm95vslg2wy")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-cfg-if" ,rust-cfg-if-1) - ("rust-cipher" ,rust-cipher-0.3) - ("rust-cpufeatures" ,rust-cpufeatures-0.2) - ("rust-ctr" ,rust-ctr-0.8) - ("rust-opaque-debug" ,rust-opaque-debug-0.3)))))) - -(define-public rust-aes-0.6 - (package - (inherit rust-aes-0.7) - (name "rust-aes") - (version "0.6.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "aes" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0q85mw70mgr4glza9y9lrs9nxfa1cdcqzfk6wx0smb3623pr2hw8")))) - (arguments - `(#:cargo-inputs - (("rust-aes-soft" ,rust-aes-soft-0.6) - ("rust-aesni" ,rust-aesni-0.10) - ("rust-cipher" ,rust-cipher-0.2)) - #:cargo-development-inputs - (("rust-cipher" ,rust-cipher-0.2)))))) - -(define-public rust-aes-0.4 - (package - (inherit rust-aes-0.6) - (name "rust-aes") - (version "0.4.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "aes" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1xgsp2bn5llsppald60iw4497gaspslg0a8hknhniiz4zmki607p")))) - (arguments - `(#:cargo-inputs - (("rust-aes-soft" ,rust-aes-soft-0.4) - ("rust-aesni" ,rust-aesni-0.7) - ("rust-block-cipher" ,rust-block-cipher-0.7)) - #:cargo-development-inputs - (("rust-block-cipher" ,rust-block-cipher-0.7)))))) - -(define-public rust-aes-0.3 - (package - (inherit rust-aes-0.4) - (name "rust-aes") - (version "0.3.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "aes" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1j90iwpax0y1dqq14i8y9xgpcnnlgnljwkxg3mhzrralwf7ivssl")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-aes-soft" ,rust-aes-soft-0.3) - ("rust-aesni" ,rust-aesni-0.6) - ("rust-block-cipher-trait" ,rust-block-cipher-trait-0.6)))))) - -(define-public rust-aes-ctr-0.6 - (package - (name "rust-aes-ctr") - (version "0.6.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "aes-ctr" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0qspjxzrclnb83501595y01dhc0km1ssrbjnwlxhcrsdwp6w6abp")))) - (build-system cargo-build-system) - (arguments - (list #:cargo-inputs - `(("rust-aesni" ,rust-aesni-0.10) - ("rust-aes-soft" ,rust-aes-soft-0.6) - ("rust-cipher" ,rust-cipher-0.2) - ("rust-ctr" ,rust-ctr-0.6)) - #:cargo-development-inputs `(("rust-cipher" ,rust-cipher-0.2)))) - (home-page "https://github.com/RustCrypto/block-ciphers/tree/master/aes") - (synopsis "Pure Rust implementation of AES") - (description - "A pure Rust implementation of the @acronym{AES, Advanced Encryption -Standard}. Use the AES crate if possible, as the aes-ctr has been into it.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-aes-gcm-0.10 - (package - (name "rust-aes-gcm") - (version "0.10.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "aes-gcm" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0z2429v2d2wyf809h2wc4vwwibwypz3y4p7sn4kzkjb91ip3dqc2")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-aead" ,rust-aead-0.5) - ("rust-aes" ,rust-aes-0.8) - ("rust-cipher" ,rust-cipher-0.4) - ("rust-ctr" ,rust-ctr-0.9) - ("rust-ghash" ,rust-ghash-0.5) - ("rust-subtle" ,rust-subtle-2) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-aead" ,rust-aead-0.5) - ("rust-hex-literal" ,rust-hex-literal-0.3)))) - (home-page "https://github.com/RustCrypto/AEADs") - (synopsis "AES-GCM (Galois/Counter Mode) Authenticated Encryption") - (description "This package provides a pure Rust implementation of the -AES-GCM (Galois/Counter Mode) Authenticated Encryption with Associated -Data (AEAD) Cipher with optional architecture-specific hardware -acceleration.") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-aes-gcm-0.8 - (package - (inherit rust-aes-gcm-0.10) - (name "rust-aes-gcm") - (version "0.8.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "aes-gcm" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1nl8iwlh209y1vj9n2lm1a70i69clvg2z6x69bi4dgdrpgxbay2j")))) - (arguments - `(#:cargo-inputs - (("rust-aead" ,rust-aead-0.3) - ("rust-aes" ,rust-aes-0.6) - ("rust-cipher" ,rust-cipher-0.2) - ("rust-ctr" ,rust-ctr-0.6) - ("rust-ghash" ,rust-ghash-0.3) - ("rust-subtle" ,rust-subtle-2) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.2)))))) - -(define-public rust-aes-gcm-0.6 - (package - (inherit rust-aes-gcm-0.8) - (name "rust-aes-gcm") - (version "0.6.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "aes-gcm" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1lga8my3zlc0b1nhcpc1hrbykfm014fqs6d64bwrjqii05w01xc6")))) - (arguments - `(#:cargo-inputs - (("rust-aead" ,rust-aead-0.3) - ("rust-aes" ,rust-aes-0.4) - ("rust-block-cipher" ,rust-block-cipher-0.7) - ("rust-ghash" ,rust-ghash-0.3) - ("rust-subtle" ,rust-subtle-2) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-criterion" ,rust-criterion-0.3) - ("rust-criterion-cycles-per-byte" - ,rust-criterion-cycles-per-byte-0.1) - ("rust-hex-literal" ,rust-hex-literal-0.2)))))) - -(define-public rust-aes-gcm-0.5 - (package - (inherit rust-aes-gcm-0.6) - (name "rust-aes-gcm") - (version "0.5.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "aes-gcm" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0f66b5bmyj38r1hj55wzamlzw3y1aql34lgwr2vxn93073d6njl3")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-aead" ,rust-aead-0.2) - ("rust-aes" ,rust-aes-0.3) - ("rust-block-cipher-trait" ,rust-block-cipher-trait-0.6) - ("rust-ghash" ,rust-ghash-0.2) - ("rust-subtle" ,rust-subtle-2) - ("rust-zeroize" ,rust-zeroize-1)))))) - -(define-public rust-aes-soft-0.6 - (package - (name "rust-aes-soft") - (version "0.6.4") - (source - (origin - (method url-fetch) - (uri (crate-uri "aes-soft" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0wj0fi2pvmlw09yvb1aqf0mfkzrfxmjsf90finijh255ir4wf55y")))) - (build-system cargo-build-system) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-block-cipher" ,rust-block-cipher-0.7) - ("rust-byteorder" ,rust-byteorder-1) - ("rust-opaque-debug" ,rust-opaque-debug-0.2)) - #:cargo-development-inputs - (("rust-block-cipher" ,rust-block-cipher-0.7)))) - (home-page "https://github.com/RustCrypto/block-ciphers") - (synopsis "Bit-sliced implementation of AES (Rijndael) block ciphers") - (description "This package provides a bit-sliced implementation of -AES (Rijndael) block ciphers. - -This package is deprecated and was replaced by the @code{aes} crate.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-aes-soft-0.4 - (package - (inherit rust-aes-soft-0.6) - (name "rust-aes-soft") - (version "0.4.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "aes-soft" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "19szsg0qqxq42k7bj5p3svb147n8wxy9a20n4g7mcl2fwrz689a9")))) - (arguments - `(#:cargo-inputs - (("rust-block-cipher" ,rust-block-cipher-0.7) - ("rust-byteorder" ,rust-byteorder-1) - ("rust-opaque-debug" ,rust-opaque-debug-0.2)) - #:cargo-development-inputs - (("rust-block-cipher" ,rust-block-cipher-0.7)))))) - -(define-public rust-aes-soft-0.3 - (package - (inherit rust-aes-soft-0.4) - (name "rust-aes-soft") - (version "0.3.3") - (source - (origin - (method url-fetch) - (uri (crate-uri "aes-soft" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "039si7yjp0wcd750sgq52c60sh2ikaxwd7rq7g0ba7ws7ypfgmyg")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-block-cipher-trait" ,rust-block-cipher-trait-0.6) - ("rust-byteorder" ,rust-byteorder-1) - ("rust-opaque-debug" ,rust-opaque-debug-0.2)))))) - -(define-public rust-aesni-0.10 - (package - (name "rust-aesni") - (version "0.10.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "aesni" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1kmh07fp9hbi1aa8dr2rybbgw8vqz6hjmk34c4w7sbscx7si2bpa")))) - (build-system cargo-build-system) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-cipher" ,rust-cipher-0.2) - ("rust-opaque-debug" ,rust-opaque-debug-0.3)))) - (home-page "https://github.com/RustCrypto/block-ciphers") - (synopsis "AES (Rijndael) block ciphers implementation using AES-NI") - (description "This package provides an implementation of AES (Rijndael) -block ciphers using AES-NI. - -This package is deprecated and was replaced by the @code{aes} crate.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-aesni-0.7 - (package - (inherit rust-aesni-0.10) - (name "rust-aesni") - (version "0.7.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "aesni" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0r6j0mjkyqnwvgib01cvrwfw8rlx1biw75234niv723n1fdx6l6h")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-block-cipher" ,rust-block-cipher-0.7) - ("rust-opaque-debug" ,rust-opaque-debug-0.2) - ("rust-stream-cipher" ,rust-stream-cipher-0.4)) - #:cargo-development-inputs - (("rust-block-cipher" ,rust-block-cipher-0.7) - ("rust-stream-cipher" ,rust-stream-cipher-0.4)))))) - -(define-public rust-aesni-0.6 - (package - (inherit rust-aesni-0.7) - (name "rust-aesni") - (version "0.6.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "aesni" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "007imgcfl82nilfpamj5dik83pkcmkzvbkxp384p7r3iz6sscw1g")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-block-cipher-trait" ,rust-block-cipher-trait-0.6) - ("rust-opaque-debug" ,rust-opaque-debug-0.2) - ("rust-stream-cipher" ,rust-stream-cipher-0.3)))))) - (define-public rust-afl-0.12 (package (name "rust-afl") diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm index 19602c4f37..f50b1fee75 100644 --- a/gnu/packages/rust-apps.scm +++ b/gnu/packages/rust-apps.scm @@ -59,6 +59,7 @@ #:use-module (gnu packages bash) #:use-module (gnu packages compression) #:use-module (gnu packages crates-apple) + #:use-module (gnu packages crates-crypto) #:use-module (gnu packages crates-io) #:use-module (gnu packages crates-graphics) #:use-module (gnu packages crates-tls) -- cgit v1.2.3 From a9097d4df47832823271b5a5e9dc6cbba98a0b7b Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 13:52:56 +0200 Subject: gnu: rust-blake2: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-blake2-0.10, rust-blake2-0.9, rust-blake2-0.8, rust-blake2b-simd-1, rust-blake2b-simd-0.5, rust-blakeout): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I9310bbd1e197f18a42929169a8b9cb6d9b73ed2f --- gnu/packages/crates-crypto.scm | 143 ++++++++++++++++++++++++++++++++++++++++- gnu/packages/crates-io.scm | 139 --------------------------------------- 2 files changed, 142 insertions(+), 140 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index f51fb986e9..399c0b5c58 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1,10 +1,12 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2019 John Soo +;;; Copyright © 2019, 2020 John Soo ;;; Copyright © 2020 Arun Isaac +;;; Copyright © 2020 Valentin Ignatev ;;; Copyright © 2021 Nicolas Goaziou ;;; Copyright © 2021 Vinicius Monego ;;; Copyright © 2022 Nicolas Graves ;;; Copyright © 2022 Aleksandr Vityazev +;;; Copyright © 2022 Ricardo Wurmus ;;; Copyright © 2023 Efraim Flashner ;;; Copyright © 2023 Steve George ;;; Copyright © 2023 VÖRÖSKŐI András @@ -413,6 +415,145 @@ This package is deprecated and was replaced by the @code{aes} crate.") ("rust-opaque-debug" ,rust-opaque-debug-0.2) ("rust-stream-cipher" ,rust-stream-cipher-0.3)))))) +(define-public rust-blake2-0.10 + (package + (name "rust-blake2") + (version "0.10.6") + (source + (origin + (method url-fetch) + (uri (crate-uri "blake2" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1zlf7w7gql12v61d9jcbbswa3dw8qxsjglylsiljp9f9b3a2ll26")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-digest" ,rust-digest-0.10)) + #:cargo-development-inputs + (("rust-digest" ,rust-digest-0.10) + ("rust-hex-literal" ,rust-hex-literal-0.2)))) + (home-page "https://github.com/RustCrypto/hashes") + (synopsis "BLAKE2 hash functions") + (description "This package provides BLAKE2 hash functions in Rust.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-blake2-0.9 + (package + (inherit rust-blake2-0.10) + (name "rust-blake2") + (version "0.9.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "blake2" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0x7i67c0hn3bzcwny08rgjrrnarqnqw10qpmh2blbx9hd78kfkha")))) + (arguments + `(#:cargo-inputs + (("rust-crypto-mac" ,rust-crypto-mac-0.8) + ("rust-digest" ,rust-digest-0.9) + ("rust-opaque-debug" ,rust-opaque-debug-0.3)) + #:cargo-development-inputs + (("rust-crypto-mac" ,rust-crypto-mac-0.8) + ("rust-digest" ,rust-digest-0.9) + ("rust-hex-literal" ,rust-hex-literal-0.2)))))) + +(define-public rust-blake2-0.8 + (package + (inherit rust-blake2-0.10) + (name "rust-blake2") + (version "0.8.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "blake2" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0c4k11j04kqhkci6i9b7lz6p13kpcv228pdqixgrawvavaq0gjwl")))) + (arguments + `(#:tests? #f ; Not all tests compile. + #:cargo-inputs + (("rust-byte-tools" ,rust-byte-tools-0.3) + ("rust-crypto-mac" ,rust-crypto-mac-0.7) + ("rust-digest" ,rust-digest-0.8) + ("rust-opaque-debug" ,rust-opaque-debug-0.2)) + #:cargo-development-inputs + (("rust-crypto-mac" ,rust-crypto-mac-0.7) + ("rust-digest" ,rust-digest-0.8) + ("rust-hex-literal" ,rust-hex-literal-0.1)))))) + +(define-public rust-blake2b-simd-1 + (package + (name "rust-blake2b-simd") + (version "1.0.1") + (source (origin + (method url-fetch) + (uri (crate-uri "blake2b_simd" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1g04mc4gf6jyymyj41749jhhplm3ymnc6z7rhkc1fqwclv4hsbrw")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-arrayref" ,rust-arrayref-0.3) + ("rust-arrayvec" ,rust-arrayvec-0.7) + ("rust-constant-time-eq" ,rust-constant-time-eq-0.2)))) + (home-page "https://github.com/oconnor663/blake2_simd") + (synopsis "Pure Rust BLAKE2b implementation with dynamic SIMD") + (description + "This package provides a pure Rust implementation of the BLAKE2b and +BLAKE2bp hash functions.") + (license license:expat))) + +(define-public rust-blake2b-simd-0.5 + (package + (inherit rust-blake2b-simd-1) + (name "rust-blake2b-simd") + (version "0.5.10") + (source + (origin + (method url-fetch) + (uri (crate-uri "blake2b_simd" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "12icvk8ixlivv3jv5nyrg01sajp4s279zb1kmif0nfja4ms2vyyq")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-arrayref" ,rust-arrayref-0.3) + ("rust-arrayvec" ,rust-arrayvec-0.5) + ("rust-constant-time-eq" ,rust-constant-time-eq-0.1)))))) + +(define-public rust-blakeout-0.3 + (package + (name "rust-blakeout") + (version "0.3.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "blakeout" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0dxcg3sjxd82mn7mq4ammrfpidqf9zsagvhfzgblsi8g4b2fgvw1")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-blake2" ,rust-blake2-0.9) + ("rust-digest" ,rust-digest-0.9)))) + (home-page "https://github.com/Revertron/Blakeout") + (synopsis "Memory hard hashing algorithm based on Blake2s") + (description "This package provides memory hard hashing algorithm +based on Blake2s.") + (license (list license:expat license:asl2.0)))) + (define-public rust-botan-0.10 (package (name "rust-botan") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 91fd2dc3b4..0b0009d4a6 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -7062,145 +7062,6 @@ streams in big-endian and little-endian formats.") ("rust-serde-test" ,rust-serde-test-1) ("rust-static-assertions" ,rust-static-assertions-1)))))) -(define-public rust-blake2-0.10 - (package - (name "rust-blake2") - (version "0.10.6") - (source - (origin - (method url-fetch) - (uri (crate-uri "blake2" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1zlf7w7gql12v61d9jcbbswa3dw8qxsjglylsiljp9f9b3a2ll26")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-digest" ,rust-digest-0.10)) - #:cargo-development-inputs - (("rust-digest" ,rust-digest-0.10) - ("rust-hex-literal" ,rust-hex-literal-0.2)))) - (home-page "https://github.com/RustCrypto/hashes") - (synopsis "BLAKE2 hash functions") - (description "This package provides BLAKE2 hash functions in Rust.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-blake2-0.9 - (package - (inherit rust-blake2-0.10) - (name "rust-blake2") - (version "0.9.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "blake2" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0x7i67c0hn3bzcwny08rgjrrnarqnqw10qpmh2blbx9hd78kfkha")))) - (arguments - `(#:cargo-inputs - (("rust-crypto-mac" ,rust-crypto-mac-0.8) - ("rust-digest" ,rust-digest-0.9) - ("rust-opaque-debug" ,rust-opaque-debug-0.3)) - #:cargo-development-inputs - (("rust-crypto-mac" ,rust-crypto-mac-0.8) - ("rust-digest" ,rust-digest-0.9) - ("rust-hex-literal" ,rust-hex-literal-0.2)))))) - -(define-public rust-blake2-0.8 - (package - (inherit rust-blake2-0.10) - (name "rust-blake2") - (version "0.8.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "blake2" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0c4k11j04kqhkci6i9b7lz6p13kpcv228pdqixgrawvavaq0gjwl")))) - (arguments - `(#:tests? #f ; Not all tests compile. - #:cargo-inputs - (("rust-byte-tools" ,rust-byte-tools-0.3) - ("rust-crypto-mac" ,rust-crypto-mac-0.7) - ("rust-digest" ,rust-digest-0.8) - ("rust-opaque-debug" ,rust-opaque-debug-0.2)) - #:cargo-development-inputs - (("rust-crypto-mac" ,rust-crypto-mac-0.7) - ("rust-digest" ,rust-digest-0.8) - ("rust-hex-literal" ,rust-hex-literal-0.1)))))) - -(define-public rust-blake2b-simd-1 - (package - (name "rust-blake2b-simd") - (version "1.0.1") - (source (origin - (method url-fetch) - (uri (crate-uri "blake2b_simd" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1g04mc4gf6jyymyj41749jhhplm3ymnc6z7rhkc1fqwclv4hsbrw")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-arrayref" ,rust-arrayref-0.3) - ("rust-arrayvec" ,rust-arrayvec-0.7) - ("rust-constant-time-eq" ,rust-constant-time-eq-0.2)))) - (home-page "https://github.com/oconnor663/blake2_simd") - (synopsis "Pure Rust BLAKE2b implementation with dynamic SIMD") - (description - "This package provides a pure Rust implementation of the BLAKE2b and -BLAKE2bp hash functions.") - (license license:expat))) - -(define-public rust-blake2b-simd-0.5 - (package - (inherit rust-blake2b-simd-1) - (name "rust-blake2b-simd") - (version "0.5.10") - (source - (origin - (method url-fetch) - (uri (crate-uri "blake2b_simd" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "12icvk8ixlivv3jv5nyrg01sajp4s279zb1kmif0nfja4ms2vyyq")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-arrayref" ,rust-arrayref-0.3) - ("rust-arrayvec" ,rust-arrayvec-0.5) - ("rust-constant-time-eq" ,rust-constant-time-eq-0.1)))))) - -(define-public rust-blakeout-0.3 - (package - (name "rust-blakeout") - (version "0.3.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "blakeout" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0dxcg3sjxd82mn7mq4ammrfpidqf9zsagvhfzgblsi8g4b2fgvw1")))) - (build-system cargo-build-system) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-blake2" ,rust-blake2-0.9) - ("rust-digest" ,rust-digest-0.9)))) - (home-page "https://github.com/Revertron/Blakeout") - (synopsis "Memory hard hashing algorithm based on Blake2s") - (description "This package provides memory hard hashing algorithm -based on Blake2s.") - (license (list license:expat license:asl2.0)))) - (define-public rust-blobby-0.3 (package (name "rust-blobby") -- cgit v1.2.3 From 84a02f7dd6bec370480f617171493be6c14633cf Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 14:59:28 +0200 Subject: gnu: rust-crypto: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-crypto-secretbox-0.1, rust-crypto-bigint-0.5, rust-crypto-bigint-0.4, rust-crypto-bigint-0.3, rust-crypto-bigint-0.2, rust-crypto-common-0.1, rust-crypto-mac-0.11, rust-crypto-mac-0.10, rust-crypto-mac-0.8, rust-crypto-mac-0.7, rust-crypto-mac-0.5, rust-crypto-mac-0.4, rust-crypto-tests-0.5, rust-crypto-hash-0.3): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: Ice6d8f1b35afe75f1b0219dc1288ddd4ac8ab4a8 --- gnu/packages/crates-crypto.scm | 365 ++++++++++++++++++++++++++++++++++++++++- gnu/packages/crates-io.scm | 353 --------------------------------------- gnu/packages/crypto.scm | 1 + 3 files changed, 364 insertions(+), 355 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 399c0b5c58..59cc42eb77 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1,15 +1,20 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2019, 2020 John Soo +;;; Copyright © 2020 Hartmut Goebel ;;; Copyright © 2020 Arun Isaac +;;; Copyright © 2020, 2022, 2023 Efraim Flashner ;;; Copyright © 2020 Valentin Ignatev ;;; Copyright © 2021 Nicolas Goaziou ;;; Copyright © 2021 Vinicius Monego +;;; Copyright © 2021 Maxim Cournoyer +;;; Copyright © 2021 Domagoj Stolfa ;;; Copyright © 2022 Nicolas Graves ;;; Copyright © 2022 Aleksandr Vityazev ;;; Copyright © 2022 Ricardo Wurmus -;;; Copyright © 2023 Efraim Flashner +;;; Copyright © 2022 Marius Bakke ;;; Copyright © 2023 Steve George ;;; Copyright © 2023 VÖRÖSKŐI András +;;; Copyright © 2024 Wilko Meyer ;;; ;;; This file is part of GNU Guix. ;;; @@ -34,8 +39,11 @@ #:use-module (guix gexp) #:use-module (guix utils) #:use-module (gnu packages) + #:use-module (gnu packages crates-apple) #:use-module (gnu packages crates-io) - #:use-module (gnu packages crypto)) + #:use-module (gnu packages crates-windows) + #:use-module (gnu packages crypto) + #:use-module (gnu packages tls)) ;;; ;;; Please: Try to add new module packages in alphabetic order. @@ -696,3 +704,356 @@ based on Blake2s.") (description "The ChaCha family of stream ciphers.") (license (list license:asl2.0 license:expat)))) + +(define-public rust-crypto-secretbox-0.1 + (package + (name "rust-crypto-secretbox") + (version "0.1.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "crypto_secretbox" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1qa1w5s8dbyb88269zrmvbnillqahz394pl07bsds6gpmn3wzmmr")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-aead" ,rust-aead-0.5) + ("rust-chacha20" ,rust-chacha20-0.9) + ("rust-cipher" ,rust-cipher-0.4) + ("rust-generic-array" ,rust-generic-array-0.14) + ("rust-poly1305" ,rust-poly1305-0.8) + ("rust-salsa20" ,rust-salsa20-0.10) + ("rust-subtle" ,rust-subtle-2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.4)))) + (home-page + "https://github.com/RustCrypto/nacl-compat/tree/master/crypto_secretbox") + (synopsis + "Pure Rust implementation of the XSalsa20Poly1305") + (description + "Pure Rust implementation of the XSalsa20Poly1305 (a.k.a. @code{NaCl} +crypto_secretbox) authenticated encryption cipher as well as the libsodium +variant of X@code{ChaCha20Poly1305}.") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-crypto-bigint-0.5 + (package + (name "rust-crypto-bigint") + (version "0.5.2") + (source (origin + (method url-fetch) + (uri (crate-uri "crypto-bigint" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "05gy7sqkxg65bj1wrgq1pbh8iwn1kmfysvzx1g22p4gx3972yk6g")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-der" ,rust-der-0.7) + ("rust-generic-array" ,rust-generic-array-0.14) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-rlp" ,rust-rlp-0.5) + ("rust-serdect" ,rust-serdect-0.2) + ("rust-subtle" ,rust-subtle-2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-bincode" ,rust-bincode-1) + ("rust-criterion" ,rust-criterion-0.4) + ("rust-hex-literal" ,rust-hex-literal-0.4) + ("rust-num-bigint" ,rust-num-bigint-0.4) + ("rust-num-integer" ,rust-num-integer-0.1) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-proptest" ,rust-proptest-1) + ("rust-rand-chacha" ,rust-rand-chacha-0.3) + ("rust-rand-core" ,rust-rand-core-0.6)))) + (home-page "https://github.com/RustCrypto/crypto-bigint") + (synopsis "Big integer library designed for use in cryptography") + (description + "This crate is a pure Rust implementation of a big integer library which +has been designed from the ground-up for use in cryptographic applications. +Provides constant-time, no_std-friendly implementations of modern formulas +using const generics.") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-crypto-bigint-0.4 + (package + (inherit rust-crypto-bigint-0.5) + (name "rust-crypto-bigint") + (version "0.4.9") + (source + (origin + (method url-fetch) + (uri (crate-uri "crypto-bigint" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1vqprgj0aj1340w186zyspi58397ih78jsc0iydvhs6zrlilnazg")))) + (arguments + `(#:cargo-inputs (("rust-der" ,rust-der-0.6) + ("rust-generic-array" ,rust-generic-array-0.14) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-rlp" ,rust-rlp-0.5) + ("rust-serdect" ,rust-serdect-0.1) + ("rust-subtle" ,rust-subtle-2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs (("rust-bincode" ,rust-bincode-1) + ("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-num-bigint" ,rust-num-bigint-0.4) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-proptest" ,rust-proptest-1) + ("rust-rand-chacha" ,rust-rand-chacha-0.3) + ("rust-rand-core" ,rust-rand-core-0.6)))))) + +(define-public rust-crypto-bigint-0.3 + (package + (inherit rust-crypto-bigint-0.5) + (name "rust-crypto-bigint") + (version "0.3.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "crypto-bigint" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "08gx92sj93hk2smqy4nvk8lmpjjjqm7a9ps22q3pxqqxzbas3ih3")))) + (arguments + `(#:cargo-inputs (("rust-generic-array" ,rust-generic-array-0.14) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-rlp" ,rust-rlp-0.5) + ("rust-subtle" ,rust-subtle-2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-num-bigint" ,rust-num-bigint-0.4) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-proptest" ,rust-proptest-1) + ("rust-rand-chacha" ,rust-rand-chacha-0.3) + ("rust-rand-core" ,rust-rand-core-0.6)))))) + +(define-public rust-crypto-bigint-0.2 + (package + (inherit rust-crypto-bigint-0.5) + (name "rust-crypto-bigint") + (version "0.2.11") + (source + (origin + (method url-fetch) + (uri (crate-uri "crypto-bigint" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "00qckh65nzb7s7vd60wylw6alxf9g37xh31lirb1qw0l8fxx6fzq")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-generic-array" ,rust-generic-array-0.14) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-rlp" ,rust-rlp-0.5) + ("rust-subtle" ,rust-subtle-2) + ("rust-zeroize" ,rust-zeroize-1)))))) + +(define-public rust-crypto-common-0.1 + (package + (name "rust-crypto-common") + (version "0.1.6") + (source (origin + (method url-fetch) + (uri (crate-uri "crypto-common" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1cvby95a6xg7kxdz5ln3rl9xh66nz66w46mm3g56ri1z5x815yqv")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-generic-array" ,rust-generic-array-0.14) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-typenum" ,rust-typenum-1)))) + (home-page "https://github.com/RustCrypto/traits") + (synopsis "Common cryptographic traits") + (description + "This package contains a collection of traits which describe functionality +of cryptographic primitives.") + ;; The user can choose either license. + (license (list license:expat license:asl2.0)))) + +(define-public rust-crypto-mac-0.11 + (package + (name "rust-crypto-mac") + (version "0.11.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "crypto-mac" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0ghh3qmjf7hv580zqdk4yrbg99v57jx773zb7lzi7j4hj24bdyi5")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-blobby" ,rust-blobby-0.3) + ("rust-cipher" ,rust-cipher-0.3) + ("rust-generic-array" ,rust-generic-array-0.14) + ("rust-subtle" ,rust-subtle-2)))) + (home-page "https://github.com/RustCrypto/traits") + (synopsis "Trait for Message Authentication Code (MAC) algorithms") + (description "This package provides trait for @dfn{Message Authentication +Code} (MAC) algorithms.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-crypto-mac-0.10 + (package + (inherit rust-crypto-mac-0.11) + (name "rust-crypto-mac") + (version "0.10.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "crypto-mac" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "19iyh7h9qaqrv29dhbd31rm6pq023ry78nw7jwr3qjy3l22zsms8")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-blobby" ,rust-blobby-0.3) + ("rust-cipher" ,rust-cipher-0.2) + ("rust-generic-array" ,rust-generic-array-0.14) + ("rust-subtle" ,rust-subtle-2)))))) + +(define-public rust-crypto-mac-0.8 + (package + (inherit rust-crypto-mac-0.10) + (name "rust-crypto-mac") + (version "0.8.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "crypto-mac" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1axfs4zmy74rn9666p92j7nmcv11zdp2d51yrppc2dv26cqa715m")))) + (arguments + `(#:cargo-inputs + (("rust-blobby" ,rust-blobby-0.1) + ("rust-generic-array" ,rust-generic-array-0.14) + ("rust-subtle" ,rust-subtle-2)))))) + +(define-public rust-crypto-mac-0.7 + (package + (inherit rust-crypto-mac-0.10) + (name "rust-crypto-mac") + (version "0.7.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "crypto-mac" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1rbrq6qy9dl0pj4ym2zy33miaaa8vpzdss60p9bdb58xy46l0d24")))) + (arguments + `(#:cargo-inputs + (("rust-blobby" ,rust-blobby-0.1) + ("rust-generic-array" ,rust-generic-array-0.12) + ("rust-subtle" ,rust-subtle-1)))))) + +(define-public rust-crypto-mac-0.5 + (package + (inherit rust-crypto-mac-0.10) + (name "rust-crypto-mac") + (version "0.5.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "crypto-mac" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0n6r10zlnfv9gbjj0380sxfffxhq1khfjqwsn7fx8iil9pzv9689")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-constant-time-eq" ,rust-constant-time-eq-0.1) + ("rust-generic-array" ,rust-generic-array-0.9)))))) + +(define-public rust-crypto-mac-0.4 + (package + (name "rust-crypto-mac") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "crypto-mac" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "160ixpghhz5kz16f38kzcyv6lx8wmi4cgbhlhq4nazf678iib43p")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-constant-time-eq" ,rust-constant-time-eq-0.1) + ("rust-generic-array" ,rust-generic-array-0.8)))) + (home-page "https://github.com/RustCrypto/traits") + (synopsis "Trait for Message Authentication Code (MAC) algorithms") + (description "This package provides traits for Message Authentication +Code (MAC) algorithms.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-crypto-tests-0.5 + (package + (name "rust-crypto-tests") + (version "0.5.5") + (source + (origin + (method url-fetch) + (uri (crate-uri "crypto-tests" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "08yrh40a9ll4k29ppizg2yjf96i6s3i9pbkhxp60y8arar93134v")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-block-cipher-trait" ,rust-block-cipher-trait-0.4) + ("rust-crypto-mac" ,rust-crypto-mac-0.4) + ("rust-digest" ,rust-digest-0.6) + ("rust-generic-array" ,rust-generic-array-0.8)))) + (home-page "https://github.com/RustCrypto/utils") + (synopsis "Test helpers for cryptographic algorithms") + (description "This package provides test helpers for cryptographic +algorithms.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-crypto-hash-0.3 + (package + (name "rust-crypto-hash") + (version "0.3.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "crypto-hash" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1jnxgpk0j29hzcv42viq5dckyfjnxdjsar55366j95zx80i1cxwa")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-commoncrypto" ,rust-commoncrypto-0.2) + ("rust-hex" ,rust-hex-0.3) + ("rust-openssl" ,rust-openssl-0.10) + ("rust-winapi" ,rust-winapi-0.3)))) + (inputs + (list openssl)) + (home-page "https://github.com/malept/crypto-hash") + (synopsis "Wrapper for OS-level cryptographic hash functions") + (description "This package provides a wrapper for OS-level cryptographic +hash functions.") + (license license:expat))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 0b0009d4a6..269d07cbf6 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -16429,359 +16429,6 @@ character.") (arguments `(#:cargo-inputs (("rust-nom" ,rust-nom-6)))))) -(define-public rust-crypto-secretbox-0.1 - (package - (name "rust-crypto-secretbox") - (version "0.1.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "crypto_secretbox" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1qa1w5s8dbyb88269zrmvbnillqahz394pl07bsds6gpmn3wzmmr")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs (("rust-aead" ,rust-aead-0.5) - ("rust-chacha20" ,rust-chacha20-0.9) - ("rust-cipher" ,rust-cipher-0.4) - ("rust-generic-array" ,rust-generic-array-0.14) - ("rust-poly1305" ,rust-poly1305-0.8) - ("rust-salsa20" ,rust-salsa20-0.10) - ("rust-subtle" ,rust-subtle-2) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.4)))) - (home-page - "https://github.com/RustCrypto/nacl-compat/tree/master/crypto_secretbox") - (synopsis - "Pure Rust implementation of the XSalsa20Poly1305") - (description - "Pure Rust implementation of the XSalsa20Poly1305 (a.k.a. @code{NaCl} -crypto_secretbox) authenticated encryption cipher as well as the libsodium -variant of X@code{ChaCha20Poly1305}.") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-crypto-bigint-0.5 - (package - (name "rust-crypto-bigint") - (version "0.5.2") - (source (origin - (method url-fetch) - (uri (crate-uri "crypto-bigint" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "05gy7sqkxg65bj1wrgq1pbh8iwn1kmfysvzx1g22p4gx3972yk6g")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-der" ,rust-der-0.7) - ("rust-generic-array" ,rust-generic-array-0.14) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-rlp" ,rust-rlp-0.5) - ("rust-serdect" ,rust-serdect-0.2) - ("rust-subtle" ,rust-subtle-2) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-bincode" ,rust-bincode-1) - ("rust-criterion" ,rust-criterion-0.4) - ("rust-hex-literal" ,rust-hex-literal-0.4) - ("rust-num-bigint" ,rust-num-bigint-0.4) - ("rust-num-integer" ,rust-num-integer-0.1) - ("rust-num-traits" ,rust-num-traits-0.2) - ("rust-proptest" ,rust-proptest-1) - ("rust-rand-chacha" ,rust-rand-chacha-0.3) - ("rust-rand-core" ,rust-rand-core-0.6)))) - (home-page "https://github.com/RustCrypto/crypto-bigint") - (synopsis "Big integer library designed for use in cryptography") - (description - "This crate is a pure Rust implementation of a big integer library which -has been designed from the ground-up for use in cryptographic applications. -Provides constant-time, no_std-friendly implementations of modern formulas -using const generics.") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-crypto-bigint-0.4 - (package - (inherit rust-crypto-bigint-0.5) - (name "rust-crypto-bigint") - (version "0.4.9") - (source - (origin - (method url-fetch) - (uri (crate-uri "crypto-bigint" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1vqprgj0aj1340w186zyspi58397ih78jsc0iydvhs6zrlilnazg")))) - (arguments - `(#:cargo-inputs (("rust-der" ,rust-der-0.6) - ("rust-generic-array" ,rust-generic-array-0.14) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-rlp" ,rust-rlp-0.5) - ("rust-serdect" ,rust-serdect-0.1) - ("rust-subtle" ,rust-subtle-2) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs (("rust-bincode" ,rust-bincode-1) - ("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-num-bigint" ,rust-num-bigint-0.4) - ("rust-num-traits" ,rust-num-traits-0.2) - ("rust-proptest" ,rust-proptest-1) - ("rust-rand-chacha" ,rust-rand-chacha-0.3) - ("rust-rand-core" ,rust-rand-core-0.6)))))) - -(define-public rust-crypto-bigint-0.3 - (package - (inherit rust-crypto-bigint-0.5) - (name "rust-crypto-bigint") - (version "0.3.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "crypto-bigint" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "08gx92sj93hk2smqy4nvk8lmpjjjqm7a9ps22q3pxqqxzbas3ih3")))) - (arguments - `(#:cargo-inputs (("rust-generic-array" ,rust-generic-array-0.14) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-rlp" ,rust-rlp-0.5) - ("rust-subtle" ,rust-subtle-2) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-num-bigint" ,rust-num-bigint-0.4) - ("rust-num-traits" ,rust-num-traits-0.2) - ("rust-proptest" ,rust-proptest-1) - ("rust-rand-chacha" ,rust-rand-chacha-0.3) - ("rust-rand-core" ,rust-rand-core-0.6)))))) - -(define-public rust-crypto-bigint-0.2 - (package - (inherit rust-crypto-bigint-0.5) - (name "rust-crypto-bigint") - (version "0.2.11") - (source - (origin - (method url-fetch) - (uri (crate-uri "crypto-bigint" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "00qckh65nzb7s7vd60wylw6alxf9g37xh31lirb1qw0l8fxx6fzq")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-generic-array" ,rust-generic-array-0.14) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-rlp" ,rust-rlp-0.5) - ("rust-subtle" ,rust-subtle-2) - ("rust-zeroize" ,rust-zeroize-1)))))) - -(define-public rust-crypto-common-0.1 - (package - (name "rust-crypto-common") - (version "0.1.6") - (source (origin - (method url-fetch) - (uri (crate-uri "crypto-common" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1cvby95a6xg7kxdz5ln3rl9xh66nz66w46mm3g56ri1z5x815yqv")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-generic-array" ,rust-generic-array-0.14) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-typenum" ,rust-typenum-1)))) - (home-page "https://github.com/RustCrypto/traits") - (synopsis "Common cryptographic traits") - (description - "This package contains a collection of traits which describe functionality -of cryptographic primitives.") - ;; The user can choose either license. - (license (list license:expat license:asl2.0)))) - -(define-public rust-crypto-mac-0.11 - (package - (name "rust-crypto-mac") - (version "0.11.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "crypto-mac" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0ghh3qmjf7hv580zqdk4yrbg99v57jx773zb7lzi7j4hj24bdyi5")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-blobby" ,rust-blobby-0.3) - ("rust-cipher" ,rust-cipher-0.3) - ("rust-generic-array" ,rust-generic-array-0.14) - ("rust-subtle" ,rust-subtle-2)))) - (home-page "https://github.com/RustCrypto/traits") - (synopsis "Trait for Message Authentication Code (MAC) algorithms") - (description "This package provides trait for @dfn{Message Authentication -Code} (MAC) algorithms.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-crypto-mac-0.10 - (package - (inherit rust-crypto-mac-0.11) - (name "rust-crypto-mac") - (version "0.10.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "crypto-mac" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "19iyh7h9qaqrv29dhbd31rm6pq023ry78nw7jwr3qjy3l22zsms8")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-blobby" ,rust-blobby-0.3) - ("rust-cipher" ,rust-cipher-0.2) - ("rust-generic-array" ,rust-generic-array-0.14) - ("rust-subtle" ,rust-subtle-2)))))) - -(define-public rust-crypto-mac-0.8 - (package - (inherit rust-crypto-mac-0.10) - (name "rust-crypto-mac") - (version "0.8.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "crypto-mac" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1axfs4zmy74rn9666p92j7nmcv11zdp2d51yrppc2dv26cqa715m")))) - (arguments - `(#:cargo-inputs - (("rust-blobby" ,rust-blobby-0.1) - ("rust-generic-array" ,rust-generic-array-0.14) - ("rust-subtle" ,rust-subtle-2)))))) - -(define-public rust-crypto-mac-0.7 - (package - (inherit rust-crypto-mac-0.10) - (name "rust-crypto-mac") - (version "0.7.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "crypto-mac" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1rbrq6qy9dl0pj4ym2zy33miaaa8vpzdss60p9bdb58xy46l0d24")))) - (arguments - `(#:cargo-inputs - (("rust-blobby" ,rust-blobby-0.1) - ("rust-generic-array" ,rust-generic-array-0.12) - ("rust-subtle" ,rust-subtle-1)))))) - -(define-public rust-crypto-mac-0.5 - (package - (inherit rust-crypto-mac-0.10) - (name "rust-crypto-mac") - (version "0.5.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "crypto-mac" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0n6r10zlnfv9gbjj0380sxfffxhq1khfjqwsn7fx8iil9pzv9689")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-constant-time-eq" ,rust-constant-time-eq-0.1) - ("rust-generic-array" ,rust-generic-array-0.9)))))) - -(define-public rust-crypto-mac-0.4 - (package - (name "rust-crypto-mac") - (version "0.4.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "crypto-mac" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "160ixpghhz5kz16f38kzcyv6lx8wmi4cgbhlhq4nazf678iib43p")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-constant-time-eq" ,rust-constant-time-eq-0.1) - ("rust-generic-array" ,rust-generic-array-0.8)))) - (home-page "https://github.com/RustCrypto/traits") - (synopsis "Trait for Message Authentication Code (MAC) algorithms") - (description "This package provides traits for Message Authentication -Code (MAC) algorithms.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-crypto-tests-0.5 - (package - (name "rust-crypto-tests") - (version "0.5.5") - (source - (origin - (method url-fetch) - (uri (crate-uri "crypto-tests" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "08yrh40a9ll4k29ppizg2yjf96i6s3i9pbkhxp60y8arar93134v")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-block-cipher-trait" ,rust-block-cipher-trait-0.4) - ("rust-crypto-mac" ,rust-crypto-mac-0.4) - ("rust-digest" ,rust-digest-0.6) - ("rust-generic-array" ,rust-generic-array-0.8)))) - (home-page "https://github.com/RustCrypto/utils") - (synopsis "Test helpers for cryptographic algorithms") - (description "This package provides test helpers for cryptographic -algorithms.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-crypto-hash-0.3 - (package - (name "rust-crypto-hash") - (version "0.3.4") - (source - (origin - (method url-fetch) - (uri (crate-uri "crypto-hash" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1jnxgpk0j29hzcv42viq5dckyfjnxdjsar55366j95zx80i1cxwa")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-commoncrypto" ,rust-commoncrypto-0.2) - ("rust-hex" ,rust-hex-0.3) - ("rust-openssl" ,rust-openssl-0.10) - ("rust-winapi" ,rust-winapi-0.3)))) - (inputs - (list openssl)) - (home-page "https://github.com/malept/crypto-hash") - (synopsis "Wrapper for OS-level cryptographic hash functions") - (description "This package provides a wrapper for OS-level cryptographic -hash functions.") - (license license:expat))) - (define-public rust-cssparser-0.29 (package (name "rust-cssparser") diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index 6857ea2075..9d47ebb4fd 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -53,6 +53,7 @@ #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages cpp) + #:use-module (gnu packages crates-crypto) #:use-module (gnu packages crates-io) #:use-module (gnu packages cryptsetup) #:use-module (gnu packages curl) -- cgit v1.2.3 From 55d48b8bb88e4f6973e1fa993fc4739edfe64897 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:05:36 +0200 Subject: gnu: rust-cipher: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-cipher-0.4, rust-cipher-0.3, rust-cipher-0.2): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I52d8ae28b64ad7e81eaea349fdd4ffa045928c5c --- gnu/packages/crates-crypto.scm | 59 +++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 59 ----------------------------------------- gnu/packages/crates-windows.scm | 1 + 3 files changed, 60 insertions(+), 59 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 59cc42eb77..7ad9e2fcc0 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -705,6 +705,65 @@ based on Blake2s.") "The ChaCha family of stream ciphers.") (license (list license:asl2.0 license:expat)))) +(define-public rust-cipher-0.4 + (package + (name "rust-cipher") + (version "0.4.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "cipher" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1b9x9agg67xq5nq879z66ni4l08m6m3hqcshk37d4is4ysd3ngvp")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-blobby" ,rust-blobby-0.3) + ("rust-crypto-common" ,rust-crypto-common-0.1) + ("rust-inout" ,rust-inout-0.1) + ("rust-zeroize" ,rust-zeroize-1)))) + (home-page "https://docs.rs/cipher/") + (synopsis "Traits for describing block ciphers and stream ciphers") + (description "This package provides traits which define the functionality +of block ciphers and stream ciphers. See RustCrypto/block-ciphers and +RustCrypto/stream-ciphers for algorithm implementations which use these +traits.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-cipher-0.3 + (package + (inherit rust-cipher-0.4) + (name "rust-cipher") + (version "0.3.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "cipher" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1dyzsv0c84rgz98d5glnhsz4320wl24x3bq511vnyf0mxir21rby")))) + (arguments + `(#:cargo-inputs + (("rust-blobby" ,rust-blobby-0.3) + ("rust-generic-array" ,rust-generic-array-0.14)))))) + +(define-public rust-cipher-0.2 + (package + (inherit rust-cipher-0.3) + (name "rust-cipher") + (version "0.2.5") + (source + (origin + (method url-fetch) + (uri (crate-uri "cipher" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "00b8imbmdg7zdrbaczlivmdfdy09xldg95wl4iijl15xgjcfgy0j")))))) + (define-public rust-crypto-secretbox-0.1 (package (name "rust-crypto-secretbox") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 269d07cbf6..ea1bac6913 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -11291,65 +11291,6 @@ interoperation between crates in Rust.") (description "This package provides a FLAC decoding library.") (license license:asl2.0))) -(define-public rust-cipher-0.4 - (package - (name "rust-cipher") - (version "0.4.4") - (source - (origin - (method url-fetch) - (uri (crate-uri "cipher" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1b9x9agg67xq5nq879z66ni4l08m6m3hqcshk37d4is4ysd3ngvp")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-blobby" ,rust-blobby-0.3) - ("rust-crypto-common" ,rust-crypto-common-0.1) - ("rust-inout" ,rust-inout-0.1) - ("rust-zeroize" ,rust-zeroize-1)))) - (home-page "https://docs.rs/cipher/") - (synopsis "Traits for describing block ciphers and stream ciphers") - (description "This package provides traits which define the functionality -of block ciphers and stream ciphers. See RustCrypto/block-ciphers and -RustCrypto/stream-ciphers for algorithm implementations which use these -traits.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-cipher-0.3 - (package - (inherit rust-cipher-0.4) - (name "rust-cipher") - (version "0.3.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "cipher" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1dyzsv0c84rgz98d5glnhsz4320wl24x3bq511vnyf0mxir21rby")))) - (arguments - `(#:cargo-inputs - (("rust-blobby" ,rust-blobby-0.3) - ("rust-generic-array" ,rust-generic-array-0.14)))))) - -(define-public rust-cipher-0.2 - (package - (inherit rust-cipher-0.3) - (name "rust-cipher") - (version "0.2.5") - (source - (origin - (method url-fetch) - (uri (crate-uri "cipher" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "00b8imbmdg7zdrbaczlivmdfdy09xldg95wl4iijl15xgjcfgy0j")))))) - (define-public rust-clang-sys-0.29 (package (inherit rust-clang-sys-1) diff --git a/gnu/packages/crates-windows.scm b/gnu/packages/crates-windows.scm index 2131609dff..f03de31fca 100644 --- a/gnu/packages/crates-windows.scm +++ b/gnu/packages/crates-windows.scm @@ -37,6 +37,7 @@ #:use-module (guix gexp) #:use-module (guix utils) #:use-module (gnu packages) + #:use-module (gnu packages crates-crypto) #:use-module (gnu packages crates-io)) (define-public rust-anstyle-wincon-3 -- cgit v1.2.3 From 79b6fa0e01f0c2f990854d7f000e30f73fd0fbaa Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:07:23 +0200 Subject: gnu: rust-curve25519-dalek: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-curve25519-dalek-3, rust-curve25519-dalek-ng-4): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I1c762d754e54a7736278e850fbc81488bdcebc92 --- gnu/packages/crates-crypto.scm | 68 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 68 ------------------------------------------ 2 files changed, 68 insertions(+), 68 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 7ad9e2fcc0..da9021744f 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1116,3 +1116,71 @@ algorithms.") (description "This package provides a wrapper for OS-level cryptographic hash functions.") (license license:expat))) + +(define-public rust-curve25519-dalek-3 + (package + (name "rust-curve25519-dalek") + (version "3.2.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "curve25519-dalek" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0q8v97275cy6v4ly6y2qwv9a8phnpjg9sy8kv7r6mgdjfacxz7qb")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-byteorder" ,rust-byteorder-1) + ("rust-digest" ,rust-digest-0.9) + ("rust-fiat-crypto" ,rust-fiat-crypto-0.1) + ("rust-packed-simd-2" ,rust-packed-simd-2-0.3) + ("rust-rand-core" ,rust-rand-core-0.5) + ("rust-serde" ,rust-serde-1) + ("rust-subtle" ,rust-subtle-2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-bincode" ,rust-bincode-1) + ("rust-criterion" ,rust-criterion-0.3) + ("rust-hex" ,rust-hex-0.4) + ("rust-rand" ,rust-rand-0.7) + ("rust-sha2" ,rust-sha2-0.9)))) + (home-page "https://dalek.rs/curve25519-dalek") + (synopsis "Group operations on ristretto255 and Curve25519") + (description + "This package provides a pure-Rust implementation of group operations on +ristretto255 and Curve25519.") + (license license:bsd-3))) + +(define-public rust-curve25519-dalek-ng-4 + (package + (name "rust-curve25519-dalek-ng") + (version "4.1.1") + (source (origin + (method url-fetch) + (uri (crate-uri "curve25519-dalek-ng" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1j6y6dsqdfp26ifyygibsrm1a8f9f7870i4053xlczil95r9nd8w")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-byteorder" ,rust-byteorder-1) + ("rust-digest" ,rust-digest-0.9) + ("rust-packed-simd-2" ,rust-packed-simd-2-0.3) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-serde" ,rust-serde-1) + ("rust-subtle-ng" ,rust-subtle-ng-2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-bincode" ,rust-bincode-1) + ("rust-criterion" ,rust-criterion-0.3) + ("rust-rand" ,rust-rand-0.8) + ("rust-sha2" ,rust-sha2-0.9)))) + (home-page "https://github.com/zkcrypto/curve25519-dalek-ng") + (synopsis "Implementation of group operations on ristretto255 and Curve25519") + (description + "This package provides a pure-Rust implementation of group operations on +ristretto255 and Curve25519.") + (license license:bsd-3))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index ea1bac6913..66802cb56e 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -17022,74 +17022,6 @@ requests.") "This package provides native bindings to the @code{libcurl} library.") (license license:expat))) -(define-public rust-curve25519-dalek-3 - (package - (name "rust-curve25519-dalek") - (version "3.2.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "curve25519-dalek" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0q8v97275cy6v4ly6y2qwv9a8phnpjg9sy8kv7r6mgdjfacxz7qb")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-byteorder" ,rust-byteorder-1) - ("rust-digest" ,rust-digest-0.9) - ("rust-fiat-crypto" ,rust-fiat-crypto-0.1) - ("rust-packed-simd-2" ,rust-packed-simd-2-0.3) - ("rust-rand-core" ,rust-rand-core-0.5) - ("rust-serde" ,rust-serde-1) - ("rust-subtle" ,rust-subtle-2) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-bincode" ,rust-bincode-1) - ("rust-criterion" ,rust-criterion-0.3) - ("rust-hex" ,rust-hex-0.4) - ("rust-rand" ,rust-rand-0.7) - ("rust-sha2" ,rust-sha2-0.9)))) - (home-page "https://dalek.rs/curve25519-dalek") - (synopsis "Group operations on ristretto255 and Curve25519") - (description - "This package provides a pure-Rust implementation of group operations on -ristretto255 and Curve25519.") - (license license:bsd-3))) - -(define-public rust-curve25519-dalek-ng-4 - (package - (name "rust-curve25519-dalek-ng") - (version "4.1.1") - (source (origin - (method url-fetch) - (uri (crate-uri "curve25519-dalek-ng" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1j6y6dsqdfp26ifyygibsrm1a8f9f7870i4053xlczil95r9nd8w")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-byteorder" ,rust-byteorder-1) - ("rust-digest" ,rust-digest-0.9) - ("rust-packed-simd-2" ,rust-packed-simd-2-0.3) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-serde" ,rust-serde-1) - ("rust-subtle-ng" ,rust-subtle-ng-2) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-bincode" ,rust-bincode-1) - ("rust-criterion" ,rust-criterion-0.3) - ("rust-rand" ,rust-rand-0.8) - ("rust-sha2" ,rust-sha2-0.9)))) - (home-page "https://github.com/zkcrypto/curve25519-dalek-ng") - (synopsis "Implementation of group operations on ristretto255 and Curve25519") - (description - "This package provides a pure-Rust implementation of group operations on -ristretto255 and Curve25519.") - (license license:bsd-3))) - (define-public rust-cust-0.2 (package (name "rust-cust") -- cgit v1.2.3 From 062ca2f7c7fed0f00b23b7f85db17e0f167ba5f5 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:09:53 +0200 Subject: gnu: rust-digest: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-digest-0.10, rust-digest-0.9, rust-digest-0.8, rust-digest-0.7, rust-digest-0.6): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I1b8ea0447a713c055eaf678fc6808a4e0e55d3b4 --- gnu/packages/crates-crypto.scm | 103 +++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 103 ----------------------------------------- gnu/packages/shells.scm | 1 + 3 files changed, 104 insertions(+), 103 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index da9021744f..21bd01777c 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1184,3 +1184,106 @@ ristretto255 and Curve25519.") "This package provides a pure-Rust implementation of group operations on ristretto255 and Curve25519.") (license license:bsd-3))) + +(define-public rust-digest-0.10 + (package + (name "rust-digest") + (version "0.10.7") + (source + (origin + (method url-fetch) + (uri (crate-uri "digest" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "14p2n6ih29x81akj097lvz7wi9b6b9hvls0lwrv7b6xwyy0s5ncy")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-blobby" ,rust-blobby-0.3) + ("rust-block-buffer" ,rust-block-buffer-0.10) + ("rust-const-oid" ,rust-const-oid-0.9) + ("rust-crypto-common" ,rust-crypto-common-0.1) + ("rust-subtle" ,rust-subtle-2)))) + (home-page "https://github.com/RustCrypto/traits") + (synopsis "Traits for cryptographic hash functions") + (description + "Traits for cryptographic hash functions.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-digest-0.9 + (package + (inherit rust-digest-0.10) + (name "rust-digest") + (version "0.9.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "digest" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0rmhvk33rgvd6ll71z8sng91a52rw14p0drjn1da0mqa138n1pfk")))) + (arguments + `(#:cargo-inputs + (("rust-blobby" ,rust-blobby-0.1) + ("rust-generic-array" ,rust-generic-array-0.14)))))) + +(define-public rust-digest-0.8 + (package + (inherit rust-digest-0.9) + (name "rust-digest") + (version "0.8.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "digest" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1madjl27f3kj5ql7kwgvb9c8b7yb7bv7yfgx7rqzj4i3fp4cil7k")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-blobby" ,rust-blobby-0.1) + ("rust-generic-array" ,rust-generic-array-0.12)))))) + +(define-public rust-digest-0.7 + (package + (inherit rust-digest-0.9) + (name "rust-digest") + (version "0.7.6") + (source + (origin + (method url-fetch) + (uri (crate-uri "digest" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "142vdpvkqlqk9s1dcgpqb2wz76n5a39gjnk68p0zkflc58j75c03")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-generic-array" ,rust-generic-array-0.9)))))) + +(define-public rust-digest-0.6 + (package + (name "rust-digest") + (version "0.6.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "digest" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "02mgf8z4hi96w9nl2zb5w3k6lqbhjgv5z8hhyv2b7x7kavqrpcp5")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-generic-array" ,rust-generic-array-0.8)))) + (home-page "https://github.com/RustCrypto/traits") + (synopsis "Traits for cryptographic hash functions") + (description "This package provides traits for cryptographic hash +functions.") + (license (list license:expat license:asl2.0)))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 66802cb56e..1ddbd505aa 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -20061,109 +20061,6 @@ common subsequence. The diff algorithms include Myer's diff and Patience diff.") (license (list license:asl2.0 license:expat)))) -(define-public rust-digest-0.10 - (package - (name "rust-digest") - (version "0.10.7") - (source - (origin - (method url-fetch) - (uri (crate-uri "digest" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "14p2n6ih29x81akj097lvz7wi9b6b9hvls0lwrv7b6xwyy0s5ncy")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-blobby" ,rust-blobby-0.3) - ("rust-block-buffer" ,rust-block-buffer-0.10) - ("rust-const-oid" ,rust-const-oid-0.9) - ("rust-crypto-common" ,rust-crypto-common-0.1) - ("rust-subtle" ,rust-subtle-2)))) - (home-page "https://github.com/RustCrypto/traits") - (synopsis "Traits for cryptographic hash functions") - (description - "Traits for cryptographic hash functions.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-digest-0.9 - (package - (inherit rust-digest-0.10) - (name "rust-digest") - (version "0.9.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "digest" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0rmhvk33rgvd6ll71z8sng91a52rw14p0drjn1da0mqa138n1pfk")))) - (arguments - `(#:cargo-inputs - (("rust-blobby" ,rust-blobby-0.1) - ("rust-generic-array" ,rust-generic-array-0.14)))))) - -(define-public rust-digest-0.8 - (package - (inherit rust-digest-0.9) - (name "rust-digest") - (version "0.8.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "digest" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1madjl27f3kj5ql7kwgvb9c8b7yb7bv7yfgx7rqzj4i3fp4cil7k")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-blobby" ,rust-blobby-0.1) - ("rust-generic-array" ,rust-generic-array-0.12)))))) - -(define-public rust-digest-0.7 - (package - (inherit rust-digest-0.9) - (name "rust-digest") - (version "0.7.6") - (source - (origin - (method url-fetch) - (uri (crate-uri "digest" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "142vdpvkqlqk9s1dcgpqb2wz76n5a39gjnk68p0zkflc58j75c03")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-generic-array" ,rust-generic-array-0.9)))))) - -(define-public rust-digest-0.6 - (package - (name "rust-digest") - (version "0.6.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "digest" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "02mgf8z4hi96w9nl2zb5w3k6lqbhjgv5z8hhyv2b7x7kavqrpcp5")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-generic-array" ,rust-generic-array-0.8)))) - (home-page "https://github.com/RustCrypto/traits") - (synopsis "Traits for cryptographic hash functions") - (description "This package provides traits for cryptographic hash -functions.") - (license (list license:expat license:asl2.0)))) - (define-public rust-directories-5 (package (name "rust-directories") diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm index 770149ebe6..735e34f7a9 100644 --- a/gnu/packages/shells.scm +++ b/gnu/packages/shells.scm @@ -47,6 +47,7 @@ #:use-module (gnu packages bash) #:use-module (gnu packages bison) #:use-module (gnu packages compression) + #:use-module (gnu packages crates-crypto) #:use-module (gnu packages crates-graphics) #:use-module (gnu packages crates-io) #:use-module (gnu packages crates-windows) -- cgit v1.2.3 From c09edce36e253ef6347bfdbc1f8f38d2c99a1626 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:13:14 +0200 Subject: gnu: rust-elliptic-curve: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-elliptic-curve-0.13, rust-elliptic-curve-0.12): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: Ib3feb565f17d1655022eb99b5cd8718d743d1e98 --- gnu/packages/crates-crypto.scm | 79 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 79 ------------------------------------------ 2 files changed, 79 insertions(+), 79 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 21bd01777c..182787863d 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1287,3 +1287,82 @@ ristretto255 and Curve25519.") (description "This package provides traits for cryptographic hash functions.") (license (list license:expat license:asl2.0)))) + +(define-public rust-elliptic-curve-0.13 + (package + (name "rust-elliptic-curve") + (version "0.13.4") + (source (origin + (method url-fetch) + (uri (crate-uri "elliptic-curve" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1rqn7yq9rgfs7r0dcj4phxf9hqmw2alfxa0lciamsbkz6sm1xivm")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-base16ct" ,rust-base16ct-0.2) + ("rust-base64ct" ,rust-base64ct-1) + ("rust-crypto-bigint" ,rust-crypto-bigint-0.5) + ("rust-digest" ,rust-digest-0.10) + ("rust-ff" ,rust-ff-0.13) + ("rust-generic-array" ,rust-generic-array-0.14) + ("rust-group" ,rust-group-0.13) + ("rust-hex-literal" ,rust-hex-literal-0.4) + ("rust-hkdf" ,rust-hkdf-0.12) + ("rust-pem-rfc7468" ,rust-pem-rfc7468-0.7) + ("rust-pkcs8" ,rust-pkcs8-0.10) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-sec1" ,rust-sec1-0.7) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-serdect" ,rust-serdect-0.2) + ("rust-subtle" ,rust-subtle-2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.4) + ("rust-sha2" ,rust-sha2-0.10) + ("rust-sha3" ,rust-sha3-0.10)))) + (home-page + "https://github.com/RustCrypto/traits/tree/master/elliptic-curve") + (synopsis "General purpose Elliptic Curve Cryptography (ECC) support") + (description + "This package provides general purpose @dfn{Elliptic Curve Cryptography} +(ECC) support, including types and traits for representing various elliptic +curve forms, scalars, points, and public/secret keys composed thereof.") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-elliptic-curve-0.12 + (package + (inherit rust-elliptic-curve-0.13) + (name "rust-elliptic-curve") + (version "0.12.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "elliptic-curve" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1lwi108mh6drw5nzqzlz7ighdba5qxdg5vmwwnw1j2ihnn58ifz7")))) + (arguments + `(#:cargo-inputs (("rust-base16ct" ,rust-base16ct-0.1) + ("rust-base64ct" ,rust-base64ct-1) + ("rust-crypto-bigint" ,rust-crypto-bigint-0.4) + ("rust-der" ,rust-der-0.6) + ("rust-digest" ,rust-digest-0.10) + ("rust-ff" ,rust-ff-0.12) + ("rust-generic-array" ,rust-generic-array-0.14) + ("rust-group" ,rust-group-0.12) + ("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-hkdf" ,rust-hkdf-0.12) + ("rust-pem-rfc7468" ,rust-pem-rfc7468-0.6) + ("rust-pkcs8" ,rust-pkcs8-0.9) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-sec1" ,rust-sec1-0.3) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-serdect" ,rust-serdect-0.1) + ("rust-subtle" ,rust-subtle-2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-sha2" ,rust-sha2-0.10) + ("rust-sha3" ,rust-sha3-0.10)))))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 1ddbd505aa..d6d61e4a73 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -21538,85 +21538,6 @@ signing, and verification in pure Rust.") "This package provides a pure-Rust library for parsing ELF files.") (license (list license:expat license:asl2.0)))) -(define-public rust-elliptic-curve-0.13 - (package - (name "rust-elliptic-curve") - (version "0.13.4") - (source (origin - (method url-fetch) - (uri (crate-uri "elliptic-curve" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1rqn7yq9rgfs7r0dcj4phxf9hqmw2alfxa0lciamsbkz6sm1xivm")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-base16ct" ,rust-base16ct-0.2) - ("rust-base64ct" ,rust-base64ct-1) - ("rust-crypto-bigint" ,rust-crypto-bigint-0.5) - ("rust-digest" ,rust-digest-0.10) - ("rust-ff" ,rust-ff-0.13) - ("rust-generic-array" ,rust-generic-array-0.14) - ("rust-group" ,rust-group-0.13) - ("rust-hex-literal" ,rust-hex-literal-0.4) - ("rust-hkdf" ,rust-hkdf-0.12) - ("rust-pem-rfc7468" ,rust-pem-rfc7468-0.7) - ("rust-pkcs8" ,rust-pkcs8-0.10) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-sec1" ,rust-sec1-0.7) - ("rust-serde-json" ,rust-serde-json-1) - ("rust-serdect" ,rust-serdect-0.2) - ("rust-subtle" ,rust-subtle-2) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.4) - ("rust-sha2" ,rust-sha2-0.10) - ("rust-sha3" ,rust-sha3-0.10)))) - (home-page - "https://github.com/RustCrypto/traits/tree/master/elliptic-curve") - (synopsis "General purpose Elliptic Curve Cryptography (ECC) support") - (description - "This package provides general purpose @dfn{Elliptic Curve Cryptography} -(ECC) support, including types and traits for representing various elliptic -curve forms, scalars, points, and public/secret keys composed thereof.") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-elliptic-curve-0.12 - (package - (inherit rust-elliptic-curve-0.13) - (name "rust-elliptic-curve") - (version "0.12.3") - (source - (origin - (method url-fetch) - (uri (crate-uri "elliptic-curve" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1lwi108mh6drw5nzqzlz7ighdba5qxdg5vmwwnw1j2ihnn58ifz7")))) - (arguments - `(#:cargo-inputs (("rust-base16ct" ,rust-base16ct-0.1) - ("rust-base64ct" ,rust-base64ct-1) - ("rust-crypto-bigint" ,rust-crypto-bigint-0.4) - ("rust-der" ,rust-der-0.6) - ("rust-digest" ,rust-digest-0.10) - ("rust-ff" ,rust-ff-0.12) - ("rust-generic-array" ,rust-generic-array-0.14) - ("rust-group" ,rust-group-0.12) - ("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-hkdf" ,rust-hkdf-0.12) - ("rust-pem-rfc7468" ,rust-pem-rfc7468-0.6) - ("rust-pkcs8" ,rust-pkcs8-0.9) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-sec1" ,rust-sec1-0.3) - ("rust-serde-json" ,rust-serde-json-1) - ("rust-serdect" ,rust-serdect-0.1) - ("rust-subtle" ,rust-subtle-2) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-sha2" ,rust-sha2-0.10) - ("rust-sha3" ,rust-sha3-0.10)))))) - (define-public rust-emacs-0.18 (package (name "rust-emacs") -- cgit v1.2.3 From 973bdcd5a45556995b6ea3aca45387854a0368cb Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:15:57 +0200 Subject: gnu: rust-hkdf: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-hkdf-0.12, rust-hkdf-0.11, rust-hkdf-0.10, rust-hkdf-0.9, rust-hkdf-0.8): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: Id6090909f8cedf5659810409a13b4809b941ad47 --- gnu/packages/crates-crypto.scm | 116 +++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 116 ----------------------------------------- 2 files changed, 116 insertions(+), 116 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 182787863d..1f53cb3300 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1366,3 +1366,119 @@ curve forms, scalars, points, and public/secret keys composed thereof.") #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.3) ("rust-sha2" ,rust-sha2-0.10) ("rust-sha3" ,rust-sha3-0.10)))))) + +(define-public rust-hkdf-0.12 + (package + (name "rust-hkdf") + (version "0.12.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "hkdf" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1xxxzcarz151p1b858yn5skmhyrvn8fs4ivx5km3i1kjmnr8wpvv")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-hmac" ,rust-hmac-0.12)) + #:cargo-development-inputs + (("rust-blobby" ,rust-blobby-0.3) + ("rust-hex-literal" ,rust-hex-literal-0.2) + ("rust-sha1" ,rust-sha1-0.10) + ("rust-sha2" ,rust-sha2-0.10)))) + (home-page "https://github.com/RustCrypto/KDFs/") + (synopsis "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)") + (description "This package provides a HMAC-based Extract-and-Expand Key +Derivation Function (HKDF).") + (license (list license:expat license:asl2.0)))) + +(define-public rust-hkdf-0.11 + (package + (inherit rust-hkdf-0.12) + (name "rust-hkdf") + (version "0.11.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "hkdf" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0sw8bz79xqq3bc5dh6nzv084g7va13j3lrqf91c10a2wimbnsw01")))) + (arguments + `(#:cargo-inputs + (("rust-digest" ,rust-digest-0.9) + ("rust-hmac" ,rust-hmac-0.11)) + #:cargo-development-inputs + (("rust-bencher" ,rust-bencher-0.1) + ("rust-blobby" ,rust-blobby-0.3) + ("rust-crypto-tests" ,rust-crypto-tests-0.5) + ("rust-hex" ,rust-hex-0.4) + ("rust-sha-1" ,rust-sha-1-0.9) + ("rust-sha2" ,rust-sha2-0.9)))))) + +(define-public rust-hkdf-0.10 + (package + (inherit rust-hkdf-0.11) + (name "rust-hkdf") + (version "0.10.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "hkdf" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0kwn3scjvv2x8zc6nz3wrnzxp9shpsdxnjqiyv2r65r3kiijzasi")))) + (arguments + `(#:cargo-inputs + (("rust-digest" ,rust-digest-0.9) + ("rust-hmac" ,rust-hmac-0.10)) + #:cargo-development-inputs + (("rust-bencher" ,rust-bencher-0.1) + ("rust-crypto-tests" ,rust-crypto-tests-0.5) + ("rust-hex" ,rust-hex-0.4) + ("rust-sha-1" ,rust-sha-1-0.9) + ("rust-sha2" ,rust-sha2-0.9)))))) + +(define-public rust-hkdf-0.9 + (package + (inherit rust-hkdf-0.11) + (name "rust-hkdf") + (version "0.9.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "hkdf" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1jdvmf8aadk3s0kn9kk3dj00nprjk9glks5f8dm55r43af34j4gy")))) + (arguments + `(#:cargo-inputs + (("rust-digest" ,rust-digest-0.9) + ("rust-hmac" ,rust-hmac-0.8)) + #:cargo-development-inputs + (("rust-bencher" ,rust-bencher-0.1) + ("rust-crypto-tests" ,rust-crypto-tests-0.5) + ("rust-hex" ,rust-hex-0.4) + ("rust-sha-1" ,rust-sha-1-0.9) + ("rust-sha2" ,rust-sha2-0.9)))))) + +(define-public rust-hkdf-0.8 + (package + (inherit rust-hkdf-0.9) + (name "rust-hkdf") + (version "0.8.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "hkdf" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1qzsmqrvcmgnrb109qr2mvsmr5c4psm1702vrpcqnj02c408m81z")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-digest" ,rust-digest-0.8) + ("rust-hmac" ,rust-hmac-0.7)))))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index d6d61e4a73..c193d16986 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -29972,122 +29972,6 @@ float literals. Two functions @code{parse_hexf32} and @code{parse_hexf64} are provided for each type.") (license license:cc0))) -(define-public rust-hkdf-0.12 - (package - (name "rust-hkdf") - (version "0.12.4") - (source - (origin - (method url-fetch) - (uri (crate-uri "hkdf" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1xxxzcarz151p1b858yn5skmhyrvn8fs4ivx5km3i1kjmnr8wpvv")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-hmac" ,rust-hmac-0.12)) - #:cargo-development-inputs - (("rust-blobby" ,rust-blobby-0.3) - ("rust-hex-literal" ,rust-hex-literal-0.2) - ("rust-sha1" ,rust-sha1-0.10) - ("rust-sha2" ,rust-sha2-0.10)))) - (home-page "https://github.com/RustCrypto/KDFs/") - (synopsis "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)") - (description "This package provides a HMAC-based Extract-and-Expand Key -Derivation Function (HKDF).") - (license (list license:expat license:asl2.0)))) - -(define-public rust-hkdf-0.11 - (package - (inherit rust-hkdf-0.12) - (name "rust-hkdf") - (version "0.11.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "hkdf" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0sw8bz79xqq3bc5dh6nzv084g7va13j3lrqf91c10a2wimbnsw01")))) - (arguments - `(#:cargo-inputs - (("rust-digest" ,rust-digest-0.9) - ("rust-hmac" ,rust-hmac-0.11)) - #:cargo-development-inputs - (("rust-bencher" ,rust-bencher-0.1) - ("rust-blobby" ,rust-blobby-0.3) - ("rust-crypto-tests" ,rust-crypto-tests-0.5) - ("rust-hex" ,rust-hex-0.4) - ("rust-sha-1" ,rust-sha-1-0.9) - ("rust-sha2" ,rust-sha2-0.9)))))) - -(define-public rust-hkdf-0.10 - (package - (inherit rust-hkdf-0.11) - (name "rust-hkdf") - (version "0.10.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "hkdf" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0kwn3scjvv2x8zc6nz3wrnzxp9shpsdxnjqiyv2r65r3kiijzasi")))) - (arguments - `(#:cargo-inputs - (("rust-digest" ,rust-digest-0.9) - ("rust-hmac" ,rust-hmac-0.10)) - #:cargo-development-inputs - (("rust-bencher" ,rust-bencher-0.1) - ("rust-crypto-tests" ,rust-crypto-tests-0.5) - ("rust-hex" ,rust-hex-0.4) - ("rust-sha-1" ,rust-sha-1-0.9) - ("rust-sha2" ,rust-sha2-0.9)))))) - -(define-public rust-hkdf-0.9 - (package - (inherit rust-hkdf-0.11) - (name "rust-hkdf") - (version "0.9.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "hkdf" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1jdvmf8aadk3s0kn9kk3dj00nprjk9glks5f8dm55r43af34j4gy")))) - (arguments - `(#:cargo-inputs - (("rust-digest" ,rust-digest-0.9) - ("rust-hmac" ,rust-hmac-0.8)) - #:cargo-development-inputs - (("rust-bencher" ,rust-bencher-0.1) - ("rust-crypto-tests" ,rust-crypto-tests-0.5) - ("rust-hex" ,rust-hex-0.4) - ("rust-sha-1" ,rust-sha-1-0.9) - ("rust-sha2" ,rust-sha2-0.9)))))) - -(define-public rust-hkdf-0.8 - (package - (inherit rust-hkdf-0.9) - (name "rust-hkdf") - (version "0.8.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "hkdf" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1qzsmqrvcmgnrb109qr2mvsmr5c4psm1702vrpcqnj02c408m81z")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-digest" ,rust-digest-0.8) - ("rust-hmac" ,rust-hmac-0.7)))))) - (define-public rust-hmac-0.12 (package (name "rust-hmac") -- cgit v1.2.3 From bc11b82dcfc67b29ba0908c8ba08cd03a0957e8c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:18:33 +0200 Subject: gnu: rust-hmac: Move to (gnu packages crates-graphics). * gnu/packages/crates-io.scm (rust-hmac-0.12, rust-hmac-0.11, rust-hmac-0.10, rust-hmac-0.8, rust-hmac-0.7, rust-hmac-sha1-0.1): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: Ibbe71f46d02871a44305cdb8feebad31b5f38756 --- gnu/packages/crates-crypto.scm | 140 +++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 140 ----------------------------------------- 2 files changed, 140 insertions(+), 140 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 1f53cb3300..eb2ce14493 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1482,3 +1482,143 @@ Derivation Function (HKDF).") #:cargo-inputs (("rust-digest" ,rust-digest-0.8) ("rust-hmac" ,rust-hmac-0.7)))))) + +(define-public rust-hmac-0.12 + (package + (name "rust-hmac") + (version "0.12.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "hmac" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0pmbr069sfg76z7wsssfk5ddcqd9ncp79fyz6zcm6yn115yc6jbc")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs (("rust-digest" ,rust-digest-0.10)))) + (home-page "https://github.com/RustCrypto/MACs") + (synopsis "Generic implementation of Hash-based Message Authentication Code") + (description + "This package provides a generic implementation of @acronym{HMAC, +Hash-based Message Authentication Code}.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-hmac-0.11 + (package + (inherit rust-hmac-0.12) + (name "rust-hmac") + (version "0.11.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "hmac" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "16z61aibdg4di40sqi4ks2s4rz6r29w4sx4gvblfph3yxch26aia")))) + (arguments + `(#:cargo-inputs + (("rust-crypto-mac" ,rust-crypto-mac-0.11) + ("rust-digest" ,rust-digest-0.9)) + #:cargo-development-inputs + (("rust-crypto-mac" ,rust-crypto-mac-0.11) + ("rust-md-5" ,rust-md-5-0.9) + ("rust-sha2" ,rust-sha2-0.9) + ("rust-streebog" ,rust-streebog-0.9)))))) + +(define-public rust-hmac-0.10 + (package + (inherit rust-hmac-0.11) + (name "rust-hmac") + (version "0.10.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "hmac" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "058yxq54x7xn0gk2vy9bl51r32c9z7qlcl2b80bjh3lk3rmiqi61")))) + (arguments + `(#:cargo-inputs + (("rust-crypto-mac" ,rust-crypto-mac-0.10) + ("rust-digest" ,rust-digest-0.9)) + #:cargo-development-inputs + (("rust-crypto-mac" ,rust-crypto-mac-0.10) + ("rust-md-5" ,rust-md-5-0.9) + ("rust-sha2" ,rust-sha2-0.9)))))) + +(define-public rust-hmac-0.8 + (package + (inherit rust-hmac-0.11) + (name "rust-hmac") + (version "0.8.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "hmac" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0h48wc7iysh4xd6ci4prh8bb7nszijrh9w3blaaq8a6cilk8hs0j")))) + (arguments + `(#:cargo-inputs + (("rust-crypto-mac" ,rust-crypto-mac-0.8) + ("rust-digest" ,rust-digest-0.9)) + #:cargo-development-inputs + (("rust-crypto-mac" ,rust-crypto-mac-0.8) + ("rust-md-5" ,rust-md-5-0.9) + ("rust-sha2" ,rust-sha2-0.9)))))) + +(define-public rust-hmac-0.7 + (package + (inherit rust-hmac-0.8) + (name "rust-hmac") + (version "0.7.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "hmac" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "15cnwpssp2n1kdm9x7abir67f2hp3q6rdfj1mcck3hm4rmj5xjsx")))) + (arguments + `(#:cargo-inputs + (("rust-crypto-mac" ,rust-crypto-mac-0.7) + ("rust-digest" ,rust-digest-0.8)) + #:cargo-development-inputs + (("rust-crypto-mac" ,rust-crypto-mac-0.7) + ("rust-md-5" ,rust-md-5-0.8) + ("rust-sha2" ,rust-sha2-0.8)))))) + +(define-public rust-hmac-sha1-0.1 + (package + (name "rust-hmac-sha1") + (version "0.1.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "hmac-sha1" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "08k7aylc0v8x3abmxn3h73dkad3anfq2i94xk2mjrf4linnkycz1")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-sha1" ,rust-sha1-0.2)))) + (home-page "https://github.com/pantsman0/rust-hmac-sha1") + (synopsis "Minimal implementation of HMAC-SHA1 in Rust") + (description + "This package is a pure Rust implementation of the @acronym{HMAC, +Hash-based Message Authentication Code algorithm} for SHA1.") + (license license:bsd-3))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index c193d16986..2f7838e1d7 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -29972,146 +29972,6 @@ float literals. Two functions @code{parse_hexf32} and @code{parse_hexf64} are provided for each type.") (license license:cc0))) -(define-public rust-hmac-0.12 - (package - (name "rust-hmac") - (version "0.12.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "hmac" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0pmbr069sfg76z7wsssfk5ddcqd9ncp79fyz6zcm6yn115yc6jbc")))) - (build-system cargo-build-system) - (arguments - `(#:skip-build? #t - #:cargo-inputs (("rust-digest" ,rust-digest-0.10)))) - (home-page "https://github.com/RustCrypto/MACs") - (synopsis "Generic implementation of Hash-based Message Authentication Code") - (description - "This package provides a generic implementation of @acronym{HMAC, -Hash-based Message Authentication Code}.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-hmac-0.11 - (package - (inherit rust-hmac-0.12) - (name "rust-hmac") - (version "0.11.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "hmac" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "16z61aibdg4di40sqi4ks2s4rz6r29w4sx4gvblfph3yxch26aia")))) - (arguments - `(#:cargo-inputs - (("rust-crypto-mac" ,rust-crypto-mac-0.11) - ("rust-digest" ,rust-digest-0.9)) - #:cargo-development-inputs - (("rust-crypto-mac" ,rust-crypto-mac-0.11) - ("rust-md-5" ,rust-md-5-0.9) - ("rust-sha2" ,rust-sha2-0.9) - ("rust-streebog" ,rust-streebog-0.9)))))) - -(define-public rust-hmac-0.10 - (package - (inherit rust-hmac-0.11) - (name "rust-hmac") - (version "0.10.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "hmac" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "058yxq54x7xn0gk2vy9bl51r32c9z7qlcl2b80bjh3lk3rmiqi61")))) - (arguments - `(#:cargo-inputs - (("rust-crypto-mac" ,rust-crypto-mac-0.10) - ("rust-digest" ,rust-digest-0.9)) - #:cargo-development-inputs - (("rust-crypto-mac" ,rust-crypto-mac-0.10) - ("rust-md-5" ,rust-md-5-0.9) - ("rust-sha2" ,rust-sha2-0.9)))))) - -(define-public rust-hmac-0.8 - (package - (inherit rust-hmac-0.11) - (name "rust-hmac") - (version "0.8.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "hmac" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0h48wc7iysh4xd6ci4prh8bb7nszijrh9w3blaaq8a6cilk8hs0j")))) - (arguments - `(#:cargo-inputs - (("rust-crypto-mac" ,rust-crypto-mac-0.8) - ("rust-digest" ,rust-digest-0.9)) - #:cargo-development-inputs - (("rust-crypto-mac" ,rust-crypto-mac-0.8) - ("rust-md-5" ,rust-md-5-0.9) - ("rust-sha2" ,rust-sha2-0.9)))))) - -(define-public rust-hmac-0.7 - (package - (inherit rust-hmac-0.8) - (name "rust-hmac") - (version "0.7.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "hmac" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "15cnwpssp2n1kdm9x7abir67f2hp3q6rdfj1mcck3hm4rmj5xjsx")))) - (arguments - `(#:cargo-inputs - (("rust-crypto-mac" ,rust-crypto-mac-0.7) - ("rust-digest" ,rust-digest-0.8)) - #:cargo-development-inputs - (("rust-crypto-mac" ,rust-crypto-mac-0.7) - ("rust-md-5" ,rust-md-5-0.8) - ("rust-sha2" ,rust-sha2-0.8)))))) - -(define-public rust-hmac-sha1-0.1 - (package - (name "rust-hmac-sha1") - (version "0.1.3") - (source - (origin - (method url-fetch) - (uri (crate-uri "hmac-sha1" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "08k7aylc0v8x3abmxn3h73dkad3anfq2i94xk2mjrf4linnkycz1")))) - (build-system cargo-build-system) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-sha1" ,rust-sha1-0.2)))) - (home-page "https://github.com/pantsman0/rust-hmac-sha1") - (synopsis "Minimal implementation of HMAC-SHA1 in Rust") - (description - "This package is a pure Rust implementation of the @acronym{HMAC, -Hash-based Message Authentication Code algorithm} for SHA1.") - (license license:bsd-3))) - (define-public rust-hostname-0.3 (package (name "rust-hostname") -- cgit v1.2.3 From 9cbeada4a72e60c97f5c3762db27b84617ebd787 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:21:11 +0200 Subject: gnu: rust-nettle: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-nettle-7, rust-nettle-5, rust-nettle-sys-2): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: Icf17c0f9748ffeead442972c18edeac6a21244ab --- gnu/packages/crates-crypto.scm | 84 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 80 ---------------------------------------- 2 files changed, 84 insertions(+), 80 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index eb2ce14493..68c2f531e3 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -43,6 +43,10 @@ #:use-module (gnu packages crates-io) #:use-module (gnu packages crates-windows) #:use-module (gnu packages crypto) + #:use-module (gnu packages llvm) + #:use-module (gnu packages multiprecision) + #:use-module (gnu packages nettle) + #:use-module (gnu packages pkg-config) #:use-module (gnu packages tls)) ;;; @@ -1622,3 +1626,83 @@ Hash-based Message Authentication Code}.") "This package is a pure Rust implementation of the @acronym{HMAC, Hash-based Message Authentication Code algorithm} for SHA1.") (license license:bsd-3))) + +(define-public rust-nettle-7 + (package + (name "rust-nettle") + (version "7.3.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "nettle" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0dk36l90p79c3xgmrzp8489h8dfaal0jzaid1n8n3cg7xbrwrzdr")))) + (build-system cargo-build-system) + (native-inputs + (list pkg-config)) + (inputs + (list clang gmp nettle)) + (arguments + `(#:cargo-inputs + (("rust-getrandom" ,rust-getrandom-0.2) + ("rust-libc" ,rust-libc-0.2) + ("rust-nettle-sys" ,rust-nettle-sys-2) + ("rust-thiserror" ,rust-thiserror-1) + ("rust-typenum" ,rust-typenum-1)))) + (home-page "https://gitlab.com/sequoia-pgp/nettle-rs") + (synopsis "Rust bindings for the Nettle cryptographic library") + (description "This package provides Rust bindings for the Nettle +cryptographic library.") + (license (list license:lgpl3 license:gpl2 license:gpl3)))) + +(define-public rust-nettle-5 + (package + (inherit rust-nettle-7) + (version "5.0.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "nettle" version)) + (file-name + (string-append (package-name rust-nettle-7) "-" version ".tar.gz")) + (sha256 + (base32 "0zfplqdf3mag8r7lc124hl24vri8yg711jmm8gl1mpwnlhass2n4")) + (patches (search-patches "rust-nettle-disable-vendor.patch")))) + (arguments + `(#:cargo-inputs + (("rust-failure" ,rust-failure-0.1) + ("rust-getrandom" ,rust-getrandom-0.1) + ("rust-libc" ,rust-libc-0.2) + ("rust-nettle-sys" ,rust-nettle-sys-2)))))) + +(define-public rust-nettle-sys-2 + (package + (name "rust-nettle-sys") + (version "2.2.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "nettle-sys" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0wwa7pmxdz7yl9jwybml2kmrj3i87jcn0h0cdc5xl0lhgcs1rs5m")))) + (build-system cargo-build-system) + (native-inputs + (list clang pkg-config)) + (inputs + (list nettle)) + (arguments + `(#:cargo-inputs + (("rust-bindgen" ,rust-bindgen-0.63) + ("rust-cc" ,rust-cc-1) + ("rust-libc" ,rust-libc-0.2) + ("rust-pkg-config" ,rust-pkg-config-0.3) + ("rust-tempfile" ,rust-tempfile-3) + ("rust-vcpkg" ,rust-vcpkg-0.2)))) + (home-page "https://gitlab.com/sequoia-pgp/nettle-sys") + (synopsis "Low-level Rust bindings for the Nettle cryptographic library") + (description "This package provides low-level Rust bindings for the Nettle +cryptographic library.") + (license ;; licensed under either of these, at your option + (list license:lgpl3 license:gpl2 license:gpl3)))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 2f7838e1d7..68a9d18ad4 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -41870,86 +41870,6 @@ types as proposed in RFC 1158.") "This crate provides bindings to netmap, the fast packet I/O framework.") (license license:bsd-2))) -(define-public rust-nettle-7 - (package - (name "rust-nettle") - (version "7.3.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "nettle" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0dk36l90p79c3xgmrzp8489h8dfaal0jzaid1n8n3cg7xbrwrzdr")))) - (build-system cargo-build-system) - (native-inputs - (list pkg-config)) - (inputs - (list clang gmp nettle)) - (arguments - `(#:cargo-inputs - (("rust-getrandom" ,rust-getrandom-0.2) - ("rust-libc" ,rust-libc-0.2) - ("rust-nettle-sys" ,rust-nettle-sys-2) - ("rust-thiserror" ,rust-thiserror-1) - ("rust-typenum" ,rust-typenum-1)))) - (home-page "https://gitlab.com/sequoia-pgp/nettle-rs") - (synopsis "Rust bindings for the Nettle cryptographic library") - (description "This package provides Rust bindings for the Nettle -cryptographic library.") - (license (list license:lgpl3 license:gpl2 license:gpl3)))) - -(define-public rust-nettle-5 - (package - (inherit rust-nettle-7) - (version "5.0.3") - (source - (origin - (method url-fetch) - (uri (crate-uri "nettle" version)) - (file-name - (string-append (package-name rust-nettle-7) "-" version ".tar.gz")) - (sha256 - (base32 "0zfplqdf3mag8r7lc124hl24vri8yg711jmm8gl1mpwnlhass2n4")) - (patches (search-patches "rust-nettle-disable-vendor.patch")))) - (arguments - `(#:cargo-inputs - (("rust-failure" ,rust-failure-0.1) - ("rust-getrandom" ,rust-getrandom-0.1) - ("rust-libc" ,rust-libc-0.2) - ("rust-nettle-sys" ,rust-nettle-sys-2)))))) - -(define-public rust-nettle-sys-2 - (package - (name "rust-nettle-sys") - (version "2.2.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "nettle-sys" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0wwa7pmxdz7yl9jwybml2kmrj3i87jcn0h0cdc5xl0lhgcs1rs5m")))) - (build-system cargo-build-system) - (native-inputs - (list clang pkg-config)) - (inputs - (list nettle)) - (arguments - `(#:cargo-inputs - (("rust-bindgen" ,rust-bindgen-0.63) - ("rust-cc" ,rust-cc-1) - ("rust-libc" ,rust-libc-0.2) - ("rust-pkg-config" ,rust-pkg-config-0.3) - ("rust-tempfile" ,rust-tempfile-3) - ("rust-vcpkg" ,rust-vcpkg-0.2)))) - (home-page "https://gitlab.com/sequoia-pgp/nettle-sys") - (synopsis "Low-level Rust bindings for the Nettle cryptographic library") - (description "This package provides low-level Rust bindings for the Nettle -cryptographic library.") - (license ;; licensed under either of these, at your option - (list license:lgpl3 license:gpl2 license:gpl3)))) - (define-public rust-new-debug-unreachable-1 (package (name "rust-new-debug-unreachable") -- cgit v1.2.3 From 1455678feb509e3f0d9cdc4e32b050207c6782f0 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:23:02 +0200 Subject: gnu: rust-orion-0.17: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-orion-0.17): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: Ic2ee47bffc0992fb9a58fb00b8b1412e9fc2ac83 --- gnu/packages/crates-crypto.scm | 34 ++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 34 ---------------------------------- 2 files changed, 34 insertions(+), 34 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 68c2f531e3..10d7df870f 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1706,3 +1706,37 @@ cryptographic library.") cryptographic library.") (license ;; licensed under either of these, at your option (list license:lgpl3 license:gpl2 license:gpl3)))) + +(define-public rust-orion-0.17 + (package + (name "rust-orion") + (version "0.17.4") + (source (origin + (method url-fetch) + (uri (crate-uri "orion" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0ri0b0vyd9vqwlzlcv0q4i7r9pga23q7nnnvd5z4zycjc9v4mryb")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-ct-codecs" ,rust-ct-codecs-1) + ("rust-fiat-crypto" ,rust-fiat-crypto-0.1) + ("rust-getrandom" ,rust-getrandom-0.2) + ("rust-serde" ,rust-serde-1) + ("rust-subtle" ,rust-subtle-2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-criterion" ,rust-criterion-0.4) + ("rust-hex" ,rust-hex-0.4) + ("rust-quickcheck" ,rust-quickcheck-1) + ("rust-quickcheck-macros" ,rust-quickcheck-macros-1) + ("rust-serde" ,rust-serde-1) + ("rust-serde-json" ,rust-serde-json-1)))) + (home-page "https://github.com/orion-rs/orion") + (synopsis "Pure-Rust crypto") + (description + "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))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 68a9d18ad4..427771367b 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -45673,40 +45673,6 @@ under its new name.") "This package provides a Rust library for parsing orgmode files.") (license license:expat))) -(define-public rust-orion-0.17 - (package - (name "rust-orion") - (version "0.17.4") - (source (origin - (method url-fetch) - (uri (crate-uri "orion" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0ri0b0vyd9vqwlzlcv0q4i7r9pga23q7nnnvd5z4zycjc9v4mryb")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-ct-codecs" ,rust-ct-codecs-1) - ("rust-fiat-crypto" ,rust-fiat-crypto-0.1) - ("rust-getrandom" ,rust-getrandom-0.2) - ("rust-serde" ,rust-serde-1) - ("rust-subtle" ,rust-subtle-2) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-criterion" ,rust-criterion-0.4) - ("rust-hex" ,rust-hex-0.4) - ("rust-quickcheck" ,rust-quickcheck-1) - ("rust-quickcheck-macros" ,rust-quickcheck-macros-1) - ("rust-serde" ,rust-serde-1) - ("rust-serde-json" ,rust-serde-json-1)))) - (home-page "https://github.com/orion-rs/orion") - (synopsis "Pure-Rust crypto") - (description - "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-os-info-3 (package (name "rust-os-info") -- cgit v1.2.3 From a83965f0772065dbbb2ac452e1f56db1a6f84ab5 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:24:21 +0200 Subject: 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(-) (limited to 'gnu/packages/crates-crypto.scm') 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 @@ cryptographic library.") "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 @@ relative path from a provided base directory path to the provided 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") -- cgit v1.2.3 From 5f9041ea061d60cd1a947b529152d2915ef6aa40 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:28:10 +0200 Subject: gnu: rust-pem-rfc7468: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-pem-rfc7468-0.7, rust-pem-rfc7468-0.6, rust-pem-rfc7468-0.3, rust-pem-rfc7468-0.2): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I99497c12f075dc0c6ce8cfc4959b0a54fd511f64 --- gnu/packages/crates-crypto.scm | 72 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 71 ----------------------------------------- 2 files changed, 72 insertions(+), 71 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 16b64b91ff..ea5e525f44 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -9,6 +9,7 @@ ;;; Copyright © 2021 Maxim Cournoyer ;;; Copyright © 2021 Domagoj Stolfa ;;; Copyright © 2022 Nicolas Graves +;;; Copyright © 2022 Attila Lendvai ;;; Copyright © 2022 Aleksandr Vityazev ;;; Copyright © 2022 Ricardo Wurmus ;;; Copyright © 2022 Marius Bakke @@ -1913,3 +1914,74 @@ in pure Rust.") (("rust-hmac" ,rust-hmac-0.10) ("rust-sha-1" ,rust-sha-1-0.9) ("rust-sha2" ,rust-sha2-0.9)))))) + +(define-public rust-pem-rfc7468-0.7 + (package + (name "rust-pem-rfc7468") + (version "0.7.0") + (source (origin + (method url-fetch) + (uri (crate-uri "pem-rfc7468" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "04l4852scl4zdva31c1z6jafbak0ni5pi0j38ml108zwzjdrrcw8")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-base64ct" ,rust-base64ct-1)))) + (home-page "https://github.com/RustCrypto/formats/tree/master/pem-rfc7468") + (synopsis + "PEM Encoding implementing a subset of Privacy-Enhanced Mail encoding") + (description + "This package provides PEM Encoding (RFC 7468) for PKIX, PKCS, and CMS +Structures, implementing a strict subset of the original Privacy-Enhanced Mail +encoding intended specifically for use with cryptographic keys, certificates, +and other messages. It provides a no_std-friendly, constant-time +implementation suitable for use with cryptographic private keys.") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-pem-rfc7468-0.6 + (package + (inherit rust-pem-rfc7468-0.7) + (name "rust-pem-rfc7468") + (version "0.6.0") + (source (origin + (method url-fetch) + (uri (crate-uri "pem-rfc7468" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1b5d8rvc4lgwxhs72m99fnrg0wq7bqh4x4wq0c7501ci7a1mkl94")))) + (arguments + `(#:cargo-inputs (("rust-base64ct" ,rust-base64ct-1)))))) + +(define-public rust-pem-rfc7468-0.3 + (package + (inherit rust-pem-rfc7468-0.7) + (name "rust-pem-rfc7468") + (version "0.3.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "pem-rfc7468" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0c7vrrksg8fqzxb7q4clzl14f0qnqky7jqspjqi4pailiybmvph1")))) + (arguments + `(#:cargo-inputs (("rust-base64ct" ,rust-base64ct-1)))))) + +(define-public rust-pem-rfc7468-0.2 + (package + (inherit rust-pem-rfc7468-0.7) + (name "rust-pem-rfc7468") + (version "0.2.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "pem-rfc7468" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1m1c9jypydzabg4yscplmvff7pdcc8gg4cqg081hnlf03hxkmsc4")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs (("rust-base64ct" ,rust-base64ct-1)))))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 679212e30d..d6aa3511f1 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -47977,77 +47977,6 @@ PEM-encoded data.") #:cargo-development-inputs (("rust-criterion" ,rust-criterion-0.3)))))) -(define-public rust-pem-rfc7468-0.7 - (package - (name "rust-pem-rfc7468") - (version "0.7.0") - (source (origin - (method url-fetch) - (uri (crate-uri "pem-rfc7468" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "04l4852scl4zdva31c1z6jafbak0ni5pi0j38ml108zwzjdrrcw8")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs (("rust-base64ct" ,rust-base64ct-1)))) - (home-page "https://github.com/RustCrypto/formats/tree/master/pem-rfc7468") - (synopsis - "PEM Encoding implementing a subset of Privacy-Enhanced Mail encoding") - (description - "This package provides PEM Encoding (RFC 7468) for PKIX, PKCS, and CMS -Structures, implementing a strict subset of the original Privacy-Enhanced Mail -encoding intended specifically for use with cryptographic keys, certificates, -and other messages. It provides a no_std-friendly, constant-time -implementation suitable for use with cryptographic private keys.") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-pem-rfc7468-0.6 - (package - (inherit rust-pem-rfc7468-0.7) - (name "rust-pem-rfc7468") - (version "0.6.0") - (source (origin - (method url-fetch) - (uri (crate-uri "pem-rfc7468" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1b5d8rvc4lgwxhs72m99fnrg0wq7bqh4x4wq0c7501ci7a1mkl94")))) - (arguments - `(#:cargo-inputs (("rust-base64ct" ,rust-base64ct-1)))))) - -(define-public rust-pem-rfc7468-0.3 - (package - (inherit rust-pem-rfc7468-0.7) - (name "rust-pem-rfc7468") - (version "0.3.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "pem-rfc7468" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0c7vrrksg8fqzxb7q4clzl14f0qnqky7jqspjqi4pailiybmvph1")))) - (arguments - `(#:cargo-inputs (("rust-base64ct" ,rust-base64ct-1)))))) - -(define-public rust-pem-rfc7468-0.2 - (package - (inherit rust-pem-rfc7468-0.7) - (name "rust-pem-rfc7468") - (version "0.2.4") - (source - (origin - (method url-fetch) - (uri (crate-uri "pem-rfc7468" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1m1c9jypydzabg4yscplmvff7pdcc8gg4cqg081hnlf03hxkmsc4")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs (("rust-base64ct" ,rust-base64ct-1)))))) - (define-public rust-pep440-rs-0.3 (package (name "rust-pep440-rs") -- cgit v1.2.3 From cf6b4518fc3bb6a47096d504d9b0aa987909d34b Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:29:40 +0200 Subject: gnu: rust-ppv-lite86-0.2: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-ppv-lite86-0.2): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I89d2b4de44d1dd6f457a266eab0af94d716bb728 --- gnu/packages/crates-crypto.scm | 19 +++++++++++++++++++ gnu/packages/crates-io.scm | 20 -------------------- 2 files changed, 19 insertions(+), 20 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index ea5e525f44..73a02ffdc2 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1985,3 +1985,22 @@ implementation suitable for use with cryptographic private keys.") (arguments `(#:skip-build? #t #:cargo-inputs (("rust-base64ct" ,rust-base64ct-1)))))) + +(define-public rust-ppv-lite86-0.2 + (package + (name "rust-ppv-lite86") + (version "0.2.8") + (source + (origin + (method url-fetch) + (uri (crate-uri "ppv-lite86" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1shj4q7jwj0azssr8cg51dk3kh7d4lg9rmbbz1kbqk971vc5wyi3")))) + (build-system cargo-build-system) + (home-page "https://github.com/cryptocorrosion/cryptocorrosion") + (synopsis "Implementation of the crypto-simd API for x86") + (description "This crate provides an implementation of the crypto-simd API +for x86.") + (license (list license:asl2.0 license:expat)))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index d6aa3511f1..4cae8e96a7 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -50544,26 +50544,6 @@ with alignment, avoid heap allocation, and avoid repetitive calculations.") and should not be relied upon directly.") (license (list license:expat license:asl2.0)))) -(define-public rust-ppv-lite86-0.2 - (package - (name "rust-ppv-lite86") - (version "0.2.8") - (source - (origin - (method url-fetch) - (uri (crate-uri "ppv-lite86" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1shj4q7jwj0azssr8cg51dk3kh7d4lg9rmbbz1kbqk971vc5wyi3")))) - (build-system cargo-build-system) - (home-page "https://github.com/cryptocorrosion/cryptocorrosion") - (synopsis "Implementation of the crypto-simd API for x86") - (description "This crate provides an implementation of the crypto-simd API -for x86.") - (license (list license:asl2.0 - license:expat)))) - (define-public rust-pq-sys-0.4 (package (name "rust-pq-sys") -- cgit v1.2.3 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/packages/crates-crypto.scm') 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 From bc06321eed4b5ed023a99416914da866cfab0341 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:35:27 +0200 Subject: gnu: rust-ring: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-ring-0.17, rust-ring-0.16, rust-ring-0.14, rust-ring-0.13): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I5137593364889a410962e40034a8c95aa627c664 --- gnu/packages/crates-crypto.scm | 827 +++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 822 ---------------------------------------- gnu/packages/crates-tls.scm | 1 + 3 files changed, 828 insertions(+), 822 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index fd3096b2dc..dff09af97d 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -35,19 +35,26 @@ (define-module (gnu packages crates-crypto) #:use-module (guix build-system cargo) #:use-module (guix download) + #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix gexp) #:use-module (guix utils) #:use-module (gnu packages) + #:use-module (gnu packages assembly) + #:use-module (gnu packages base) + #:use-module (gnu packages compression) #:use-module (gnu packages crates-apple) #:use-module (gnu packages crates-io) #:use-module (gnu packages crates-windows) #:use-module (gnu packages crypto) + #:use-module (gnu packages golang) #:use-module (gnu packages llvm) #:use-module (gnu packages multiprecision) #:use-module (gnu packages nettle) + #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) #:use-module (gnu packages tls)) ;;; @@ -2049,3 +2056,823 @@ Digital Signature Algorithm} (ECDSA).") ("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") + (upstream-source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/briansmith/ring") + (commit "2be687bebdf76648ce85109d40c015412e14b0da"))) + (file-name (git-file-name "rust-ring" version)) + (sha256 + (base32 "1i3b7sha8yj990v2s5yk2a5dx3v4x9b8ckzm6bgiyi6wk4vnid69")) + (patches (search-patches "rust-ring-0.17-ring-core.patch"))))) + (origin + (method computed-origin-method) + (file-name (string-append "rust-ring-" version ".tar.gz")) + (sha256 #f) + (uri + (delay + (with-imported-modules '((guix build utils)) + #~(begin + (use-modules (guix build utils)) + (set-path-environment-variable + "PATH" '("bin") + (list #+(canonical-package gzip) + #+(canonical-package tar) + #+perl + #+nasm + #+go + #+clang ; clang-format + #+python-minimal)) + (setenv "HOME" (getcwd)) + (copy-recursively #+upstream-source + (string-append "ring-" #$version)) + (with-directory-excursion (string-append "ring-" #$version) + (begin + ;; It turns out Guix's nasm works just fine here. + (substitute* "build.rs" + (("./target/tools/windows/nasm/nasm") "nasm")) + ;; Files which would be deleted in a snippet: + (delete-file "crypto/curve25519/curve25519_tables.h") + (delete-file "crypto/fipsmodule/ec/p256-nistz-table.h") + (delete-file "crypto/fipsmodule/ec/p256_table.h") + ;; This file causes problems during the 'package phase and + ;; is not distributed with the packaged crate. + (substitute* "Cargo.toml" + (("\"bench\",") "")) + (delete-file "bench/Cargo.toml") + ;; Files to be generated in the sources: + (format #t "Generating the missing files ...~%") + (force-output) + (with-directory-excursion "crypto/curve25519" + (with-output-to-file "curve25519_tables.h" + (lambda _ (invoke "python3" "make_curve25519_tables.py"))) + ;; As seen in git between 0.17.0 and 0.17.1. + (substitute* "curve25519_tables.h" + (("static const uint8_t k25519Precomp") + "const uint8_t k25519Precomp"))) + (with-directory-excursion "crypto/fipsmodule/ec" + (invoke "go" "run" "make_tables.go") + (invoke "go" "run" "make_ec_scalar_base_mult_tests.go")) + (format #t "Generating the pregenerated files ...~%") + (force-output) + (mkdir-p "pregenerated/tmp/ring_core_generated") + + ;; We generate all the files which upstream would normally be + ;; generate by using 'RING_PREGENERATE_ASM=1 cargo build + ;; --target-dir=target/pregenerate_asm' in order to not include + ;; a dependency on cargo when generating the sources. + (define (prefix script) + (string-append + "pregenerated/" + (string-drop-right + (string-drop script + (string-index-right script #\/)) 3))) + + (for-each + (lambda (script) + (invoke "perl" script "ios64" + (string-append (prefix script) "-ios64.S")) + (invoke "perl" script "linux64" + (string-append (prefix script) "-linux64.S")) + (invoke "perl" script "win64" + (string-append (prefix script) "-win64.S"))) + '("crypto/fipsmodule/aes/asm/aesv8-armx.pl" + "crypto/fipsmodule/modes/asm/ghashv8-armx.pl" + "crypto/chacha/asm/chacha-armv8.pl" + "crypto/cipher_extra/asm/chacha20_poly1305_armv8.pl" + "crypto/fipsmodule/aes/asm/vpaes-armv8.pl" + "crypto/fipsmodule/bn/asm/armv8-mont.pl" + "crypto/fipsmodule/ec/asm/p256-armv8-asm.pl" + "crypto/fipsmodule/modes/asm/ghash-neon-armv8.pl" + "crypto/fipsmodule/sha/asm/sha512-armv8.pl")) + + (for-each + (lambda (arch) + (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-armv8.pl" + arch (string-append + "pregenerated/sha256-armv8-" arch ".S"))) + '("ios64" "linux64" "win64")) + + (for-each + (lambda (script) + (invoke "perl" script "linux32" + (string-append (prefix script) "-linux32.S"))) + '("crypto/fipsmodule/aes/asm/aesv8-armx.pl" + "crypto/fipsmodule/modes/asm/ghashv8-armx.pl" + "crypto/fipsmodule/aes/asm/bsaes-armv7.pl" + "crypto/fipsmodule/aes/asm/vpaes-armv7.pl" + "crypto/fipsmodule/bn/asm/armv4-mont.pl" + "crypto/chacha/asm/chacha-armv4.pl" + "crypto/fipsmodule/modes/asm/ghash-armv4.pl" + "crypto/fipsmodule/sha/asm/sha256-armv4.pl" + "crypto/fipsmodule/sha/asm/sha512-armv4.pl")) + + (for-each + (lambda (script) + (invoke "perl" script "elf" + "-fPIC" "-DOPENSSL_IA32_SSE2" + (string-append (prefix script) "-elf.S")) + (invoke "perl" script "win32n" + "-fPIC" "-DOPENSSL_IA32_SSE2" + (string-append + "pregenerated/tmp/" + (string-drop (prefix script) 13) "-win32n.asm"))) + '("crypto/fipsmodule/aes/asm/aesni-x86.pl" + "crypto/fipsmodule/aes/asm/vpaes-x86.pl" + "crypto/fipsmodule/bn/asm/x86-mont.pl" + "crypto/chacha/asm/chacha-x86.pl" + "crypto/fipsmodule/modes/asm/ghash-x86.pl")) + + (for-each + (lambda (script) + (invoke "perl" script "elf" + (string-append (prefix script) "-elf.S")) + (invoke "perl" script "macosx" + (string-append (prefix script) "-macosx.S")) + (invoke "perl" script "nasm" + (string-append + "pregenerated/tmp/" + (string-drop (prefix script) 13) "-nasm.asm"))) + '("crypto/chacha/asm/chacha-x86_64.pl" + "crypto/fipsmodule/aes/asm/aesni-x86_64.pl" + "crypto/fipsmodule/aes/asm/vpaes-x86_64.pl" + "crypto/fipsmodule/bn/asm/x86_64-mont.pl" + "crypto/fipsmodule/bn/asm/x86_64-mont5.pl" + "crypto/fipsmodule/ec/asm/p256-x86_64-asm.pl" + "crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl" + "crypto/fipsmodule/modes/asm/ghash-x86_64.pl" + "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" + "crypto/cipher_extra/asm/chacha20_poly1305_x86_64.pl")) + + (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" + "elf" "pregenerated/sha256-x86_64-elf.S") + + (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" + "macosx" "pregenerated/sha256-x86_64-macosx.S") + + (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" + "nasm" "pregenerated/tmp/sha256-x86_64-nasm.asm") + + ;; TODO: Extract ring_core_generated/prefix_symbols_nasm.inc + ;; and ring_core_generated/prefix_symbols_asm.h from build.rs. + + (for-each + (lambda (script) + (invoke "nasm" "-o" (string-append (prefix script) "o") + "-f" "win32" "-i" "include/" "-i" "pregenerated/tmp/" + "-Xgnu" "-gcv8" script)) + (find-files "pregenerated/tmp" "win32n\\.asm")) + + (for-each + (lambda (script) + (invoke "nasm" "-o" (string-append (prefix script) "o") + "-f" "win64" "-i" "include/" "-i" "pregenerated/tmp/" + "-Xgnu" "-gcv8" script)) + (find-files "pregenerated/tmp" "nasm\\.asm")) + + (format #t "Creating the tarball ...~%") + (force-output) + ;; The other option is to use cargo package --allow-dirty + (with-directory-excursion "../" + (invoke "tar" "czf" #$output + ;; avoid non-determinism in the archive + "--sort=name" "--mtime=@0" + "--owner=root:0" "--group=root:0" + (string-append "ring-" #$version)))))))))))) + +(define-public rust-ring-0.17 + (package + (name "rust-ring") + (version "0.17.7") + (source rust-ring-0.17-sources) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-cc" ,rust-cc-1) + ("rust-getrandom" ,rust-getrandom-0.2) + ("rust-libc" ,rust-libc-0.2) + ("rust-spin" ,rust-spin-0.9) + ("rust-untrusted" ,rust-untrusted-0.9) + ("rust-windows-sys" ,rust-windows-sys-0.48)) + #:cargo-development-inputs + (("rust-libc" ,rust-libc-0.2) + ("rust-wasm-bindgen-test" ,rust-wasm-bindgen-test-0.3)))) + (home-page "https://github.com/briansmith/ring") + (synopsis "Safe, fast, small crypto using Rust") + (description "This package provided safe, fast, small crypto using Rust.") + (license (list license:isc license:openssl)))) + +(define rust-ring-0.16-sources + (let* ((version "0.16.20") + (upstream-source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/briansmith/ring") + (commit "9cc0d45f4d8521f467bb3a621e74b1535e118188"))) + (file-name (git-file-name "rust-ring" version)) + (sha256 + (base32 "1aps05i5308ka03968glnnqr4kdkk2x4ghlg5vrqhl78jm6ivvby"))))) + (origin + (method computed-origin-method) + (file-name (string-append "rust-ring-" version ".tar.gz")) + (sha256 #f) + (uri + (delay + (with-imported-modules '((guix build utils)) + #~(begin + (use-modules (guix build utils)) + (set-path-environment-variable + "PATH" '("bin") + (list #+(canonical-package gzip) + #+(canonical-package tar) + #+perl + #+nasm + #+go + #+clang ; clang-format + #+python2-minimal)) + (setenv "HOME" (getcwd)) + (copy-recursively #+upstream-source + (string-append "ring-" #$version)) + (with-directory-excursion (string-append "ring-" #$version) + (begin + ;; It turns out Guix's nasm works just fine here. + (substitute* "build.rs" + (("./target/tools/nasm") "nasm")) + ;; Files which would be deleted in a snippet: + (delete-file "crypto/curve25519/curve25519_tables.h") + (delete-file "crypto/fipsmodule/ec/ecp_nistz256_table.inl") + ;; Files to be generated in the sources: + (format #t "Generating the missing files ...~%") + (force-output) + (with-directory-excursion "crypto/curve25519" + (with-output-to-file "curve25519_tables.h" + (lambda _ (invoke "python" "make_curve25519_tables.py")))) + (with-directory-excursion "crypto/fipsmodule/ec" + (with-output-to-file "ecp_nistz256_table.inl" + (lambda _ (invoke "go" "run" "make_p256-x86_64-table.go")))) + (format #t "Generating the pregenerated files ...~%") + (force-output) + (mkdir-p "pregenerated/tmp") + + ;; We generate all the files which upstream would normally be + ;; generate by using '(cd pregenerate_asm && cargo clean && + ;; cargo build) ./pregenerate_asm/target/debug/pregenerate_asm' + ;; in order to not include a dependency on cargo when + ;; generating the sources. + (define (prefix script) + (string-append + "pregenerated/" + (string-drop-right + (string-drop script + (string-index-right script #\/)) 3))) + + (for-each + (lambda (script) + (invoke "perl" script "elf" + (string-append (prefix script) "-elf.S")) + (invoke "perl" script "macosx" + (string-append (prefix script) "-macosx.S")) + (invoke "perl" script "nasm" + (string-append + "pregenerated/tmp/" + (string-drop (prefix script) 13) "-nasm.asm"))) + '("crypto/fipsmodule/aes/asm/aesni-x86_64.pl" + "crypto/fipsmodule/aes/asm/vpaes-x86_64.pl" + "crypto/fipsmodule/bn/asm/x86_64-mont.pl" + "crypto/fipsmodule/bn/asm/x86_64-mont5.pl" + "crypto/chacha/asm/chacha-x86_64.pl" + "crypto/fipsmodule/ec/asm/p256-x86_64-asm.pl" + "crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl" + "crypto/fipsmodule/modes/asm/ghash-x86_64.pl" + "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" + "crypto/cipher_extra/asm/chacha20_poly1305_x86_64.pl")) + + (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" + "elf" "pregenerated/sha256-x86_64-elf.S") + + (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" + "macosx" "pregenerated/sha256-x86_64-macosx.S") + + (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" + "nasm" "pregenerated/tmp/sha256-x86_64-nasm.asm") + + (for-each + (lambda (script) + (invoke "nasm" "-o" (string-append (prefix script) "obj") + "-f" "win64" "-Xgnu" "-gcv8" script)) + (find-files "pregenerated/tmp" "\\.asm")) + + (for-each + (lambda (script) + (invoke "perl" script "ios64" + (string-append (prefix script) "-ios64.S")) + (invoke "perl" script "linux64" + (string-append (prefix script) "-linux64.S"))) + '("crypto/fipsmodule/aes/asm/aesv8-armx.pl" + "crypto/fipsmodule/modes/asm/ghashv8-armx.pl" + "crypto/fipsmodule/aes/asm/vpaes-armv8.pl" + "crypto/fipsmodule/bn/asm/armv8-mont.pl" + "crypto/chacha/asm/chacha-armv8.pl" + "crypto/fipsmodule/ec/asm/ecp_nistz256-armv8.pl" + "crypto/fipsmodule/modes/asm/ghash-neon-armv8.pl" + "crypto/fipsmodule/sha/asm/sha512-armv8.pl")) + + (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-armv8.pl" + "ios64" "pregenerated/sha256-armv8-ios64.S") + + (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-armv8.pl" + "linux64" "pregenerated/sha256-armv8-linux64.S") + + (for-each + (lambda (script) + (invoke "perl" script "elf" + "-fPIC" "-DOPENSSL_IA32_SSE2" + (string-append (prefix script) "-elf.S")) + (invoke "perl" script "macosx" + "-fPIC" "-DOPENSSL_IA32_SSE2" + (string-append (prefix script) "-macosx.S")) + (invoke "perl" script "win32n" + "-fPIC" "-DOPENSSL_IA32_SSE2" + (string-append + "pregenerated/tmp/" + (string-drop (prefix script) 13) "-win32n.asm"))) + '("crypto/fipsmodule/aes/asm/aesni-x86.pl" + "crypto/fipsmodule/aes/asm/vpaes-x86.pl" + "crypto/fipsmodule/bn/asm/x86-mont.pl" + "crypto/chacha/asm/chacha-x86.pl" + "crypto/fipsmodule/ec/asm/ecp_nistz256-x86.pl" + "crypto/fipsmodule/modes/asm/ghash-x86.pl")) + + (for-each + (lambda (script) + (invoke "nasm" "-o" (string-append (prefix script) "obj") + "-f" "win32" "-Xgnu" "-gcv8" script)) + (find-files "pregenerated/tmp" "-win32n\\.asm")) + + (for-each + (lambda (script) + (invoke "perl" script "ios32" + (string-append (prefix script) "-ios32.S")) + (invoke "perl" script "linux32" + (string-append (prefix script) "-linux32.S"))) + '("crypto/fipsmodule/aes/asm/aesv8-armx.pl" + "crypto/fipsmodule/modes/asm/ghashv8-armx.pl" + "crypto/fipsmodule/aes/asm/bsaes-armv7.pl" + "crypto/fipsmodule/aes/asm/vpaes-armv7.pl" + "crypto/fipsmodule/bn/asm/armv4-mont.pl" + "crypto/chacha/asm/chacha-armv4.pl" + "crypto/fipsmodule/ec/asm/ecp_nistz256-armv4.pl" + "crypto/fipsmodule/modes/asm/ghash-armv4.pl" + "crypto/fipsmodule/sha/asm/sha256-armv4.pl" + "crypto/fipsmodule/sha/asm/sha512-armv4.pl")) + + (format #t "Creating the tarball ...~%") + (force-output) + ;; The other option is to use cargo package --allow-dirty + (with-directory-excursion "../" + (invoke "tar" "czf" #$output + ;; avoid non-determinism in the archive + "--sort=name" "--mtime=@0" + "--owner=root:0" "--group=root:0" + (string-append "ring-" #$version)))))))))))) + +(define-public rust-ring-0.16 + (package + (inherit rust-ring-0.17) + (name "rust-ring") + (version "0.16.20") + (source rust-ring-0.16-sources) + (arguments + `(#:cargo-inputs + (("rust-libc" ,rust-libc-0.2) + ("rust-once-cell" ,rust-once-cell-1) + ("rust-spin" ,rust-spin-0.5) + ("rust-untrusted" ,rust-untrusted-0.7) + ("rust-web-sys" ,rust-web-sys-0.3) + ("rust-winapi" ,rust-winapi-0.3) + ;; build dependencies + ("rust-cc" ,rust-cc-1)) + #:cargo-development-inputs + (("rust-libc" ,rust-libc-0.2) + ("rust-wasm-bindgen-test" ,rust-wasm-bindgen-test-0.3)))) + ;; For a mostly complete list of supported systems see: + ;; https://github.com/briansmith/ring/blob/main/.github/workflows/ci.yml#L170 + (supported-systems (list "aarch64-linux" "armhf-linux" + "i686-linux" "x86_64-linux")))) + +(define rust-ring-0.14-sources + (let* ((version "0.14.6") + (upstream-source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/briansmith/ring") + (commit "ef85df478152aa3fe06c811309379efa08f8a529"))) + (file-name (git-file-name "rust-ring" version)) + (sha256 + (base32 "12dgw2spvmkdypgzymw3bxpv4bbpnlq8s10sdggral31x597n6xx"))))) + (origin + (method computed-origin-method) + (file-name (string-append "rust-ring-" version ".tar.gz")) + (sha256 #f) + (uri + (delay + (with-imported-modules '((guix build utils)) + #~(begin + (use-modules (guix build utils)) + (set-path-environment-variable + "PATH" '("bin") + (list #+(canonical-package gzip) + #+(canonical-package tar) + #+perl + #+yasm + #+go + #+clang ; clang-format + #+python2-minimal)) + (setenv "HOME" (getcwd)) + (copy-recursively #+upstream-source + (string-append "ring-" #$version)) + (with-directory-excursion (string-append "ring-" #$version) + (begin + ;; It turns out Guix's yasm works just fine here. + (substitute* "build.rs" + (("yasm.exe") "yasm")) + ;; Files which would be deleted in a snippet: + (delete-file "third_party/fiat/curve25519_tables.h") + (delete-file "crypto/fipsmodule/ec/ecp_nistz256_table.inl") + (delete-file "util/ar/testdata/linux/libsample.a") + (delete-file "util/ar/testdata/mac/libsample.a") + (delete-file "util/ar/testdata/windows/sample.lib") + ;; Fix the doc tests. + (substitute* "src/ec/curve25519/ed25519/verification.rs" + ((";;") ";")) + ;; Files to be generated in the sources: + (format #t "Generating the missing files ...~%") + (force-output) + (with-directory-excursion "third_party/fiat" + (with-output-to-file "curve25519_tables.h" + (lambda _ (invoke "python" "make_curve25519_tables.py")))) + (with-directory-excursion "crypto/fipsmodule/ec" + ;; This one seems to have been changed elsewhere in the + ;; sources but not in the script generating the definition. + (substitute* "make_p256-x86_64-table.go" + (("ecp_nistz256_precomputed") "GFp_nistz256_precomputed")) + (with-output-to-file "ecp_nistz256_table.inl" + (lambda _ (invoke "go" "run" "make_p256-x86_64-table.go")))) + (format #t "Generating the pregenerated files ...~%") + (force-output) + (mkdir-p "pregenerated/tmp") + + ;; We generate all the files which upstream would normally be + ;; generate by using '(cd pregenerate_asm && cargo clean && + ;; cargo build) ./pregenerate_asm/target/debug/pregenerate_asm' + ;; in order to not include a dependency on cargo when + ;; generating the sources. + (define (prefix script) + (string-append + "pregenerated/" + (string-drop-right + (string-drop script + (string-index-right script #\/)) 3))) + + (for-each + (lambda (script) + (invoke "perl" script "elf" + (string-append (prefix script) "-elf.S")) + (invoke "perl" script "macosx" + (string-append (prefix script) "-macosx.S")) + (invoke "perl" script "nasm" + (string-append + "pregenerated/tmp/" + (string-drop (prefix script) 13) "-nasm.asm"))) + '("crypto/fipsmodule/aes/asm/aes-x86_64.pl" + "crypto/fipsmodule/aes/asm/aesni-x86_64.pl" + "crypto/fipsmodule/aes/asm/vpaes-x86_64.pl" + "crypto/fipsmodule/bn/asm/x86_64-mont.pl" + "crypto/fipsmodule/bn/asm/x86_64-mont5.pl" + "crypto/chacha/asm/chacha-x86_64.pl" + "crypto/fipsmodule/ec/asm/p256-x86_64-asm.pl" + "crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl" + "crypto/fipsmodule/modes/asm/ghash-x86_64.pl" + "crypto/poly1305/asm/poly1305-x86_64.pl" + "crypto/fipsmodule/sha/asm/sha512-x86_64.pl")) + + (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" + "elf" "pregenerated/sha256-x86_64-elf.S") + + (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" + "macosx" "pregenerated/sha256-x86_64-macosx.S") + + (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" + "nasm" "pregenerated/tmp/sha256-x86_64-nasm.asm") + + (for-each + (lambda (script) + (invoke "yasm" "-X" "vc" "--dformat=cv8" + "--oformat=win64" "--machine=amd64" "-o" + (string-append (prefix script) "obj") script)) + (find-files "pregenerated/tmp" "\\.asm")) + + (for-each + (lambda (script) + (invoke "perl" script "ios64" + (string-append (prefix script) "-ios64.S")) + (invoke "perl" script "linux64" + (string-append (prefix script) "-linux64.S"))) + '("crypto/fipsmodule/aes/asm/aesv8-armx.pl" + "crypto/fipsmodule/modes/asm/ghashv8-armx.pl" + "crypto/fipsmodule/bn/asm/armv8-mont.pl" + "crypto/chacha/asm/chacha-armv8.pl" + "crypto/fipsmodule/ec/asm/ecp_nistz256-armv8.pl" + "crypto/poly1305/asm/poly1305-armv8.pl" + "crypto/fipsmodule/sha/asm/sha512-armv8.pl")) + + (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-armv8.pl" + "ios64" "pregenerated/sha256-armv8-ios64.S") + + (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-armv8.pl" + "linux64" "pregenerated/sha256-armv8-linux64.S") + + (for-each + (lambda (script) + (invoke "perl" script "elf" + "-fPIC" "-DOPENSSL_IA32_SSE2" + (string-append (prefix script) "-elf.S")) + (invoke "perl" script "macosx" + "-fPIC" "-DOPENSSL_IA32_SSE2" + (string-append (prefix script) "-macosx.S")) + (invoke "perl" script "win32n" + "-fPIC" "-DOPENSSL_IA32_SSE2" + (string-append + "pregenerated/tmp/" + (string-drop (prefix script) 13) "-win32n.asm"))) + '("crypto/fipsmodule/aes/asm/aes-586.pl" + "crypto/fipsmodule/aes/asm/aesni-x86.pl" + "crypto/fipsmodule/aes/asm/vpaes-x86.pl" + "crypto/fipsmodule/bn/asm/x86-mont.pl" + "crypto/chacha/asm/chacha-x86.pl" + "crypto/fipsmodule/ec/asm/ecp_nistz256-x86.pl" + "crypto/fipsmodule/modes/asm/ghash-x86.pl" + "crypto/poly1305/asm/poly1305-x86.pl" + "crypto/fipsmodule/sha/asm/sha256-586.pl" + "crypto/fipsmodule/sha/asm/sha512-586.pl")) + + (for-each + (lambda (script) + (invoke "yasm" "-X" "vc" "--dformat=cv8" + "--oformat=win32" "--machine=x86" "-o" + (string-append (prefix script) "obj") script)) + (find-files "pregenerated/tmp" "-win32n\\.asm")) + + (for-each + (lambda (script) + (invoke "perl" script "ios32" + (string-append (prefix script) "-ios32.S")) + (invoke "perl" script "linux32" + (string-append (prefix script) "-linux32.S"))) + '("crypto/fipsmodule/aes/asm/aesv8-armx.pl" + "crypto/fipsmodule/modes/asm/ghashv8-armx.pl" + "crypto/fipsmodule/aes/asm/aes-armv4.pl" + "crypto/fipsmodule/aes/asm/bsaes-armv7.pl" + "crypto/fipsmodule/bn/asm/armv4-mont.pl" + "crypto/chacha/asm/chacha-armv4.pl" + "crypto/fipsmodule/ec/asm/ecp_nistz256-armv4.pl" + "crypto/fipsmodule/modes/asm/ghash-armv4.pl" + "crypto/poly1305/asm/poly1305-armv4.pl" + "crypto/fipsmodule/sha/asm/sha256-armv4.pl" + "crypto/fipsmodule/sha/asm/sha512-armv4.pl")) + + (format #t "Creating the tarball ...~%") + (force-output) + ;; The other option is to use cargo package --allow-dirty + (with-directory-excursion "../" + (invoke "tar" "czf" #$output + ;; avoid non-determinism in the archive + "--sort=name" "--mtime=@0" + "--owner=root:0" "--group=root:0" + (string-append "ring-" #$version)))))))))))) +(define-public rust-ring-0.14 + (package + (inherit rust-ring-0.16) + (name "rust-ring") + (version "0.14.6") + (source rust-ring-0.14-sources) + (arguments + `(#:cargo-inputs + (("rust-cc" ,rust-cc-1) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-libc" ,rust-libc-0.2) + ("rust-spin" ,rust-spin-0.5) + ("rust-untrusted" ,rust-untrusted-0.6) + ("rust-winapi" ,rust-winapi-0.3)))))) + +(define rust-ring-0.13-sources + (let* ((version "0.13.5") + (upstream-source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/briansmith/ring") + (commit "704e4216a397bd830479bcd6d7dd67fc62cdbe67"))) + (file-name (git-file-name "rust-ring" version)) + (sha256 + (base32 "0iqwf8i2i0a46ymrqss1ngbd2lqphk0mw74c65pxb8skyn2n7csi"))))) + (origin + (method computed-origin-method) + (file-name (string-append "rust-ring-" version ".tar.gz")) + (sha256 #f) + (uri + (delay + (with-imported-modules '((guix build utils)) + #~(begin + (use-modules (guix build utils)) + (set-path-environment-variable + "PATH" '("bin") + (list #+(canonical-package gzip) + #+(canonical-package tar) + #+perl + #+yasm + #+go + #+clang ; clang-format + #+python2-minimal)) + (setenv "HOME" (getcwd)) + (copy-recursively #+upstream-source + (string-append "ring-" #$version)) + (with-directory-excursion (string-append "ring-" #$version) + (begin + ;; Make some adjustments for newer versions of rust + ;; error: `...` range patterns are deprecated + (substitute* "src/digest/sha1.rs" + (("0\\.\\.\\.") "0..=")) + (substitute* "build.rs" + (("out_dir\\.clone\\(\\)") "out_dir") + (("libs\\.into_iter\\(\\)") "libs.iter()")) + ;; It turns out Guix's yasm works just fine here. + (substitute* "build.rs" + (("yasm.exe") "yasm")) + ;; Files which would be deleted in a snippet: + (delete-file "third_party/fiat/curve25519_tables.h") + (delete-file "crypto/fipsmodule/ec/ecp_nistz256_table.inl") + ;; Files to be generated in the sources: + (format #t "Generating the missing files ...~%") + (force-output) + (with-directory-excursion "third_party/fiat" + (with-output-to-file "curve25519_tables.h" + (lambda _ (invoke "python" "make_curve25519_tables.py")))) + (with-directory-excursion "crypto/fipsmodule/ec" + ;; This one seems to have been changed elsewhere in the + ;; sources but not in the script generating the definition. + (substitute* "make_p256-x86_64-table.go" + (("ecp_nistz256_precomputed") "GFp_nistz256_precomputed")) + (with-output-to-file "ecp_nistz256_table.inl" + (lambda _ (invoke "go" "run" "make_p256-x86_64-table.go")))) + (format #t "Generating the pregenerated files ...~%") + (force-output) + (mkdir-p "pregenerated/tmp") + + ;; We generate all the files which upstream would normally be + ;; generate by using '(cd pregenerate_asm && cargo clean && + ;; cargo build) ./pregenerate_asm/target/debug/pregenerate_asm' + ;; in order to not include a dependency on cargo when + ;; generating the sources. + (define (prefix script) + (string-append + "pregenerated/" + (string-drop-right + (string-drop script + (string-index-right script #\/)) 3))) + + (for-each + (lambda (script) + (invoke "perl" script "elf" + (string-append (prefix script) "-elf.S")) + (invoke "perl" script "macosx" + (string-append (prefix script) "-macosx.S")) + (invoke "perl" script "nasm" + (string-append + "pregenerated/tmp/" + (string-drop (prefix script) 13) "-nasm.asm"))) + '("crypto/fipsmodule/aes/asm/aes-x86_64.pl" + "crypto/fipsmodule/aes/asm/aesni-x86_64.pl" + "crypto/fipsmodule/aes/asm/vpaes-x86_64.pl" + "crypto/fipsmodule/bn/asm/x86_64-mont.pl" + "crypto/fipsmodule/bn/asm/x86_64-mont5.pl" + "crypto/chacha/asm/chacha-x86_64.pl" + "crypto/fipsmodule/ec/asm/p256-x86_64-asm.pl" + "crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl" + "crypto/fipsmodule/modes/asm/ghash-x86_64.pl" + "crypto/poly1305/asm/poly1305-x86_64.pl" + "crypto/fipsmodule/sha/asm/sha512-x86_64.pl")) + + (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" + "elf" "pregenerated/sha256-x86_64-elf.S") + + (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" + "macosx" "pregenerated/sha256-x86_64-macosx.S") + + (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" + "nasm" "pregenerated/tmp/sha256-x86_64-nasm.asm") + + (for-each + (lambda (script) + (invoke "yasm" "-X" "vc" "--dformat=cv8" + "--oformat=win64" "--machine=amd64" "-o" + (string-append (prefix script) "obj") script)) + (find-files "pregenerated/tmp" "\\.asm")) + + (for-each + (lambda (script) + (invoke "perl" script "ios64" + (string-append (prefix script) "-ios64.S")) + (invoke "perl" script "linux64" + (string-append (prefix script) "-linux64.S"))) + '("crypto/fipsmodule/aes/asm/aesv8-armx.pl" + "crypto/fipsmodule/modes/asm/ghashv8-armx.pl" + "crypto/fipsmodule/bn/asm/armv8-mont.pl" + "crypto/chacha/asm/chacha-armv8.pl" + "crypto/fipsmodule/ec/asm/ecp_nistz256-armv8.pl" + "crypto/poly1305/asm/poly1305-armv8.pl" + "crypto/fipsmodule/sha/asm/sha512-armv8.pl")) + + (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-armv8.pl" + "ios64" "pregenerated/sha256-armv8-ios64.S") + + (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-armv8.pl" + "linux64" "pregenerated/sha256-armv8-linux64.S") + + (for-each + (lambda (script) + (invoke "perl" script "elf" + "-fPIC" "-DOPENSSL_IA32_SSE2" + (string-append (prefix script) "-elf.S")) + (invoke "perl" script "macosx" + "-fPIC" "-DOPENSSL_IA32_SSE2" + (string-append (prefix script) "-macosx.S")) + (invoke "perl" script "win32n" + "-fPIC" "-DOPENSSL_IA32_SSE2" + (string-append + "pregenerated/tmp/" + (string-drop (prefix script) 13) "-win32n.asm"))) + '("crypto/fipsmodule/aes/asm/aes-586.pl" + "crypto/fipsmodule/aes/asm/aesni-x86.pl" + "crypto/fipsmodule/aes/asm/vpaes-x86.pl" + "crypto/fipsmodule/bn/asm/x86-mont.pl" + "crypto/chacha/asm/chacha-x86.pl" + "crypto/fipsmodule/ec/asm/ecp_nistz256-x86.pl" + "crypto/fipsmodule/modes/asm/ghash-x86.pl" + "crypto/poly1305/asm/poly1305-x86.pl" + "crypto/fipsmodule/sha/asm/sha256-586.pl" + "crypto/fipsmodule/sha/asm/sha512-586.pl")) + + (for-each + (lambda (script) + (invoke "yasm" "-X" "vc" "--dformat=cv8" + "--oformat=win32" "--machine=x86" "-o" + (string-append (prefix script) "obj") script)) + (find-files "pregenerated/tmp" "-win32n\\.asm")) + + (for-each + (lambda (script) + (invoke "perl" script "ios32" + (string-append (prefix script) "-ios32.S")) + (invoke "perl" script "linux32" + (string-append (prefix script) "-linux32.S"))) + '("crypto/fipsmodule/aes/asm/aesv8-armx.pl" + "crypto/fipsmodule/modes/asm/ghashv8-armx.pl" + "crypto/fipsmodule/aes/asm/aes-armv4.pl" + "crypto/fipsmodule/aes/asm/bsaes-armv7.pl" + "crypto/fipsmodule/bn/asm/armv4-mont.pl" + "crypto/chacha/asm/chacha-armv4.pl" + "crypto/fipsmodule/ec/asm/ecp_nistz256-armv4.pl" + "crypto/fipsmodule/modes/asm/ghash-armv4.pl" + "crypto/poly1305/asm/poly1305-armv4.pl" + "crypto/fipsmodule/sha/asm/sha256-armv4.pl" + "crypto/fipsmodule/sha/asm/sha512-armv4.pl")) + + (format #t "Creating the tarball ...~%") + (force-output) + ;; The other option is to use cargo package --allow-dirty + (with-directory-excursion "../" + (invoke "tar" "czf" #$output + ;; avoid non-determinism in the archive + "--sort=name" "--mtime=@0" + "--owner=root:0" "--group=root:0" + (string-append "ring-" #$version)))))))))))) +(define-public rust-ring-0.13 + (package + (inherit rust-ring-0.14) + (name "rust-ring") + (version "0.13.5") + (source rust-ring-0.13-sources) + (arguments + `(#:cargo-inputs + (("rust-lazy-static" ,rust-lazy-static-1) + ("rust-libc" ,rust-libc-0.2) + ("rust-untrusted" ,rust-untrusted-0.6) + ;; build dependencies + ("rust-cc" ,rust-cc-1)))))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 1316d9d273..7aafde0d3d 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -64,7 +64,6 @@ #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages admin) - #:use-module (gnu packages assembly) #:use-module (gnu packages audio) #:use-module (gnu packages autotools) #:use-module (gnu packages avahi) @@ -89,7 +88,6 @@ #:use-module (gnu packages gettext) #:use-module (gnu packages gl) #:use-module (gnu packages glib) - #:use-module (gnu packages golang) #:use-module (gnu packages icu4c) #:use-module (gnu packages image) #:use-module (gnu packages jemalloc) @@ -56880,826 +56878,6 @@ functionality as retain but gives mutable borrow to the predicate.") MIME Message Headers.") (license license:expat))) -(define computed-origin-method (@@ (guix packages) computed-origin-method)) -(define rust-ring-0.17-sources - (let* ((version "0.17.7") - (upstream-source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/briansmith/ring") - (commit "2be687bebdf76648ce85109d40c015412e14b0da"))) - (file-name (git-file-name "rust-ring" version)) - (sha256 - (base32 "1i3b7sha8yj990v2s5yk2a5dx3v4x9b8ckzm6bgiyi6wk4vnid69")) - (patches (search-patches "rust-ring-0.17-ring-core.patch"))))) - (origin - (method computed-origin-method) - (file-name (string-append "rust-ring-" version ".tar.gz")) - (sha256 #f) - (uri - (delay - (with-imported-modules '((guix build utils)) - #~(begin - (use-modules (guix build utils)) - (set-path-environment-variable - "PATH" '("bin") - (list #+(canonical-package gzip) - #+(canonical-package tar) - #+perl - #+nasm - #+go - #+clang ; clang-format - #+python-minimal)) - (setenv "HOME" (getcwd)) - (copy-recursively #+upstream-source - (string-append "ring-" #$version)) - (with-directory-excursion (string-append "ring-" #$version) - (begin - ;; It turns out Guix's nasm works just fine here. - (substitute* "build.rs" - (("./target/tools/windows/nasm/nasm") "nasm")) - ;; Files which would be deleted in a snippet: - (delete-file "crypto/curve25519/curve25519_tables.h") - (delete-file "crypto/fipsmodule/ec/p256-nistz-table.h") - (delete-file "crypto/fipsmodule/ec/p256_table.h") - ;; This file causes problems during the 'package phase and - ;; is not distributed with the packaged crate. - (substitute* "Cargo.toml" - (("\"bench\",") "")) - (delete-file "bench/Cargo.toml") - ;; Files to be generated in the sources: - (format #t "Generating the missing files ...~%") - (force-output) - (with-directory-excursion "crypto/curve25519" - (with-output-to-file "curve25519_tables.h" - (lambda _ (invoke "python3" "make_curve25519_tables.py"))) - ;; As seen in git between 0.17.0 and 0.17.1. - (substitute* "curve25519_tables.h" - (("static const uint8_t k25519Precomp") - "const uint8_t k25519Precomp"))) - (with-directory-excursion "crypto/fipsmodule/ec" - (invoke "go" "run" "make_tables.go") - (invoke "go" "run" "make_ec_scalar_base_mult_tests.go")) - (format #t "Generating the pregenerated files ...~%") - (force-output) - (mkdir-p "pregenerated/tmp/ring_core_generated") - - ;; We generate all the files which upstream would normally be - ;; generate by using 'RING_PREGENERATE_ASM=1 cargo build - ;; --target-dir=target/pregenerate_asm' in order to not include - ;; a dependency on cargo when generating the sources. - (define (prefix script) - (string-append - "pregenerated/" - (string-drop-right - (string-drop script - (string-index-right script #\/)) 3))) - - (for-each - (lambda (script) - (invoke "perl" script "ios64" - (string-append (prefix script) "-ios64.S")) - (invoke "perl" script "linux64" - (string-append (prefix script) "-linux64.S")) - (invoke "perl" script "win64" - (string-append (prefix script) "-win64.S"))) - '("crypto/fipsmodule/aes/asm/aesv8-armx.pl" - "crypto/fipsmodule/modes/asm/ghashv8-armx.pl" - "crypto/chacha/asm/chacha-armv8.pl" - "crypto/cipher_extra/asm/chacha20_poly1305_armv8.pl" - "crypto/fipsmodule/aes/asm/vpaes-armv8.pl" - "crypto/fipsmodule/bn/asm/armv8-mont.pl" - "crypto/fipsmodule/ec/asm/p256-armv8-asm.pl" - "crypto/fipsmodule/modes/asm/ghash-neon-armv8.pl" - "crypto/fipsmodule/sha/asm/sha512-armv8.pl")) - - (for-each - (lambda (arch) - (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-armv8.pl" - arch (string-append - "pregenerated/sha256-armv8-" arch ".S"))) - '("ios64" "linux64" "win64")) - - (for-each - (lambda (script) - (invoke "perl" script "linux32" - (string-append (prefix script) "-linux32.S"))) - '("crypto/fipsmodule/aes/asm/aesv8-armx.pl" - "crypto/fipsmodule/modes/asm/ghashv8-armx.pl" - "crypto/fipsmodule/aes/asm/bsaes-armv7.pl" - "crypto/fipsmodule/aes/asm/vpaes-armv7.pl" - "crypto/fipsmodule/bn/asm/armv4-mont.pl" - "crypto/chacha/asm/chacha-armv4.pl" - "crypto/fipsmodule/modes/asm/ghash-armv4.pl" - "crypto/fipsmodule/sha/asm/sha256-armv4.pl" - "crypto/fipsmodule/sha/asm/sha512-armv4.pl")) - - (for-each - (lambda (script) - (invoke "perl" script "elf" - "-fPIC" "-DOPENSSL_IA32_SSE2" - (string-append (prefix script) "-elf.S")) - (invoke "perl" script "win32n" - "-fPIC" "-DOPENSSL_IA32_SSE2" - (string-append - "pregenerated/tmp/" - (string-drop (prefix script) 13) "-win32n.asm"))) - '("crypto/fipsmodule/aes/asm/aesni-x86.pl" - "crypto/fipsmodule/aes/asm/vpaes-x86.pl" - "crypto/fipsmodule/bn/asm/x86-mont.pl" - "crypto/chacha/asm/chacha-x86.pl" - "crypto/fipsmodule/modes/asm/ghash-x86.pl")) - - (for-each - (lambda (script) - (invoke "perl" script "elf" - (string-append (prefix script) "-elf.S")) - (invoke "perl" script "macosx" - (string-append (prefix script) "-macosx.S")) - (invoke "perl" script "nasm" - (string-append - "pregenerated/tmp/" - (string-drop (prefix script) 13) "-nasm.asm"))) - '("crypto/chacha/asm/chacha-x86_64.pl" - "crypto/fipsmodule/aes/asm/aesni-x86_64.pl" - "crypto/fipsmodule/aes/asm/vpaes-x86_64.pl" - "crypto/fipsmodule/bn/asm/x86_64-mont.pl" - "crypto/fipsmodule/bn/asm/x86_64-mont5.pl" - "crypto/fipsmodule/ec/asm/p256-x86_64-asm.pl" - "crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl" - "crypto/fipsmodule/modes/asm/ghash-x86_64.pl" - "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" - "crypto/cipher_extra/asm/chacha20_poly1305_x86_64.pl")) - - (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" - "elf" "pregenerated/sha256-x86_64-elf.S") - - (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" - "macosx" "pregenerated/sha256-x86_64-macosx.S") - - (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" - "nasm" "pregenerated/tmp/sha256-x86_64-nasm.asm") - - ;; TODO: Extract ring_core_generated/prefix_symbols_nasm.inc - ;; and ring_core_generated/prefix_symbols_asm.h from build.rs. - - (for-each - (lambda (script) - (invoke "nasm" "-o" (string-append (prefix script) "o") - "-f" "win32" "-i" "include/" "-i" "pregenerated/tmp/" - "-Xgnu" "-gcv8" script)) - (find-files "pregenerated/tmp" "win32n\\.asm")) - - (for-each - (lambda (script) - (invoke "nasm" "-o" (string-append (prefix script) "o") - "-f" "win64" "-i" "include/" "-i" "pregenerated/tmp/" - "-Xgnu" "-gcv8" script)) - (find-files "pregenerated/tmp" "nasm\\.asm")) - - (format #t "Creating the tarball ...~%") - (force-output) - ;; The other option is to use cargo package --allow-dirty - (with-directory-excursion "../" - (invoke "tar" "czf" #$output - ;; avoid non-determinism in the archive - "--sort=name" "--mtime=@0" - "--owner=root:0" "--group=root:0" - (string-append "ring-" #$version)))))))))))) - -(define-public rust-ring-0.17 - (package - (name "rust-ring") - (version "0.17.7") - (source rust-ring-0.17-sources) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs (("rust-cc" ,rust-cc-1) - ("rust-getrandom" ,rust-getrandom-0.2) - ("rust-libc" ,rust-libc-0.2) - ("rust-spin" ,rust-spin-0.9) - ("rust-untrusted" ,rust-untrusted-0.9) - ("rust-windows-sys" ,rust-windows-sys-0.48)) - #:cargo-development-inputs - (("rust-libc" ,rust-libc-0.2) - ("rust-wasm-bindgen-test" ,rust-wasm-bindgen-test-0.3)))) - (home-page "https://github.com/briansmith/ring") - (synopsis "Safe, fast, small crypto using Rust") - (description "This package provided safe, fast, small crypto using Rust.") - (license (list license:isc license:openssl)))) - -(define rust-ring-0.16-sources - (let* ((version "0.16.20") - (upstream-source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/briansmith/ring") - (commit "9cc0d45f4d8521f467bb3a621e74b1535e118188"))) - (file-name (git-file-name "rust-ring" version)) - (sha256 - (base32 "1aps05i5308ka03968glnnqr4kdkk2x4ghlg5vrqhl78jm6ivvby"))))) - (origin - (method computed-origin-method) - (file-name (string-append "rust-ring-" version ".tar.gz")) - (sha256 #f) - (uri - (delay - (with-imported-modules '((guix build utils)) - #~(begin - (use-modules (guix build utils)) - (set-path-environment-variable - "PATH" '("bin") - (list #+(canonical-package gzip) - #+(canonical-package tar) - #+perl - #+nasm - #+go - #+clang ; clang-format - #+python2-minimal)) - (setenv "HOME" (getcwd)) - (copy-recursively #+upstream-source - (string-append "ring-" #$version)) - (with-directory-excursion (string-append "ring-" #$version) - (begin - ;; It turns out Guix's nasm works just fine here. - (substitute* "build.rs" - (("./target/tools/nasm") "nasm")) - ;; Files which would be deleted in a snippet: - (delete-file "crypto/curve25519/curve25519_tables.h") - (delete-file "crypto/fipsmodule/ec/ecp_nistz256_table.inl") - ;; Files to be generated in the sources: - (format #t "Generating the missing files ...~%") - (force-output) - (with-directory-excursion "crypto/curve25519" - (with-output-to-file "curve25519_tables.h" - (lambda _ (invoke "python" "make_curve25519_tables.py")))) - (with-directory-excursion "crypto/fipsmodule/ec" - (with-output-to-file "ecp_nistz256_table.inl" - (lambda _ (invoke "go" "run" "make_p256-x86_64-table.go")))) - (format #t "Generating the pregenerated files ...~%") - (force-output) - (mkdir-p "pregenerated/tmp") - - ;; We generate all the files which upstream would normally be - ;; generate by using '(cd pregenerate_asm && cargo clean && - ;; cargo build) ./pregenerate_asm/target/debug/pregenerate_asm' - ;; in order to not include a dependency on cargo when - ;; generating the sources. - (define (prefix script) - (string-append - "pregenerated/" - (string-drop-right - (string-drop script - (string-index-right script #\/)) 3))) - - (for-each - (lambda (script) - (invoke "perl" script "elf" - (string-append (prefix script) "-elf.S")) - (invoke "perl" script "macosx" - (string-append (prefix script) "-macosx.S")) - (invoke "perl" script "nasm" - (string-append - "pregenerated/tmp/" - (string-drop (prefix script) 13) "-nasm.asm"))) - '("crypto/fipsmodule/aes/asm/aesni-x86_64.pl" - "crypto/fipsmodule/aes/asm/vpaes-x86_64.pl" - "crypto/fipsmodule/bn/asm/x86_64-mont.pl" - "crypto/fipsmodule/bn/asm/x86_64-mont5.pl" - "crypto/chacha/asm/chacha-x86_64.pl" - "crypto/fipsmodule/ec/asm/p256-x86_64-asm.pl" - "crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl" - "crypto/fipsmodule/modes/asm/ghash-x86_64.pl" - "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" - "crypto/cipher_extra/asm/chacha20_poly1305_x86_64.pl")) - - (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" - "elf" "pregenerated/sha256-x86_64-elf.S") - - (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" - "macosx" "pregenerated/sha256-x86_64-macosx.S") - - (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" - "nasm" "pregenerated/tmp/sha256-x86_64-nasm.asm") - - (for-each - (lambda (script) - (invoke "nasm" "-o" (string-append (prefix script) "obj") - "-f" "win64" "-Xgnu" "-gcv8" script)) - (find-files "pregenerated/tmp" "\\.asm")) - - (for-each - (lambda (script) - (invoke "perl" script "ios64" - (string-append (prefix script) "-ios64.S")) - (invoke "perl" script "linux64" - (string-append (prefix script) "-linux64.S"))) - '("crypto/fipsmodule/aes/asm/aesv8-armx.pl" - "crypto/fipsmodule/modes/asm/ghashv8-armx.pl" - "crypto/fipsmodule/aes/asm/vpaes-armv8.pl" - "crypto/fipsmodule/bn/asm/armv8-mont.pl" - "crypto/chacha/asm/chacha-armv8.pl" - "crypto/fipsmodule/ec/asm/ecp_nistz256-armv8.pl" - "crypto/fipsmodule/modes/asm/ghash-neon-armv8.pl" - "crypto/fipsmodule/sha/asm/sha512-armv8.pl")) - - (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-armv8.pl" - "ios64" "pregenerated/sha256-armv8-ios64.S") - - (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-armv8.pl" - "linux64" "pregenerated/sha256-armv8-linux64.S") - - (for-each - (lambda (script) - (invoke "perl" script "elf" - "-fPIC" "-DOPENSSL_IA32_SSE2" - (string-append (prefix script) "-elf.S")) - (invoke "perl" script "macosx" - "-fPIC" "-DOPENSSL_IA32_SSE2" - (string-append (prefix script) "-macosx.S")) - (invoke "perl" script "win32n" - "-fPIC" "-DOPENSSL_IA32_SSE2" - (string-append - "pregenerated/tmp/" - (string-drop (prefix script) 13) "-win32n.asm"))) - '("crypto/fipsmodule/aes/asm/aesni-x86.pl" - "crypto/fipsmodule/aes/asm/vpaes-x86.pl" - "crypto/fipsmodule/bn/asm/x86-mont.pl" - "crypto/chacha/asm/chacha-x86.pl" - "crypto/fipsmodule/ec/asm/ecp_nistz256-x86.pl" - "crypto/fipsmodule/modes/asm/ghash-x86.pl")) - - (for-each - (lambda (script) - (invoke "nasm" "-o" (string-append (prefix script) "obj") - "-f" "win32" "-Xgnu" "-gcv8" script)) - (find-files "pregenerated/tmp" "-win32n\\.asm")) - - (for-each - (lambda (script) - (invoke "perl" script "ios32" - (string-append (prefix script) "-ios32.S")) - (invoke "perl" script "linux32" - (string-append (prefix script) "-linux32.S"))) - '("crypto/fipsmodule/aes/asm/aesv8-armx.pl" - "crypto/fipsmodule/modes/asm/ghashv8-armx.pl" - "crypto/fipsmodule/aes/asm/bsaes-armv7.pl" - "crypto/fipsmodule/aes/asm/vpaes-armv7.pl" - "crypto/fipsmodule/bn/asm/armv4-mont.pl" - "crypto/chacha/asm/chacha-armv4.pl" - "crypto/fipsmodule/ec/asm/ecp_nistz256-armv4.pl" - "crypto/fipsmodule/modes/asm/ghash-armv4.pl" - "crypto/fipsmodule/sha/asm/sha256-armv4.pl" - "crypto/fipsmodule/sha/asm/sha512-armv4.pl")) - - (format #t "Creating the tarball ...~%") - (force-output) - ;; The other option is to use cargo package --allow-dirty - (with-directory-excursion "../" - (invoke "tar" "czf" #$output - ;; avoid non-determinism in the archive - "--sort=name" "--mtime=@0" - "--owner=root:0" "--group=root:0" - (string-append "ring-" #$version)))))))))))) - -(define-public rust-ring-0.16 - (package - (inherit rust-ring-0.17) - (name "rust-ring") - (version "0.16.20") - (source rust-ring-0.16-sources) - (arguments - `(#:cargo-inputs - (("rust-libc" ,rust-libc-0.2) - ("rust-once-cell" ,rust-once-cell-1) - ("rust-spin" ,rust-spin-0.5) - ("rust-untrusted" ,rust-untrusted-0.7) - ("rust-web-sys" ,rust-web-sys-0.3) - ("rust-winapi" ,rust-winapi-0.3) - ;; build dependencies - ("rust-cc" ,rust-cc-1)) - #:cargo-development-inputs - (("rust-libc" ,rust-libc-0.2) - ("rust-wasm-bindgen-test" ,rust-wasm-bindgen-test-0.3)))) - ;; For a mostly complete list of supported systems see: - ;; https://github.com/briansmith/ring/blob/main/.github/workflows/ci.yml#L170 - (supported-systems (list "aarch64-linux" "armhf-linux" - "i686-linux" "x86_64-linux")))) - -(define rust-ring-0.14-sources - (let* ((version "0.14.6") - (upstream-source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/briansmith/ring") - (commit "ef85df478152aa3fe06c811309379efa08f8a529"))) - (file-name (git-file-name "rust-ring" version)) - (sha256 - (base32 "12dgw2spvmkdypgzymw3bxpv4bbpnlq8s10sdggral31x597n6xx"))))) - (origin - (method computed-origin-method) - (file-name (string-append "rust-ring-" version ".tar.gz")) - (sha256 #f) - (uri - (delay - (with-imported-modules '((guix build utils)) - #~(begin - (use-modules (guix build utils)) - (set-path-environment-variable - "PATH" '("bin") - (list #+(canonical-package gzip) - #+(canonical-package tar) - #+perl - #+yasm - #+go - #+clang ; clang-format - #+python2-minimal)) - (setenv "HOME" (getcwd)) - (copy-recursively #+upstream-source - (string-append "ring-" #$version)) - (with-directory-excursion (string-append "ring-" #$version) - (begin - ;; It turns out Guix's yasm works just fine here. - (substitute* "build.rs" - (("yasm.exe") "yasm")) - ;; Files which would be deleted in a snippet: - (delete-file "third_party/fiat/curve25519_tables.h") - (delete-file "crypto/fipsmodule/ec/ecp_nistz256_table.inl") - (delete-file "util/ar/testdata/linux/libsample.a") - (delete-file "util/ar/testdata/mac/libsample.a") - (delete-file "util/ar/testdata/windows/sample.lib") - ;; Fix the doc tests. - (substitute* "src/ec/curve25519/ed25519/verification.rs" - ((";;") ";")) - ;; Files to be generated in the sources: - (format #t "Generating the missing files ...~%") - (force-output) - (with-directory-excursion "third_party/fiat" - (with-output-to-file "curve25519_tables.h" - (lambda _ (invoke "python" "make_curve25519_tables.py")))) - (with-directory-excursion "crypto/fipsmodule/ec" - ;; This one seems to have been changed elsewhere in the - ;; sources but not in the script generating the definition. - (substitute* "make_p256-x86_64-table.go" - (("ecp_nistz256_precomputed") "GFp_nistz256_precomputed")) - (with-output-to-file "ecp_nistz256_table.inl" - (lambda _ (invoke "go" "run" "make_p256-x86_64-table.go")))) - (format #t "Generating the pregenerated files ...~%") - (force-output) - (mkdir-p "pregenerated/tmp") - - ;; We generate all the files which upstream would normally be - ;; generate by using '(cd pregenerate_asm && cargo clean && - ;; cargo build) ./pregenerate_asm/target/debug/pregenerate_asm' - ;; in order to not include a dependency on cargo when - ;; generating the sources. - (define (prefix script) - (string-append - "pregenerated/" - (string-drop-right - (string-drop script - (string-index-right script #\/)) 3))) - - (for-each - (lambda (script) - (invoke "perl" script "elf" - (string-append (prefix script) "-elf.S")) - (invoke "perl" script "macosx" - (string-append (prefix script) "-macosx.S")) - (invoke "perl" script "nasm" - (string-append - "pregenerated/tmp/" - (string-drop (prefix script) 13) "-nasm.asm"))) - '("crypto/fipsmodule/aes/asm/aes-x86_64.pl" - "crypto/fipsmodule/aes/asm/aesni-x86_64.pl" - "crypto/fipsmodule/aes/asm/vpaes-x86_64.pl" - "crypto/fipsmodule/bn/asm/x86_64-mont.pl" - "crypto/fipsmodule/bn/asm/x86_64-mont5.pl" - "crypto/chacha/asm/chacha-x86_64.pl" - "crypto/fipsmodule/ec/asm/p256-x86_64-asm.pl" - "crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl" - "crypto/fipsmodule/modes/asm/ghash-x86_64.pl" - "crypto/poly1305/asm/poly1305-x86_64.pl" - "crypto/fipsmodule/sha/asm/sha512-x86_64.pl")) - - (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" - "elf" "pregenerated/sha256-x86_64-elf.S") - - (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" - "macosx" "pregenerated/sha256-x86_64-macosx.S") - - (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" - "nasm" "pregenerated/tmp/sha256-x86_64-nasm.asm") - - (for-each - (lambda (script) - (invoke "yasm" "-X" "vc" "--dformat=cv8" - "--oformat=win64" "--machine=amd64" "-o" - (string-append (prefix script) "obj") script)) - (find-files "pregenerated/tmp" "\\.asm")) - - (for-each - (lambda (script) - (invoke "perl" script "ios64" - (string-append (prefix script) "-ios64.S")) - (invoke "perl" script "linux64" - (string-append (prefix script) "-linux64.S"))) - '("crypto/fipsmodule/aes/asm/aesv8-armx.pl" - "crypto/fipsmodule/modes/asm/ghashv8-armx.pl" - "crypto/fipsmodule/bn/asm/armv8-mont.pl" - "crypto/chacha/asm/chacha-armv8.pl" - "crypto/fipsmodule/ec/asm/ecp_nistz256-armv8.pl" - "crypto/poly1305/asm/poly1305-armv8.pl" - "crypto/fipsmodule/sha/asm/sha512-armv8.pl")) - - (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-armv8.pl" - "ios64" "pregenerated/sha256-armv8-ios64.S") - - (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-armv8.pl" - "linux64" "pregenerated/sha256-armv8-linux64.S") - - (for-each - (lambda (script) - (invoke "perl" script "elf" - "-fPIC" "-DOPENSSL_IA32_SSE2" - (string-append (prefix script) "-elf.S")) - (invoke "perl" script "macosx" - "-fPIC" "-DOPENSSL_IA32_SSE2" - (string-append (prefix script) "-macosx.S")) - (invoke "perl" script "win32n" - "-fPIC" "-DOPENSSL_IA32_SSE2" - (string-append - "pregenerated/tmp/" - (string-drop (prefix script) 13) "-win32n.asm"))) - '("crypto/fipsmodule/aes/asm/aes-586.pl" - "crypto/fipsmodule/aes/asm/aesni-x86.pl" - "crypto/fipsmodule/aes/asm/vpaes-x86.pl" - "crypto/fipsmodule/bn/asm/x86-mont.pl" - "crypto/chacha/asm/chacha-x86.pl" - "crypto/fipsmodule/ec/asm/ecp_nistz256-x86.pl" - "crypto/fipsmodule/modes/asm/ghash-x86.pl" - "crypto/poly1305/asm/poly1305-x86.pl" - "crypto/fipsmodule/sha/asm/sha256-586.pl" - "crypto/fipsmodule/sha/asm/sha512-586.pl")) - - (for-each - (lambda (script) - (invoke "yasm" "-X" "vc" "--dformat=cv8" - "--oformat=win32" "--machine=x86" "-o" - (string-append (prefix script) "obj") script)) - (find-files "pregenerated/tmp" "-win32n\\.asm")) - - (for-each - (lambda (script) - (invoke "perl" script "ios32" - (string-append (prefix script) "-ios32.S")) - (invoke "perl" script "linux32" - (string-append (prefix script) "-linux32.S"))) - '("crypto/fipsmodule/aes/asm/aesv8-armx.pl" - "crypto/fipsmodule/modes/asm/ghashv8-armx.pl" - "crypto/fipsmodule/aes/asm/aes-armv4.pl" - "crypto/fipsmodule/aes/asm/bsaes-armv7.pl" - "crypto/fipsmodule/bn/asm/armv4-mont.pl" - "crypto/chacha/asm/chacha-armv4.pl" - "crypto/fipsmodule/ec/asm/ecp_nistz256-armv4.pl" - "crypto/fipsmodule/modes/asm/ghash-armv4.pl" - "crypto/poly1305/asm/poly1305-armv4.pl" - "crypto/fipsmodule/sha/asm/sha256-armv4.pl" - "crypto/fipsmodule/sha/asm/sha512-armv4.pl")) - - (format #t "Creating the tarball ...~%") - (force-output) - ;; The other option is to use cargo package --allow-dirty - (with-directory-excursion "../" - (invoke "tar" "czf" #$output - ;; avoid non-determinism in the archive - "--sort=name" "--mtime=@0" - "--owner=root:0" "--group=root:0" - (string-append "ring-" #$version)))))))))))) -(define-public rust-ring-0.14 - (package - (inherit rust-ring-0.16) - (name "rust-ring") - (version "0.14.6") - (source rust-ring-0.14-sources) - (arguments - `(#:cargo-inputs - (("rust-cc" ,rust-cc-1) - ("rust-lazy-static" ,rust-lazy-static-1) - ("rust-libc" ,rust-libc-0.2) - ("rust-spin" ,rust-spin-0.5) - ("rust-untrusted" ,rust-untrusted-0.6) - ("rust-winapi" ,rust-winapi-0.3)))))) - -(define rust-ring-0.13-sources - (let* ((version "0.13.5") - (upstream-source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/briansmith/ring") - (commit "704e4216a397bd830479bcd6d7dd67fc62cdbe67"))) - (file-name (git-file-name "rust-ring" version)) - (sha256 - (base32 "0iqwf8i2i0a46ymrqss1ngbd2lqphk0mw74c65pxb8skyn2n7csi"))))) - (origin - (method computed-origin-method) - (file-name (string-append "rust-ring-" version ".tar.gz")) - (sha256 #f) - (uri - (delay - (with-imported-modules '((guix build utils)) - #~(begin - (use-modules (guix build utils)) - (set-path-environment-variable - "PATH" '("bin") - (list #+(canonical-package gzip) - #+(canonical-package tar) - #+perl - #+yasm - #+go - #+clang ; clang-format - #+python2-minimal)) - (setenv "HOME" (getcwd)) - (copy-recursively #+upstream-source - (string-append "ring-" #$version)) - (with-directory-excursion (string-append "ring-" #$version) - (begin - ;; Make some adjustments for newer versions of rust - ;; error: `...` range patterns are deprecated - (substitute* "src/digest/sha1.rs" - (("0\\.\\.\\.") "0..=")) - (substitute* "build.rs" - (("out_dir\\.clone\\(\\)") "out_dir") - (("libs\\.into_iter\\(\\)") "libs.iter()")) - ;; It turns out Guix's yasm works just fine here. - (substitute* "build.rs" - (("yasm.exe") "yasm")) - ;; Files which would be deleted in a snippet: - (delete-file "third_party/fiat/curve25519_tables.h") - (delete-file "crypto/fipsmodule/ec/ecp_nistz256_table.inl") - ;; Files to be generated in the sources: - (format #t "Generating the missing files ...~%") - (force-output) - (with-directory-excursion "third_party/fiat" - (with-output-to-file "curve25519_tables.h" - (lambda _ (invoke "python" "make_curve25519_tables.py")))) - (with-directory-excursion "crypto/fipsmodule/ec" - ;; This one seems to have been changed elsewhere in the - ;; sources but not in the script generating the definition. - (substitute* "make_p256-x86_64-table.go" - (("ecp_nistz256_precomputed") "GFp_nistz256_precomputed")) - (with-output-to-file "ecp_nistz256_table.inl" - (lambda _ (invoke "go" "run" "make_p256-x86_64-table.go")))) - (format #t "Generating the pregenerated files ...~%") - (force-output) - (mkdir-p "pregenerated/tmp") - - ;; We generate all the files which upstream would normally be - ;; generate by using '(cd pregenerate_asm && cargo clean && - ;; cargo build) ./pregenerate_asm/target/debug/pregenerate_asm' - ;; in order to not include a dependency on cargo when - ;; generating the sources. - (define (prefix script) - (string-append - "pregenerated/" - (string-drop-right - (string-drop script - (string-index-right script #\/)) 3))) - - (for-each - (lambda (script) - (invoke "perl" script "elf" - (string-append (prefix script) "-elf.S")) - (invoke "perl" script "macosx" - (string-append (prefix script) "-macosx.S")) - (invoke "perl" script "nasm" - (string-append - "pregenerated/tmp/" - (string-drop (prefix script) 13) "-nasm.asm"))) - '("crypto/fipsmodule/aes/asm/aes-x86_64.pl" - "crypto/fipsmodule/aes/asm/aesni-x86_64.pl" - "crypto/fipsmodule/aes/asm/vpaes-x86_64.pl" - "crypto/fipsmodule/bn/asm/x86_64-mont.pl" - "crypto/fipsmodule/bn/asm/x86_64-mont5.pl" - "crypto/chacha/asm/chacha-x86_64.pl" - "crypto/fipsmodule/ec/asm/p256-x86_64-asm.pl" - "crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl" - "crypto/fipsmodule/modes/asm/ghash-x86_64.pl" - "crypto/poly1305/asm/poly1305-x86_64.pl" - "crypto/fipsmodule/sha/asm/sha512-x86_64.pl")) - - (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" - "elf" "pregenerated/sha256-x86_64-elf.S") - - (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" - "macosx" "pregenerated/sha256-x86_64-macosx.S") - - (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-x86_64.pl" - "nasm" "pregenerated/tmp/sha256-x86_64-nasm.asm") - - (for-each - (lambda (script) - (invoke "yasm" "-X" "vc" "--dformat=cv8" - "--oformat=win64" "--machine=amd64" "-o" - (string-append (prefix script) "obj") script)) - (find-files "pregenerated/tmp" "\\.asm")) - - (for-each - (lambda (script) - (invoke "perl" script "ios64" - (string-append (prefix script) "-ios64.S")) - (invoke "perl" script "linux64" - (string-append (prefix script) "-linux64.S"))) - '("crypto/fipsmodule/aes/asm/aesv8-armx.pl" - "crypto/fipsmodule/modes/asm/ghashv8-armx.pl" - "crypto/fipsmodule/bn/asm/armv8-mont.pl" - "crypto/chacha/asm/chacha-armv8.pl" - "crypto/fipsmodule/ec/asm/ecp_nistz256-armv8.pl" - "crypto/poly1305/asm/poly1305-armv8.pl" - "crypto/fipsmodule/sha/asm/sha512-armv8.pl")) - - (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-armv8.pl" - "ios64" "pregenerated/sha256-armv8-ios64.S") - - (invoke "perl" "crypto/fipsmodule/sha/asm/sha512-armv8.pl" - "linux64" "pregenerated/sha256-armv8-linux64.S") - - (for-each - (lambda (script) - (invoke "perl" script "elf" - "-fPIC" "-DOPENSSL_IA32_SSE2" - (string-append (prefix script) "-elf.S")) - (invoke "perl" script "macosx" - "-fPIC" "-DOPENSSL_IA32_SSE2" - (string-append (prefix script) "-macosx.S")) - (invoke "perl" script "win32n" - "-fPIC" "-DOPENSSL_IA32_SSE2" - (string-append - "pregenerated/tmp/" - (string-drop (prefix script) 13) "-win32n.asm"))) - '("crypto/fipsmodule/aes/asm/aes-586.pl" - "crypto/fipsmodule/aes/asm/aesni-x86.pl" - "crypto/fipsmodule/aes/asm/vpaes-x86.pl" - "crypto/fipsmodule/bn/asm/x86-mont.pl" - "crypto/chacha/asm/chacha-x86.pl" - "crypto/fipsmodule/ec/asm/ecp_nistz256-x86.pl" - "crypto/fipsmodule/modes/asm/ghash-x86.pl" - "crypto/poly1305/asm/poly1305-x86.pl" - "crypto/fipsmodule/sha/asm/sha256-586.pl" - "crypto/fipsmodule/sha/asm/sha512-586.pl")) - - (for-each - (lambda (script) - (invoke "yasm" "-X" "vc" "--dformat=cv8" - "--oformat=win32" "--machine=x86" "-o" - (string-append (prefix script) "obj") script)) - (find-files "pregenerated/tmp" "-win32n\\.asm")) - - (for-each - (lambda (script) - (invoke "perl" script "ios32" - (string-append (prefix script) "-ios32.S")) - (invoke "perl" script "linux32" - (string-append (prefix script) "-linux32.S"))) - '("crypto/fipsmodule/aes/asm/aesv8-armx.pl" - "crypto/fipsmodule/modes/asm/ghashv8-armx.pl" - "crypto/fipsmodule/aes/asm/aes-armv4.pl" - "crypto/fipsmodule/aes/asm/bsaes-armv7.pl" - "crypto/fipsmodule/bn/asm/armv4-mont.pl" - "crypto/chacha/asm/chacha-armv4.pl" - "crypto/fipsmodule/ec/asm/ecp_nistz256-armv4.pl" - "crypto/fipsmodule/modes/asm/ghash-armv4.pl" - "crypto/poly1305/asm/poly1305-armv4.pl" - "crypto/fipsmodule/sha/asm/sha256-armv4.pl" - "crypto/fipsmodule/sha/asm/sha512-armv4.pl")) - - (format #t "Creating the tarball ...~%") - (force-output) - ;; The other option is to use cargo package --allow-dirty - (with-directory-excursion "../" - (invoke "tar" "czf" #$output - ;; avoid non-determinism in the archive - "--sort=name" "--mtime=@0" - "--owner=root:0" "--group=root:0" - (string-append "ring-" #$version)))))))))))) -(define-public rust-ring-0.13 - (package - (inherit rust-ring-0.14) - (name "rust-ring") - (version "0.13.5") - (source rust-ring-0.13-sources) - (arguments - `(#:cargo-inputs - (("rust-lazy-static" ,rust-lazy-static-1) - ("rust-libc" ,rust-libc-0.2) - ("rust-untrusted" ,rust-untrusted-0.6) - ;; build dependencies - ("rust-cc" ,rust-cc-1)))))) - (define-public rust-ringbuf-0.2 (package (name "rust-ringbuf") diff --git a/gnu/packages/crates-tls.scm b/gnu/packages/crates-tls.scm index 8b246336a1..c21d7f3048 100644 --- a/gnu/packages/crates-tls.scm +++ b/gnu/packages/crates-tls.scm @@ -32,6 +32,7 @@ #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages crates-apple) + #:use-module (gnu packages crates-crypto) #:use-module (gnu packages crates-io) #:use-module (gnu packages crates-web) #:use-module (gnu packages crates-windows) -- cgit v1.2.3 From e6229a59b297c2ec085ef8f477ff3c613f9ae2ee Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:38:09 +0200 Subject: gnu: rust-sha1: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-sha-1-0.10, rust-sha-1-0.9, rust-sha-1-0.8, rust-sha1-0.10, rust-sha1-0.6, rust-sha1-0.2, rust-sha1-asm-0.5, rust-sha1-asm-0.4, rust-sha1-smol-1, rust-sha1collisiondetection-0.2): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: Id56b0b762db7531cdd2d85c4b255cb5400da802c --- gnu/packages/crates-crypto.scm | 246 +++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 246 ----------------------------------------- gnu/packages/crates-vcs.scm | 1 + gnu/packages/crates-web.scm | 1 + 4 files changed, 248 insertions(+), 246 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index dff09af97d..284b798f17 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -2876,3 +2876,249 @@ Digital Signature Algorithm} (ECDSA).") ("rust-untrusted" ,rust-untrusted-0.6) ;; build dependencies ("rust-cc" ,rust-cc-1)))))) + +(define-public rust-sha-1-0.10 + (package + (name "rust-sha-1") + (version "0.10.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "sha-1" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1700fs5aiiailpd5h0ax4sgs2ngys0mqf3p4j0ry6j2p2zd8l1gm")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-cfg-if" ,rust-cfg-if-1) + ("rust-cpufeatures" ,rust-cpufeatures-0.2) + ("rust-digest" ,rust-digest-0.10) + ("rust-sha1-asm" ,rust-sha1-asm-0.5)) + #:cargo-development-inputs + (("rust-digest" ,rust-digest-0.10) + ("rust-hex-literal" ,rust-hex-literal-0.2)))) + (home-page "https://github.com/RustCrypto/hashes") + (synopsis "SHA-1 hash function") + (description "This crate provides a SHA-1 hash function.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-sha-1-0.9 + (package + (inherit rust-sha-1-0.10) + (name "rust-sha-1") + (version "0.9.8") + (source + (origin + (method url-fetch) + (uri (crate-uri "sha-1" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "19jibp8l9k5v4dnhj5kfhaczdfd997h22qz0hin6pw9wvc9ngkcr")))) + (arguments + `(#:cargo-inputs + (("rust-block-buffer" ,rust-block-buffer-0.9) + ("rust-cfg-if" ,rust-cfg-if-1) + ("rust-cpufeatures" ,rust-cpufeatures-0.2) + ("rust-digest" ,rust-digest-0.9) + ("rust-opaque-debug" ,rust-opaque-debug-0.3) + ("rust-sha1-asm" ,rust-sha1-asm-0.5)) + #:cargo-development-inputs + (("rust-digest" ,rust-digest-0.9) + ("rust-hex-literal" ,rust-hex-literal-0.2)))))) + +(define-public rust-sha-1-0.8 + (package + (inherit rust-sha-1-0.9) + (name "rust-sha-1") + (version "0.8.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "sha-1" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1pv387q0r7llk2cqzyq0nivzvkgqgzsiygqzlv7b68z9xl5lvngp")))) + (arguments + `(#:cargo-test-flags + '("--release" "--lib" "--bins" "--tests") + #:cargo-inputs + (("rust-block-buffer" ,rust-block-buffer-0.7) + ("rust-digest" ,rust-digest-0.8) + ("rust-fake-simd" ,rust-fake-simd-0.1) + ("rust-opaque-debug" ,rust-opaque-debug-0.2) + ("rust-libc" ,rust-libc-0.2) + ("rust-sha1-asm" ,rust-sha1-asm-0.4)) + #:cargo-development-inputs + (("rust-digest" ,rust-digest-0.8) + ("rust-hex-literal" ,rust-hex-literal-0.1)))))) + +(define-public rust-sha1-0.10 + (package + (name "rust-sha1") + (version "0.10.6") + (source + (origin + (method url-fetch) + (uri (crate-uri "sha1" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1fnnxlfg08xhkmwf2ahv634as30l1i3xhlhkvxflmasi5nd85gz3")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-cfg-if" ,rust-cfg-if-1) + ("rust-cpufeatures" ,rust-cpufeatures-0.2) + ("rust-digest" ,rust-digest-0.10) + ("rust-sha1-asm" ,rust-sha1-asm-0.5)) + #:cargo-development-inputs + (("rust-digest" ,rust-digest-0.10) + ("rust-hex-literal" ,rust-hex-literal-0.2)))) + (home-page "https://github.com/mitsuhiko/rust-sha1") + (synopsis "Minimal implementation of SHA1 for Rust") + (description + "This package provides a minimal implementation of SHA1 for Rust.") + (license license:bsd-3))) + +(define-public rust-sha1-0.6 + (package + (inherit rust-sha1-0.10) + (name "rust-sha1") + (version "0.6.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "sha1" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "03gs2q4m67rn2p8xcdfxhip6mpgahdwm12bnb3vh90ahv9grhy95")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-serde" ,rust-serde-1)) + #:cargo-development-inputs + (("rust-openssl" ,rust-openssl-0.10) + ("rust-rand" ,rust-rand-0.4) + ("rust-serde-json" ,rust-serde-json-1)))))) + +(define-public rust-sha1-0.2 + (package + (inherit rust-sha1-0.6) + (name "rust-sha1") + (version "0.2.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "sha1" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0p09zfhd27z6yr5in07gfjcx345010rw51ivlcf14364x3hv2c6c")))) + (arguments + `(#:tests? #f ; Tests require openssl-1.0 + #:cargo-development-inputs + (("rust-openssl" ,rust-openssl-0.7) + ("rust-rand" ,rust-rand-0.3)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-cargo-toml + (lambda _ + (substitute* "Cargo.toml" + ((", path =.*}") "}")) + #t))))))) + +(define-public rust-sha1-asm-0.5 + (package + (name "rust-sha1-asm") + (version "0.5.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "sha1-asm" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1b7ab7f4n87pqdmbl1a5jrc2axf27pvbndsz9qiwwgxw01qlygan")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-cc" ,rust-cc-1)))) + (home-page "https://github.com/RustCrypto/asm-hashes") + (synopsis "Assembly implementation of SHA-1 compression function") + (description + "Assembly implementation of SHA-1 compression function.") + (license license:expat))) + +(define-public rust-sha1-asm-0.4 + (package + (inherit rust-sha1-asm-0.5) + (name "rust-sha1-asm") + (version "0.4.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "sha1-asm" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1z5vdimd7l0vmr2p7kjibi0rghf5frb1ld0gzdkxrxfmkllf5nmr")))))) + +(define-public rust-sha1-smol-1 + (package + (name "rust-sha1-smol") + (version "1.0.0") + (source (origin + (method url-fetch) + (uri (crate-uri "sha1_smol" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "04nhbhvsk5ms1zbshs80iq5r1vjszp2xnm9f0ivj38q3dhc4f6mf")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs (("rust-serde" ,rust-serde-1)))) + (home-page "https://github.com/mitsuhiko/sha1-smol") + (synopsis "Dependency free SHA1 implementation") + (description + "This package provides a minimal dependency free implementation of +SHA1 for Rust.") + (license license:bsd-3))) + +(define-public rust-sha1collisiondetection-0.2 + (package + (name "rust-sha1collisiondetection") + (version "0.2.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "sha1collisiondetection" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "10nh7s3d02136kkz93pxyfv628ls5xz8ndg27pkb6na0ghccz9np")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-digest" ,rust-digest-0.9) + ("rust-generic-array" ,rust-generic-array-0.14) + ("rust-libc" ,rust-libc-0.2) + ("rust-sha-1" ,rust-sha-1-0.9) + ("rust-structopt" ,rust-structopt-0.3)))) + (home-page "https://docs.rs/sha1collisiondetection") + (synopsis "SHA-1 hash function with collision detection and mitigation") + (description + "This package implementation of the SHA-1 cryptographic hash algorithm. + +This is a port of Marc Stevens' sha1collisiondetection algorithm to Rust. The +code is translated from C to Rust using c2rust.") + (license license:expat))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 7aafde0d3d..02be51cb65 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -63770,252 +63770,6 @@ functionality and without weak references.") "This package provides a Rust wrapper around Fontxonfig.") (license license:expat))) -(define-public rust-sha-1-0.10 - (package - (name "rust-sha-1") - (version "0.10.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "sha-1" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1700fs5aiiailpd5h0ax4sgs2ngys0mqf3p4j0ry6j2p2zd8l1gm")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-cfg-if" ,rust-cfg-if-1) - ("rust-cpufeatures" ,rust-cpufeatures-0.2) - ("rust-digest" ,rust-digest-0.10) - ("rust-sha1-asm" ,rust-sha1-asm-0.5)) - #:cargo-development-inputs - (("rust-digest" ,rust-digest-0.10) - ("rust-hex-literal" ,rust-hex-literal-0.2)))) - (home-page "https://github.com/RustCrypto/hashes") - (synopsis "SHA-1 hash function") - (description "This crate provides a SHA-1 hash function.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-sha-1-0.9 - (package - (inherit rust-sha-1-0.10) - (name "rust-sha-1") - (version "0.9.8") - (source - (origin - (method url-fetch) - (uri (crate-uri "sha-1" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "19jibp8l9k5v4dnhj5kfhaczdfd997h22qz0hin6pw9wvc9ngkcr")))) - (arguments - `(#:cargo-inputs - (("rust-block-buffer" ,rust-block-buffer-0.9) - ("rust-cfg-if" ,rust-cfg-if-1) - ("rust-cpufeatures" ,rust-cpufeatures-0.2) - ("rust-digest" ,rust-digest-0.9) - ("rust-opaque-debug" ,rust-opaque-debug-0.3) - ("rust-sha1-asm" ,rust-sha1-asm-0.5)) - #:cargo-development-inputs - (("rust-digest" ,rust-digest-0.9) - ("rust-hex-literal" ,rust-hex-literal-0.2)))))) - -(define-public rust-sha-1-0.8 - (package - (inherit rust-sha-1-0.9) - (name "rust-sha-1") - (version "0.8.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "sha-1" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1pv387q0r7llk2cqzyq0nivzvkgqgzsiygqzlv7b68z9xl5lvngp")))) - (arguments - `(#:cargo-test-flags - '("--release" "--lib" "--bins" "--tests") - #:cargo-inputs - (("rust-block-buffer" ,rust-block-buffer-0.7) - ("rust-digest" ,rust-digest-0.8) - ("rust-fake-simd" ,rust-fake-simd-0.1) - ("rust-opaque-debug" ,rust-opaque-debug-0.2) - ("rust-libc" ,rust-libc-0.2) - ("rust-sha1-asm" ,rust-sha1-asm-0.4)) - #:cargo-development-inputs - (("rust-digest" ,rust-digest-0.8) - ("rust-hex-literal" ,rust-hex-literal-0.1)))))) - -(define-public rust-sha1-0.10 - (package - (name "rust-sha1") - (version "0.10.6") - (source - (origin - (method url-fetch) - (uri (crate-uri "sha1" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1fnnxlfg08xhkmwf2ahv634as30l1i3xhlhkvxflmasi5nd85gz3")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-cfg-if" ,rust-cfg-if-1) - ("rust-cpufeatures" ,rust-cpufeatures-0.2) - ("rust-digest" ,rust-digest-0.10) - ("rust-sha1-asm" ,rust-sha1-asm-0.5)) - #:cargo-development-inputs - (("rust-digest" ,rust-digest-0.10) - ("rust-hex-literal" ,rust-hex-literal-0.2)))) - (home-page "https://github.com/mitsuhiko/rust-sha1") - (synopsis "Minimal implementation of SHA1 for Rust") - (description - "This package provides a minimal implementation of SHA1 for Rust.") - (license license:bsd-3))) - -(define-public rust-sha1-0.6 - (package - (inherit rust-sha1-0.10) - (name "rust-sha1") - (version "0.6.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "sha1" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "03gs2q4m67rn2p8xcdfxhip6mpgahdwm12bnb3vh90ahv9grhy95")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-serde" ,rust-serde-1)) - #:cargo-development-inputs - (("rust-openssl" ,rust-openssl-0.10) - ("rust-rand" ,rust-rand-0.4) - ("rust-serde-json" ,rust-serde-json-1)))))) - -(define-public rust-sha1-0.2 - (package - (inherit rust-sha1-0.6) - (name "rust-sha1") - (version "0.2.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "sha1" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0p09zfhd27z6yr5in07gfjcx345010rw51ivlcf14364x3hv2c6c")))) - (arguments - `(#:tests? #f ; Tests require openssl-1.0 - #:cargo-development-inputs - (("rust-openssl" ,rust-openssl-0.7) - ("rust-rand" ,rust-rand-0.3)) - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'fix-cargo-toml - (lambda _ - (substitute* "Cargo.toml" - ((", path =.*}") "}")) - #t))))))) - -(define-public rust-sha1-asm-0.5 - (package - (name "rust-sha1-asm") - (version "0.5.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "sha1-asm" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1b7ab7f4n87pqdmbl1a5jrc2axf27pvbndsz9qiwwgxw01qlygan")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-cc" ,rust-cc-1)))) - (home-page "https://github.com/RustCrypto/asm-hashes") - (synopsis "Assembly implementation of SHA-1 compression function") - (description - "Assembly implementation of SHA-1 compression function.") - (license license:expat))) - -(define-public rust-sha1-asm-0.4 - (package - (inherit rust-sha1-asm-0.5) - (name "rust-sha1-asm") - (version "0.4.4") - (source - (origin - (method url-fetch) - (uri (crate-uri "sha1-asm" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1z5vdimd7l0vmr2p7kjibi0rghf5frb1ld0gzdkxrxfmkllf5nmr")))))) - -(define-public rust-sha1-smol-1 - (package - (name "rust-sha1-smol") - (version "1.0.0") - (source (origin - (method url-fetch) - (uri (crate-uri "sha1_smol" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "04nhbhvsk5ms1zbshs80iq5r1vjszp2xnm9f0ivj38q3dhc4f6mf")))) - (build-system cargo-build-system) - (arguments - `(#:skip-build? #t - #:cargo-inputs (("rust-serde" ,rust-serde-1)))) - (home-page "https://github.com/mitsuhiko/sha1-smol") - (synopsis "Dependency free SHA1 implementation") - (description - "This package provides a minimal dependency free implementation of -SHA1 for Rust.") - (license license:bsd-3))) - -(define-public rust-sha1collisiondetection-0.2 - (package - (name "rust-sha1collisiondetection") - (version "0.2.3") - (source - (origin - (method url-fetch) - (uri (crate-uri "sha1collisiondetection" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "10nh7s3d02136kkz93pxyfv628ls5xz8ndg27pkb6na0ghccz9np")))) - (build-system cargo-build-system) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-digest" ,rust-digest-0.9) - ("rust-generic-array" ,rust-generic-array-0.14) - ("rust-libc" ,rust-libc-0.2) - ("rust-sha-1" ,rust-sha-1-0.9) - ("rust-structopt" ,rust-structopt-0.3)))) - (home-page "https://docs.rs/sha1collisiondetection") - (synopsis "SHA-1 hash function with collision detection and mitigation") - (description - "This package implementation of the SHA-1 cryptographic hash algorithm. - -This is a port of Marc Stevens' sha1collisiondetection algorithm to Rust. The -code is translated from C to Rust using c2rust.") - (license license:expat))) - (define-public rust-sha2-0.10 (package (name "rust-sha2") diff --git a/gnu/packages/crates-vcs.scm b/gnu/packages/crates-vcs.scm index ec5648991a..ebc1f254e1 100644 --- a/gnu/packages/crates-vcs.scm +++ b/gnu/packages/crates-vcs.scm @@ -31,6 +31,7 @@ #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages compression) + #:use-module (gnu packages crates-crypto) #:use-module (gnu packages crates-io) #:use-module (gnu packages crates-windows) #:use-module (gnu packages curl) diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm index b680a8588a..c9839351e0 100644 --- a/gnu/packages/crates-web.scm +++ b/gnu/packages/crates-web.scm @@ -32,6 +32,7 @@ #:use-module (guix utils) #:use-module (guix gexp) #:use-module (gnu packages) + #:use-module (gnu packages crates-crypto) #:use-module (gnu packages crates-io) #:use-module (gnu packages crates-gtk) #:use-module (gnu packages crates-tls) -- cgit v1.2.3 From b5dc613fce054837410a9cc573c7e611824c8d0e Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:40:46 +0200 Subject: gnu: rust-sha2: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-sha2-0.10, rust-sha2-0.9, rust-sha2-0.8, rust-sha2-0.7, rust-sha2-asm-0.6, rust-sha2-asm-0.5): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: Ice09b342642a141bff1d343bd2187ebef0238cda --- gnu/packages/crates-crypto.scm | 133 +++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 133 ----------------------------------------- gnu/packages/web.scm | 1 + 3 files changed, 134 insertions(+), 133 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 284b798f17..ffa8daab55 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -3122,3 +3122,136 @@ SHA1 for Rust.") This is a port of Marc Stevens' sha1collisiondetection algorithm to Rust. The code is translated from C to Rust using c2rust.") (license license:expat))) + +(define-public rust-sha2-0.10 + (package + (name "rust-sha2") + (version "0.10.8") + (source + (origin + (method url-fetch) + (uri (crate-uri "sha2" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1j1x78zk9il95w9iv46dh9wm73r6xrgj32y6lzzw7bxws9dbfgbr")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-cfg-if" ,rust-cfg-if-1) + ("rust-cpufeatures" ,rust-cpufeatures-0.2) + ("rust-digest" ,rust-digest-0.10) + ("rust-sha2-asm" ,rust-sha2-asm-0.6)) + #:cargo-development-inputs + (("rust-digest" ,rust-digest-0.10) + ("rust-hex-literal" ,rust-hex-literal-0.2)))) + (home-page "https://github.com/RustCrypto/hashes") + (synopsis "SHA-2 hash functions") + (description + "This package provides a pure Rust implementation of the SHA-2 hash +function family including SHA-224, SHA-256, SHA-384, and SHA-512.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-sha2-0.9 + (package + (inherit rust-sha2-0.10) + (name "rust-sha2") + (version "0.9.9") + (source + (origin + (method url-fetch) + (uri (crate-uri "sha2" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "006q2f0ar26xcjxqz8zsncfgz86zqa5dkwlwv03rhx1rpzhs2n2d")))) + (arguments + `(#:cargo-inputs + (("rust-block-buffer" ,rust-block-buffer-0.9) + ("rust-cfg-if" ,rust-cfg-if-1) + ("rust-cpufeatures" ,rust-cpufeatures-0.2) + ("rust-digest" ,rust-digest-0.9) + ("rust-opaque-debug" ,rust-opaque-debug-0.3) + ("rust-sha2-asm" ,rust-sha2-asm-0.6)) + #:cargo-development-inputs + (("rust-digest" ,rust-digest-0.9) + ("rust-hex-literal" ,rust-hex-literal-0.2)))))) + +(define-public rust-sha2-0.8 + (package + (inherit rust-sha2-0.9) + (name "rust-sha2") + (version "0.8.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "sha2" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0s9yddvyg6anaikdl86wmwfim25c0d4m0xq0y2ghs34alxpg8mm2")))) + (arguments + `(#:cargo-test-flags + '("--release" "--lib" "--bins" "--tests") + #:cargo-inputs + (("rust-block-buffer" ,rust-block-buffer-0.7) + ("rust-digest" ,rust-digest-0.8) + ("rust-fake-simd" ,rust-fake-simd-0.1) + ("rust-libc" ,rust-libc-0.2) + ("rust-opaque-debug" ,rust-opaque-debug-0.2) + ("rust-sha2-asm" ,rust-sha2-asm-0.5)) + #:cargo-development-inputs + (("rust-digest" ,rust-digest-0.8) + ("rust-hex-literal" ,rust-hex-literal-0.1)))))) + +(define-public rust-sha2-0.7 + (package + (inherit rust-sha2-0.9) + (name "rust-sha2") + (version "0.7.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "sha2" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "183yhkj16i7yzdp8i7aavpy329vz5xrd502233bq8fn2whjbxdly")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-block-buffer" ,rust-block-buffer-0.3) + ("rust-byte-tools" ,rust-byte-tools-0.2) + ("rust-digest" ,rust-digest-0.7) + ("rust-fake-simd" ,rust-fake-simd-0.1) + ("rust-sha2-asm" ,rust-sha2-asm-0.5)))))) + +(define-public rust-sha2-asm-0.6 + (package + (name "rust-sha2-asm") + (version "0.6.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "sha2-asm" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0kp480744vkwg3fqx98379nsdw1lzzzimd88v0qgpqqic03afyzj")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-cc" ,rust-cc-1)))) ;build dependency + (home-page "https://github.com/RustCrypto/asm-hashes") + (synopsis "Assembly implementation of SHA-2") + (description "This package provides an assembly implementations of hash +functions core functionality.") + (license license:expat))) + +(define-public rust-sha2-asm-0.5 + (package + (inherit rust-sha2-asm-0.6) + (name "rust-sha2-asm") + (version "0.5.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "sha2-asm" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0y4n8r4362y2fa6p2j0dgny4zfi194gdf01l6j850n9vf8ha3kwj")))))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 02be51cb65..b73e9301b5 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -63770,139 +63770,6 @@ functionality and without weak references.") "This package provides a Rust wrapper around Fontxonfig.") (license license:expat))) -(define-public rust-sha2-0.10 - (package - (name "rust-sha2") - (version "0.10.8") - (source - (origin - (method url-fetch) - (uri (crate-uri "sha2" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1j1x78zk9il95w9iv46dh9wm73r6xrgj32y6lzzw7bxws9dbfgbr")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-cfg-if" ,rust-cfg-if-1) - ("rust-cpufeatures" ,rust-cpufeatures-0.2) - ("rust-digest" ,rust-digest-0.10) - ("rust-sha2-asm" ,rust-sha2-asm-0.6)) - #:cargo-development-inputs - (("rust-digest" ,rust-digest-0.10) - ("rust-hex-literal" ,rust-hex-literal-0.2)))) - (home-page "https://github.com/RustCrypto/hashes") - (synopsis "SHA-2 hash functions") - (description - "This package provides a pure Rust implementation of the SHA-2 hash -function family including SHA-224, SHA-256, SHA-384, and SHA-512.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-sha2-0.9 - (package - (inherit rust-sha2-0.10) - (name "rust-sha2") - (version "0.9.9") - (source - (origin - (method url-fetch) - (uri (crate-uri "sha2" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "006q2f0ar26xcjxqz8zsncfgz86zqa5dkwlwv03rhx1rpzhs2n2d")))) - (arguments - `(#:cargo-inputs - (("rust-block-buffer" ,rust-block-buffer-0.9) - ("rust-cfg-if" ,rust-cfg-if-1) - ("rust-cpufeatures" ,rust-cpufeatures-0.2) - ("rust-digest" ,rust-digest-0.9) - ("rust-opaque-debug" ,rust-opaque-debug-0.3) - ("rust-sha2-asm" ,rust-sha2-asm-0.6)) - #:cargo-development-inputs - (("rust-digest" ,rust-digest-0.9) - ("rust-hex-literal" ,rust-hex-literal-0.2)))))) - -(define-public rust-sha2-0.8 - (package - (inherit rust-sha2-0.9) - (name "rust-sha2") - (version "0.8.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "sha2" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0s9yddvyg6anaikdl86wmwfim25c0d4m0xq0y2ghs34alxpg8mm2")))) - (arguments - `(#:cargo-test-flags - '("--release" "--lib" "--bins" "--tests") - #:cargo-inputs - (("rust-block-buffer" ,rust-block-buffer-0.7) - ("rust-digest" ,rust-digest-0.8) - ("rust-fake-simd" ,rust-fake-simd-0.1) - ("rust-libc" ,rust-libc-0.2) - ("rust-opaque-debug" ,rust-opaque-debug-0.2) - ("rust-sha2-asm" ,rust-sha2-asm-0.5)) - #:cargo-development-inputs - (("rust-digest" ,rust-digest-0.8) - ("rust-hex-literal" ,rust-hex-literal-0.1)))))) - -(define-public rust-sha2-0.7 - (package - (inherit rust-sha2-0.9) - (name "rust-sha2") - (version "0.7.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "sha2" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "183yhkj16i7yzdp8i7aavpy329vz5xrd502233bq8fn2whjbxdly")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-block-buffer" ,rust-block-buffer-0.3) - ("rust-byte-tools" ,rust-byte-tools-0.2) - ("rust-digest" ,rust-digest-0.7) - ("rust-fake-simd" ,rust-fake-simd-0.1) - ("rust-sha2-asm" ,rust-sha2-asm-0.5)))))) - -(define-public rust-sha2-asm-0.6 - (package - (name "rust-sha2-asm") - (version "0.6.3") - (source - (origin - (method url-fetch) - (uri (crate-uri "sha2-asm" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0kp480744vkwg3fqx98379nsdw1lzzzimd88v0qgpqqic03afyzj")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-cc" ,rust-cc-1)))) ;build dependency - (home-page "https://github.com/RustCrypto/asm-hashes") - (synopsis "Assembly implementation of SHA-2") - (description "This package provides an assembly implementations of hash -functions core functionality.") - (license license:expat))) - -(define-public rust-sha2-asm-0.5 - (package - (inherit rust-sha2-asm-0.6) - (name "rust-sha2-asm") - (version "0.5.4") - (source - (origin - (method url-fetch) - (uri (crate-uri "sha2-asm" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0y4n8r4362y2fa6p2j0dgny4zfi194gdf01l6j850n9vf8ha3kwj")))))) - (define-public rust-sha3-0.10 (package (name "rust-sha3") diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 91f96759af..49eb3a0fb7 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -119,6 +119,7 @@ #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages cpp) + #:use-module (gnu packages crates-crypto) #:use-module (gnu packages crates-io) #:use-module (gnu packages crates-gtk) #:use-module (gnu packages crates-tls) -- cgit v1.2.3 From 9be388166fbaf2c889046999c2ed0388606c47df Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:42:10 +0200 Subject: gnu: rust-sha3: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-sha3-0.10, rust-sha3-0.9): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: Id3187669932f43dae98eb89aea4d9c1da27e2c9a --- gnu/packages/crates-crypto.scm | 47 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 47 ------------------------------------------ 2 files changed, 47 insertions(+), 47 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index ffa8daab55..817328bfea 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -3255,3 +3255,50 @@ functions core functionality.") (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0y4n8r4362y2fa6p2j0dgny4zfi194gdf01l6j850n9vf8ha3kwj")))))) + +(define-public rust-sha3-0.10 + (package + (name "rust-sha3") + (version "0.10.8") + (source (origin + (method url-fetch) + (uri (crate-uri "sha3" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0q5s3qlwnk8d5j34jya98j1v2p3009wdmnqdza3yydwgi8kjv1vm")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-digest" ,rust-digest-0.10) + ("rust-keccak" ,rust-keccak-0.1)) + #:cargo-development-inputs + (("rust-digest" ,rust-digest-0.10) + ("rust-hex-literal" ,rust-hex-literal-0.2)))) + (home-page "https://github.com/RustCrypto/hashes") + (synopsis "SHA-3 (Keccak) hash function") + (description "This package provides a pure Rust implementation of the SHA-3 +(Keccak) hash function.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-sha3-0.9 + (package + (inherit rust-sha3-0.10) + (name "rust-sha3") + (version "0.9.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "sha3" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "02d85wpvz75a0n7r2da15ikqjwzamhii11qy9gqf6pafgm0rj4gq")))) + (arguments + `(#:cargo-inputs + (("rust-block-buffer" ,rust-block-buffer-0.9) + ("rust-digest" ,rust-digest-0.9) + ("rust-keccak" ,rust-keccak-0.1) + ("rust-opaque-debug" ,rust-opaque-debug-0.3)) + #:cargo-development-inputs + (("rust-digest" ,rust-digest-0.9) + ("rust-hex-literal" ,rust-hex-literal-0.2)))))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index b73e9301b5..414658a963 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -63770,53 +63770,6 @@ functionality and without weak references.") "This package provides a Rust wrapper around Fontxonfig.") (license license:expat))) -(define-public rust-sha3-0.10 - (package - (name "rust-sha3") - (version "0.10.8") - (source (origin - (method url-fetch) - (uri (crate-uri "sha3" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0q5s3qlwnk8d5j34jya98j1v2p3009wdmnqdza3yydwgi8kjv1vm")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-digest" ,rust-digest-0.10) - ("rust-keccak" ,rust-keccak-0.1)) - #:cargo-development-inputs - (("rust-digest" ,rust-digest-0.10) - ("rust-hex-literal" ,rust-hex-literal-0.2)))) - (home-page "https://github.com/RustCrypto/hashes") - (synopsis "SHA-3 (Keccak) hash function") - (description "This package provides a pure Rust implementation of the SHA-3 -(Keccak) hash function.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-sha3-0.9 - (package - (inherit rust-sha3-0.10) - (name "rust-sha3") - (version "0.9.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "sha3" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "02d85wpvz75a0n7r2da15ikqjwzamhii11qy9gqf6pafgm0rj4gq")))) - (arguments - `(#:cargo-inputs - (("rust-block-buffer" ,rust-block-buffer-0.9) - ("rust-digest" ,rust-digest-0.9) - ("rust-keccak" ,rust-keccak-0.1) - ("rust-opaque-debug" ,rust-opaque-debug-0.3)) - #:cargo-development-inputs - (("rust-digest" ,rust-digest-0.9) - ("rust-hex-literal" ,rust-hex-literal-0.2)))))) - (define-public rust-shadow-rs-0.8 (package (name "rust-shadow-rs") -- cgit v1.2.3 From 1013e1bca0c99a7de9b1e324d6d52250e1a7cbaf Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:43:32 +0200 Subject: gnu: rust-signature: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-signature-2, rust-signature-1, rust-signature-derive-2, rust-signature-derive-1): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: Ib6e273c2d2e0221226417d6b761c8369f18ee571 --- gnu/packages/crates-crypto.scm | 94 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 94 ------------------------------------------ 2 files changed, 94 insertions(+), 94 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 817328bfea..e728bf479c 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -3302,3 +3302,97 @@ functions core functionality.") #:cargo-development-inputs (("rust-digest" ,rust-digest-0.9) ("rust-hex-literal" ,rust-hex-literal-0.2)))))) + +(define-public rust-signature-2 + (package + (name "rust-signature") + (version "2.1.0") + (source (origin + (method url-fetch) + (uri (crate-uri "signature" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "00457czdia5gvll3a1vzf2ffsdpgcz2dz0h56z7zk28nsbp8h5sy")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-digest" ,rust-digest-0.10) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-signature-derive" ,rust-signature-derive-2)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-sha2" ,rust-sha2-0.10)))) + (home-page "https://github.com/RustCrypto/traits/tree/master/signature") + (synopsis + "Traits for cryptographic signature algorithms (e.g. ECDSA, Ed25519)") + (description + "This package contains traits which provide generic, object-safe APIs +for generating and verifying digital signatures.") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-signature-1 + (package + (inherit rust-signature-2) + (name "rust-signature") + (version "1.6.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "signature" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0z3xg405pg827g6hfdprnszsdqkkbrsfx7f1dl04nv9g7cxks8vl")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-digest" ,rust-digest-0.10) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-signature-derive" ,rust-signature-derive-1)))))) + +(define-public rust-signature-derive-2 + (package + (name "rust-signature-derive") + (version "2.0.1") + (source (origin + (method url-fetch) + (uri (crate-uri "signature_derive" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1z0mjjg3fpj08kc3nkax4lczgp7sfzbcm8q2qgim865510wkgpxc")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-2)))) + (home-page + "https://github.com/RustCrypto/traits/tree/master/signature/derive") + (synopsis "Custom derive support for the 'signature' crate") + (description "This package provides proc macros used by the signature +crate. + +It's not intended to be used directly. See the signature crate's documentation +for additional details.") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-signature-derive-1 + (package + (inherit rust-signature-derive-2) + (name "rust-signature-derive") + (version "1.0.0-pre.7") + (source + (origin + (method url-fetch) + (uri (crate-uri "signature_derive" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "03wj342zvljknqwg3qbc9acrcsrzhdp1d2d6pfrh4p1b087k3rln")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-1) + ("rust-synstructure" ,rust-synstructure-0.12)))))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 414658a963..b73dcbed5e 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -64141,100 +64141,6 @@ words, like Python's shlex.") (description "This package is a backend crate for @code{signal-hook}.") (license (list license:asl2.0 license:expat)))) -(define-public rust-signature-2 - (package - (name "rust-signature") - (version "2.1.0") - (source (origin - (method url-fetch) - (uri (crate-uri "signature" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "00457czdia5gvll3a1vzf2ffsdpgcz2dz0h56z7zk28nsbp8h5sy")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-digest" ,rust-digest-0.10) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-signature-derive" ,rust-signature-derive-2)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-sha2" ,rust-sha2-0.10)))) - (home-page "https://github.com/RustCrypto/traits/tree/master/signature") - (synopsis - "Traits for cryptographic signature algorithms (e.g. ECDSA, Ed25519)") - (description - "This package contains traits which provide generic, object-safe APIs -for generating and verifying digital signatures.") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-signature-1 - (package - (inherit rust-signature-2) - (name "rust-signature") - (version "1.6.4") - (source - (origin - (method url-fetch) - (uri (crate-uri "signature" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0z3xg405pg827g6hfdprnszsdqkkbrsfx7f1dl04nv9g7cxks8vl")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-digest" ,rust-digest-0.10) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-signature-derive" ,rust-signature-derive-1)))))) - -(define-public rust-signature-derive-2 - (package - (name "rust-signature-derive") - (version "2.0.1") - (source (origin - (method url-fetch) - (uri (crate-uri "signature_derive" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1z0mjjg3fpj08kc3nkax4lczgp7sfzbcm8q2qgim865510wkgpxc")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-proc-macro2" ,rust-proc-macro2-1) - ("rust-quote" ,rust-quote-1) - ("rust-syn" ,rust-syn-2)))) - (home-page - "https://github.com/RustCrypto/traits/tree/master/signature/derive") - (synopsis "Custom derive support for the 'signature' crate") - (description "This package provides proc macros used by the signature -crate. - -It's not intended to be used directly. See the signature crate's documentation -for additional details.") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-signature-derive-1 - (package - (inherit rust-signature-derive-2) - (name "rust-signature-derive") - (version "1.0.0-pre.7") - (source - (origin - (method url-fetch) - (uri (crate-uri "signature_derive" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "03wj342zvljknqwg3qbc9acrcsrzhdp1d2d6pfrh4p1b087k3rln")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-proc-macro2" ,rust-proc-macro2-1) - ("rust-quote" ,rust-quote-1) - ("rust-syn" ,rust-syn-1) - ("rust-synstructure" ,rust-synstructure-0.12)))))) - (define-public rust-simba-0.8 (package (name "rust-simba") -- cgit v1.2.3 From a993516c89c444c41d4767211c434193083e8ffe Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:44:42 +0200 Subject: gnu: rust-subtle: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-subtle-2, rust-subtle-1, rust-subtle-ng-2): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I894775cbe88a2b24e0d10c4a6c603964be9505ce --- gnu/packages/crates-crypto.scm | 58 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 58 ------------------------------------------ 2 files changed, 58 insertions(+), 58 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index e728bf479c..1d14a14251 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -3396,3 +3396,61 @@ for additional details.") ("rust-quote" ,rust-quote-1) ("rust-syn" ,rust-syn-1) ("rust-synstructure" ,rust-synstructure-0.12)))))) + +(define-public rust-subtle-2 + (package + (name "rust-subtle") + (version "2.5.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "subtle" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1g2yjs7gffgmdvkkq0wrrh0pxds3q0dv6dhkw9cdpbib656xdkc1")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-development-inputs (("rust-rand" ,rust-rand-0.8)))) + (home-page "https://dalek.rs/") + (synopsis + "Pure-Rust traits and utilities for cryptographic implementations") + (description + "This package provides Pure-Rust traits and utilities for constant-time +cryptographic implementations.") + (license license:bsd-3))) + +(define-public rust-subtle-1 + (package + (inherit rust-subtle-2) + (name "rust-subtle") + (version "1.0.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "subtle" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1vm80mxbwfj334izwm8x8l65v1xl9hr0kwrg36r1rq565fkaarrd")))))) + +(define-public rust-subtle-ng-2 + (package + (name "rust-subtle-ng") + (version "2.5.0") + (source (origin + (method url-fetch) + (uri (crate-uri "subtle-ng" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0hj1wp8xl64bjhbvlfffmllqy7wdw2b505f32gn3qqic4vmpcikk")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-development-inputs (("rust-rand" ,rust-rand-0.7)))) + (home-page "https://dalek.rs/") + (synopsis "Pure-Rust for constant-time cryptographic implementations") + (description + "This package provides pure-Rust traits and utilities for constant-time +cryptographic implementations.") + (license license:bsd-3))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index b73dcbed5e..b196f720fd 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -68575,64 +68575,6 @@ suites, typically generated by @code{subplot codegen}.") inspired by Python's subprocess module, with Rust-specific extensions.") (license (list license:asl2.0 license:expat)))) -(define-public rust-subtle-2 - (package - (name "rust-subtle") - (version "2.5.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "subtle" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1g2yjs7gffgmdvkkq0wrrh0pxds3q0dv6dhkw9cdpbib656xdkc1")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-development-inputs (("rust-rand" ,rust-rand-0.8)))) - (home-page "https://dalek.rs/") - (synopsis - "Pure-Rust traits and utilities for cryptographic implementations") - (description - "This package provides Pure-Rust traits and utilities for constant-time -cryptographic implementations.") - (license license:bsd-3))) - -(define-public rust-subtle-1 - (package - (inherit rust-subtle-2) - (name "rust-subtle") - (version "1.0.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "subtle" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1vm80mxbwfj334izwm8x8l65v1xl9hr0kwrg36r1rq565fkaarrd")))))) - -(define-public rust-subtle-ng-2 - (package - (name "rust-subtle-ng") - (version "2.5.0") - (source (origin - (method url-fetch) - (uri (crate-uri "subtle-ng" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0hj1wp8xl64bjhbvlfffmllqy7wdw2b505f32gn3qqic4vmpcikk")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-development-inputs (("rust-rand" ,rust-rand-0.7)))) - (home-page "https://dalek.rs/") - (synopsis "Pure-Rust for constant-time cryptographic implementations") - (description - "This package provides pure-Rust traits and utilities for constant-time -cryptographic implementations.") - (license license:bsd-3))) - (define-public rust-surf-2 (package (name "rust-surf") -- cgit v1.2.3 From f08ce35a8f7ebdb64194cdd58ed5259facddc5ce Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:46:00 +0200 Subject: gnu: rust-tiger-0.1: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-tiger-0.1): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I1dc81d0abd741d208df4f7fa96c8e69ae7b5b1e6 --- gnu/packages/crates-crypto.scm | 27 +++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 27 --------------------------- 2 files changed, 27 insertions(+), 27 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 1d14a14251..36693d5212 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -3454,3 +3454,30 @@ cryptographic implementations.") "This package provides pure-Rust traits and utilities for constant-time cryptographic implementations.") (license license:bsd-3))) + +(define-public rust-tiger-0.1 + (package + (name "rust-tiger") + (version "0.1.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "tiger" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "01bhc7h8kxc5kjqx9sqrb3g8h4f9av6hpxzyihjq7pprphf56gj4")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-block-buffer" ,rust-block-buffer-0.9) + ("rust-byteorder" ,rust-byteorder-1) + ("rust-digest" ,rust-digest-0.9)) + #:cargo-development-inputs + (("rust-digest" ,rust-digest-0.9) + ("rust-hex-literal" ,rust-hex-literal-0.2)))) + (home-page "https://github.com/RustCrypto/hashes") + (synopsis "Tiger hash function") + (description + "This package provides the Tiger cryptographic hash function.") + (license (list license:expat license:asl2.0)))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index b196f720fd..7cd94fc925 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -72811,33 +72811,6 @@ fixed set of worker threads.") "This crate provides Rust bindings for the Apache Thrift RPC system.") (license license:asl2.0))) -(define-public rust-tiger-0.1 - (package - (name "rust-tiger") - (version "0.1.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "tiger" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "01bhc7h8kxc5kjqx9sqrb3g8h4f9av6hpxzyihjq7pprphf56gj4")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-block-buffer" ,rust-block-buffer-0.9) - ("rust-byteorder" ,rust-byteorder-1) - ("rust-digest" ,rust-digest-0.9)) - #:cargo-development-inputs - (("rust-digest" ,rust-digest-0.9) - ("rust-hex-literal" ,rust-hex-literal-0.2)))) - (home-page "https://github.com/RustCrypto/hashes") - (synopsis "Tiger hash function") - (description - "This package provides the Tiger cryptographic hash function.") - (license (list license:expat license:asl2.0)))) - (define-public rust-tikv-jemalloc-sys-0.4 (package (name "rust-tikv-jemalloc-sys") -- cgit v1.2.3 From d77dad8e1d5c74c9a3625d495362ab5a0dcbb202 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:47:05 +0200 Subject: gnu: rust-universal-hash: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-universal-hash-0.5, rust-universal-hash-0.4, rust-universal-hash-0.3): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I4ccca652dc09ab4b99f2bf072de61b80227700c8 --- gnu/packages/crates-crypto.scm | 61 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 61 ------------------------------------------ 2 files changed, 61 insertions(+), 61 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 36693d5212..e1dc086619 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -3481,3 +3481,64 @@ cryptographic implementations.") (description "This package provides the Tiger cryptographic hash function.") (license (list license:expat license:asl2.0)))) + +(define-public rust-universal-hash-0.5 + (package + (name "rust-universal-hash") + (version "0.5.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "universal-hash" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1sh79x677zkncasa95wz05b36134822w6qxmi1ck05fwi33f47gw")) + (snippet + #~(begin (use-modules (guix build utils)) + (substitute* "Cargo.toml" + (("=2\\.4\\.1") "^2.4.1")))))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-crypto-common" ,rust-crypto-common-0.1) + ("rust-subtle" ,rust-subtle-2)))) + (home-page "https://github.com/RustCrypto/traits") + (synopsis "Trait for universal hash functions") + (description "This package provides traits for universal hash functions.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-universal-hash-0.4 + (package + (inherit rust-universal-hash-0.5) + (name "rust-universal-hash") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "universal-hash" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "00hljq64l0p68yrncvyww4cdgkzpzl49vrlnj57kwblkak3b49l3")))) + (arguments + `(#:cargo-inputs + (("rust-generic-array" ,rust-generic-array-0.14) + ("rust-subtle" ,rust-subtle-2)))))) + +(define-public rust-universal-hash-0.3 + (package + (inherit rust-universal-hash-0.4) + (name "rust-universal-hash") + (version "0.3.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "universal-hash" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "00aa241pab99z66f0s464vdrxnk3igs8z1qm6j01chcv5w7r036z")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-generic-array" ,rust-generic-array-0.12) + ("rust-subtle" ,rust-subtle-2)))))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 7cd94fc925..cc229dc853 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -78621,67 +78621,6 @@ whitespace from a string.") clear display in the output.") (license (list license:expat license:asl2.0)))) -(define-public rust-universal-hash-0.5 - (package - (name "rust-universal-hash") - (version "0.5.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "universal-hash" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1sh79x677zkncasa95wz05b36134822w6qxmi1ck05fwi33f47gw")) - (snippet - #~(begin (use-modules (guix build utils)) - (substitute* "Cargo.toml" - (("=2\\.4\\.1") "^2.4.1")))))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-crypto-common" ,rust-crypto-common-0.1) - ("rust-subtle" ,rust-subtle-2)))) - (home-page "https://github.com/RustCrypto/traits") - (synopsis "Trait for universal hash functions") - (description "This package provides traits for universal hash functions.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-universal-hash-0.4 - (package - (inherit rust-universal-hash-0.5) - (name "rust-universal-hash") - (version "0.4.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "universal-hash" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "00hljq64l0p68yrncvyww4cdgkzpzl49vrlnj57kwblkak3b49l3")))) - (arguments - `(#:cargo-inputs - (("rust-generic-array" ,rust-generic-array-0.14) - ("rust-subtle" ,rust-subtle-2)))))) - -(define-public rust-universal-hash-0.3 - (package - (inherit rust-universal-hash-0.4) - (name "rust-universal-hash") - (version "0.3.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "universal-hash" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "00aa241pab99z66f0s464vdrxnk3igs8z1qm6j01chcv5w7r036z")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-generic-array" ,rust-generic-array-0.12) - ("rust-subtle" ,rust-subtle-2)))))) - (define-public rust-unix-socket-0.5 (package (name "rust-unix-socket") -- cgit v1.2.3 From e2a7867ad5de8dd84a554783006a997c4ba0fdf6 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:48:26 +0200 Subject: gnu: rust-aead: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-aead-0.5, rust-aead-0.4, rust-aead-0.3, rust-aead-0.2): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: If5a4b1f04a20e15ae03238d8d5d46e3a9b3dcc4b --- gnu/packages/crates-crypto.scm | 90 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 90 ------------------------------------------ 2 files changed, 90 insertions(+), 90 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index e1dc086619..56ae4c58df 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -61,6 +61,96 @@ ;;; Please: Try to add new module packages in alphabetic order. ;;; +(define-public rust-aead-0.5 + (package + (name "rust-aead") + (version "0.5.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "aead" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1j6pmc8pk4ha64bj9l6xzbhd85s2y1dblna2zsq83h0zy6w2w6aw")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-blobby" ,rust-blobby-0.3) + ("rust-bytes" ,rust-bytes-1) + ("rust-crypto-common" ,rust-crypto-common-0.1) + ("rust-generic-array" ,rust-generic-array-0.14) + ("rust-heapless" ,rust-heapless-0.7)))) + (home-page "https://github.com/RustCrypto/traits") + (synopsis + "Traits for Authenticated Encryption with Associated Data (AEAD) algorithms") + (description + "This package provides traits for Authenticated Encryption with Associated +Data (AEAD) algorithms, such as AES-GCM as ChaCha20Poly1305, which provide a +high-level API.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-aead-0.4 + (package + (inherit rust-aead-0.5) + (name "rust-aead") + (version "0.4.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "aead" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0xw8kp9j1whfdxhgmr2qf9xgslkg52zh6gzmhsh13y9w3s73nq8b")))) + (arguments + `(#:cargo-inputs + (("rust-blobby" ,rust-blobby-0.3) + ("rust-generic-array" ,rust-generic-array-0.14) + ("rust-heapless" ,rust-heapless-0.7) + ("rust-rand-core" ,rust-rand-core-0.6)))))) + +(define-public rust-aead-0.3 + (package + (name "rust-aead") + (version "0.3.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "aead" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0c8388alvivcj4qkxgh4s4l6fbczn3p8wc0pnar6crlfvcdmvjbz")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-blobby" ,rust-blobby-0.3) + ("rust-generic-array" ,rust-generic-array-0.14) + ("rust-heapless" ,rust-heapless-0.5)))) + (home-page "https://github.com/RustCrypto/traits") + (synopsis "Traits for Authenticated Encryption with Associated Data (AEAD) +algorithms") + (description "This package provides traits for Authenticated Encryption +with Associated Data (AEAD) algorithms.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-aead-0.2 + (package + (inherit rust-aead-0.3) + (name "rust-aead") + (version "0.2.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "aead" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1r3ijikx9h117q0xgkc56yb0501kifjr3gsfp5bvnrz7asdipw2c")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-generic-array" ,rust-generic-array-0.12) + ("rust-heapless" ,rust-heapless-0.5)))))) + (define-public rust-aes-0.8 (package (name "rust-aes") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index cc229dc853..bbaf33e293 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -644,96 +644,6 @@ the Rust programming language.") (license (list license:bsd-3 license:zlib)))) -(define-public rust-aead-0.5 - (package - (name "rust-aead") - (version "0.5.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "aead" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1j6pmc8pk4ha64bj9l6xzbhd85s2y1dblna2zsq83h0zy6w2w6aw")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-blobby" ,rust-blobby-0.3) - ("rust-bytes" ,rust-bytes-1) - ("rust-crypto-common" ,rust-crypto-common-0.1) - ("rust-generic-array" ,rust-generic-array-0.14) - ("rust-heapless" ,rust-heapless-0.7)))) - (home-page "https://github.com/RustCrypto/traits") - (synopsis - "Traits for Authenticated Encryption with Associated Data (AEAD) algorithms") - (description - "This package provides traits for Authenticated Encryption with Associated -Data (AEAD) algorithms, such as AES-GCM as ChaCha20Poly1305, which provide a -high-level API.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-aead-0.4 - (package - (inherit rust-aead-0.5) - (name "rust-aead") - (version "0.4.3") - (source - (origin - (method url-fetch) - (uri (crate-uri "aead" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0xw8kp9j1whfdxhgmr2qf9xgslkg52zh6gzmhsh13y9w3s73nq8b")))) - (arguments - `(#:cargo-inputs - (("rust-blobby" ,rust-blobby-0.3) - ("rust-generic-array" ,rust-generic-array-0.14) - ("rust-heapless" ,rust-heapless-0.7) - ("rust-rand-core" ,rust-rand-core-0.6)))))) - -(define-public rust-aead-0.3 - (package - (name "rust-aead") - (version "0.3.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "aead" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0c8388alvivcj4qkxgh4s4l6fbczn3p8wc0pnar6crlfvcdmvjbz")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-blobby" ,rust-blobby-0.3) - ("rust-generic-array" ,rust-generic-array-0.14) - ("rust-heapless" ,rust-heapless-0.5)))) - (home-page "https://github.com/RustCrypto/traits") - (synopsis "Traits for Authenticated Encryption with Associated Data (AEAD) -algorithms") - (description "This package provides traits for Authenticated Encryption -with Associated Data (AEAD) algorithms.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-aead-0.2 - (package - (inherit rust-aead-0.3) - (name "rust-aead") - (version "0.2.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "aead" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1r3ijikx9h117q0xgkc56yb0501kifjr3gsfp5bvnrz7asdipw2c")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-generic-array" ,rust-generic-array-0.12) - ("rust-heapless" ,rust-heapless-0.5)))))) - (define-public rust-afl-0.12 (package (name "rust-afl") -- cgit v1.2.3 From 5cd8f451eac6d6254d4ae527bdcd715730228689 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:50:19 +0200 Subject: gnu: rust-argon2-0.5: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-argon2-0.5): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I34fa8c10c4ab6e1f871230a289e6afe84148df28 --- gnu/packages/crates-crypto.scm | 30 ++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 30 ------------------------------ 2 files changed, 30 insertions(+), 30 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 56ae4c58df..0ccac7d587 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -525,6 +525,36 @@ This package is deprecated and was replaced by the @code{aes} crate.") ("rust-opaque-debug" ,rust-opaque-debug-0.2) ("rust-stream-cipher" ,rust-stream-cipher-0.3)))))) +(define-public rust-argon2-0.5 + (package + (name "rust-argon2") + (version "0.5.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "argon2" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1y820hkza66lfliaxg49zskz7agj8wf7aak528livg261an4rfhp")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-base64ct" ,rust-base64ct-1) + ("rust-blake2" ,rust-blake2-0.10) + ("rust-cpufeatures" ,rust-cpufeatures-0.2) + ("rust-password-hash" ,rust-password-hash-0.5) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.4) + ("rust-password-hash" ,rust-password-hash-0.5)))) + (home-page + "https://github.com/RustCrypto/password-hashes/tree/master/argon2") + (synopsis "Rust argon2 library") + (description + "Pure Rust implementation of the Argon2 password hashing function with support +for the Argon2d, Argon2i, and Argon2id algorithmic variants.") + (license (list license:expat license:asl2.0)))) + (define-public rust-blake2-0.10 (package (name "rust-blake2") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index bbaf33e293..52014cf7b9 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -2305,36 +2305,6 @@ CLI parser, like @code{rust-clap}, by pre-processing the arguments, like too long errors.") (license (list license:expat license:asl2.0)))) -(define-public rust-argon2-0.5 - (package - (name "rust-argon2") - (version "0.5.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "argon2" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1y820hkza66lfliaxg49zskz7agj8wf7aak528livg261an4rfhp")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-base64ct" ,rust-base64ct-1) - ("rust-blake2" ,rust-blake2-0.10) - ("rust-cpufeatures" ,rust-cpufeatures-0.2) - ("rust-password-hash" ,rust-password-hash-0.5) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.4) - ("rust-password-hash" ,rust-password-hash-0.5)))) - (home-page - "https://github.com/RustCrypto/password-hashes/tree/master/argon2") - (synopsis "Rust argon2 library") - (description - "Pure Rust implementation of the Argon2 password hashing function with support -for the Argon2d, Argon2i, and Argon2id algorithmic variants.") - (license (list license:expat license:asl2.0)))) - (define-public rust-ariadne-0.1 (package (name "rust-ariadne") -- cgit v1.2.3 From f534b1c5546af17c34ea571648bd11d35d2ebb7f Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:51:18 +0200 Subject: gnu: rust-base16ct: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-base16ct-0.2, rust-base16ct-0.1): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I1e5c5e033510140ed724557ab79e8660433fe45c --- gnu/packages/crates-crypto.scm | 34 ++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 34 ---------------------------------- 2 files changed, 34 insertions(+), 34 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 0ccac7d587..58610140ec 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -555,6 +555,40 @@ This package is deprecated and was replaced by the @code{aes} crate.") for the Argon2d, Argon2i, and Argon2id algorithmic variants.") (license (list license:expat license:asl2.0)))) +(define-public rust-base16ct-0.2 + (package + (name "rust-base16ct") + (version "0.2.0") + (source (origin + (method url-fetch) + (uri (crate-uri "base16ct" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1kylrjhdzk7qpknrvlphw8ywdnvvg39dizw9622w3wk5xba04zsc")))) + (build-system cargo-build-system) + (home-page "https://github.com/RustCrypto/formats/tree/master/base16ct") + (synopsis "Rust implementation of Base16 a.k.a hexadecimal") + (description + "This package provides a pure Rust implementation of Base16 a.k.a +hexadecimal (RFC 4648) which avoids any usages of data-dependent branches/LUTs +and thereby provides portable \"best effort\" constant-time operation and +embedded-friendly no_std support.") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-base16ct-0.1 + (package + (inherit rust-base16ct-0.2) + (name "rust-base16ct") + (version "0.1.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "base16ct" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1klccxr7igf73wpi0x3asjd8n0xjg0v6a7vxgvfk5ybvgh1hd6il")))))) + (define-public rust-blake2-0.10 (package (name "rust-blake2") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 52014cf7b9..47956960cc 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -5106,40 +5106,6 @@ systems.") API for Rust.") (license (list license:expat license:x11 license:asl2.0)))) -(define-public rust-base16ct-0.2 - (package - (name "rust-base16ct") - (version "0.2.0") - (source (origin - (method url-fetch) - (uri (crate-uri "base16ct" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1kylrjhdzk7qpknrvlphw8ywdnvvg39dizw9622w3wk5xba04zsc")))) - (build-system cargo-build-system) - (home-page "https://github.com/RustCrypto/formats/tree/master/base16ct") - (synopsis "Rust implementation of Base16 a.k.a hexadecimal") - (description - "This package provides a pure Rust implementation of Base16 a.k.a -hexadecimal (RFC 4648) which avoids any usages of data-dependent branches/LUTs -and thereby provides portable \"best effort\" constant-time operation and -embedded-friendly no_std support.") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-base16ct-0.1 - (package - (inherit rust-base16ct-0.2) - (name "rust-base16ct") - (version "0.1.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "base16ct" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1klccxr7igf73wpi0x3asjd8n0xjg0v6a7vxgvfk5ybvgh1hd6il")))))) - (define-public rust-base32-0.4 (package (name "rust-base32") -- cgit v1.2.3 From 87c5e26b440e71b32ef3f769f531df04c26e5729 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:52:22 +0200 Subject: gnu: rust-base64ct: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-base64ct-1, rust-base64ct-1.0.1): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I534b1833ac7a0d463986cf7504f37b56ced201ce --- gnu/packages/crates-crypto.scm | 39 +++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 39 --------------------------------------- 2 files changed, 39 insertions(+), 39 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 58610140ec..ef68b25c93 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -589,6 +589,45 @@ embedded-friendly no_std support.") (sha256 (base32 "1klccxr7igf73wpi0x3asjd8n0xjg0v6a7vxgvfk5ybvgh1hd6il")))))) +(define-public rust-base64ct-1 + (package + (name "rust-base64ct") + (version "1.6.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "base64ct" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0nvdba4jb8aikv60az40x2w1y96sjdq8z3yp09rwzmkhiwv1lg4c")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-development-inputs + (("rust-base64" ,rust-base64-0.21) + ("rust-proptest" ,rust-proptest-1)))) + (home-page "https://github.com/RustCrypto/formats/tree/master/base64ct") + (synopsis "Implementation of Base64 (RFC 4648)") + (description + "This package is a pure Rust implementation of Base64 (RFC 4648) which +avoids any usages of data-dependent branches/LUTs and thereby provides +portable \"best effort\" constant-time operation and embedded-friendly +@code{no_std} support.") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-base64ct-1.0.1 + (package + (inherit rust-base64ct-1) + (name "rust-base64ct") + (version "1.0.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "base64ct" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0sx4a44c2n450lsmi0q1mgfbjhkw1sx57462cv77p0mmy9mgscla")))) + (arguments '()))) + (define-public rust-blake2-0.10 (package (name "rust-blake2") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 47956960cc..1e12dac7d6 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -5296,45 +5296,6 @@ c6e7d37. However, this package works only up to 128 bytes.") #:cargo-development-inputs (("rust-rand" ,rust-rand-0.4)))))) -(define-public rust-base64ct-1 - (package - (name "rust-base64ct") - (version "1.6.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "base64ct" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0nvdba4jb8aikv60az40x2w1y96sjdq8z3yp09rwzmkhiwv1lg4c")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-development-inputs - (("rust-base64" ,rust-base64-0.21) - ("rust-proptest" ,rust-proptest-1)))) - (home-page "https://github.com/RustCrypto/formats/tree/master/base64ct") - (synopsis "Implementation of Base64 (RFC 4648)") - (description - "This package is a pure Rust implementation of Base64 (RFC 4648) which -avoids any usages of data-dependent branches/LUTs and thereby provides -portable \"best effort\" constant-time operation and embedded-friendly -@code{no_std} support.") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-base64ct-1.0.1 - (package - (inherit rust-base64ct-1) - (name "rust-base64ct") - (version "1.0.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "base64ct" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0sx4a44c2n450lsmi0q1mgfbjhkw1sx57462cv77p0mmy9mgscla")))) - (arguments '()))) - (define-public rust-base-x-0.2 (package (name "rust-base-x") -- cgit v1.2.3 From 5fb3d4f758b2ca386cab3b8782cd61da60511f0c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:54:18 +0200 Subject: gnu: rust-pkcs: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-pkcs1-0.7, rust-pkcs1-0.3, rust-pkcs1-0.2, rust-pkcs5-0.7, rust-pkcs5-0.5, rust-pkcs5-0.4, rust-pkcs5-0.3, rust-pkcs8-0.10, rust-pkcs8-0.9, rust-pkcs8-0.8, rust-pkcs8-0.7): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: If32407b40bd544eb6d1c9cf72fc0e760b557d0f8 --- gnu/packages/crates-crypto.scm | 274 +++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 274 ----------------------------------------- 2 files changed, 274 insertions(+), 274 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index ef68b25c93..2670aa7706 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -2115,6 +2115,280 @@ in pure Rust.") ("rust-sha-1" ,rust-sha-1-0.9) ("rust-sha2" ,rust-sha2-0.9)))))) +(define-public rust-pkcs1-0.7 + (package + (name "rust-pkcs1") + (version "0.7.5") + (source (origin + (method url-fetch) + (uri (crate-uri "pkcs1" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0zz4mil3nchnxljdfs2k5ab1cjqn7kq5lqp62n9qfix01zqvkzy8")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-der" ,rust-der-0.7) + ("rust-pkcs8" ,rust-pkcs8-0.10) + ("rust-spki" ,rust-spki-0.7)) + #:cargo-development-inputs + (("rust-const-oid" ,rust-const-oid-0.9) + ("rust-hex-literal" ,rust-hex-literal-0.4) + ("rust-tempfile" ,rust-tempfile-3)))) + (home-page "https://github.com/RustCrypto/formats/tree/master/pkcs1") + (synopsis "Implementation of Public-Key Cryptography Standards (PKCS) #1") + (description + "This package provides a pure Rust implementation of Public-Key +Cryptography Standards (PKCS) #1: RSA Cryptography Specifications Version 2.2 +(RFC 8017).") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-pkcs1-0.3 + (package + (inherit rust-pkcs1-0.7) + (name "rust-pkcs1") + (version "0.3.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "pkcs1" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0813szfx13n4xl6l19m3lwj7pqgljqwc6ipxhr2dv0yc9k06d3x7")))) + (arguments + `(#:cargo-inputs (("rust-der" ,rust-der-0.5) + ("rust-pkcs8" ,rust-pkcs8-0.8) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.3)))))) + +(define-public rust-pkcs1-0.2 + (package + (inherit rust-pkcs1-0.7) + (name "rust-pkcs1") + (version "0.2.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "pkcs1" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0b2f1a0lf5h53zrjvcqbxzjhh89gcfa1myhf6z7w10ypg61fwsqi")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-der" ,rust-der-0.4) + ("rust-pem-rfc7468" ,rust-pem-rfc7468-0.2) + ("rust-zeroize" ,rust-zeroize-1)))))) + +(define-public rust-pkcs5-0.7 + (package + (name "rust-pkcs5") + (version "0.7.1") + (source (origin + (method url-fetch) + (uri (crate-uri "pkcs5" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "19k9igzay529fqj90qdkgnvmvwp65wzw73h2vn3sigqq3b4y4iz8")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-aes" ,rust-aes-0.8) + ("rust-cbc" ,rust-cbc-0.1) + ("rust-der" ,rust-der-0.7) + ("rust-des" ,rust-des-0.8) + ("rust-pbkdf2" ,rust-pbkdf2-0.12) + ("rust-scrypt" ,rust-scrypt-0.11) + ("rust-sha1" ,rust-sha1-0.10) + ("rust-sha2" ,rust-sha2-0.10) + ("rust-spki" ,rust-spki-0.7)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.3)))) + (home-page "https://github.com/RustCrypto/formats/tree/master/pkcs5") + (synopsis "Implementation of Public-Key Cryptography Standards (PKCS) #5") + (description + "This package is a pure Rust implementation of Public-Key Cryptography +Standards (PKCS) #5: Password-Based Cryptography Specification Version +2.1 (RFC 8018).") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-pkcs5-0.5 + (package + (inherit rust-pkcs5-0.7) + (name "rust-pkcs5") + (version "0.5.0") + (source (origin + (method url-fetch) + (uri (crate-uri "pkcs5" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0x81m285ijqi0fqkgym6a6ax02mfzdx87zfvqgrjsc2w3wn8c3fi")))) + (arguments + `(#:cargo-inputs + (("rust-aes" ,rust-aes-0.8) + ("rust-cbc" ,rust-cbc-0.1) + ("rust-der" ,rust-der-0.6) + ("rust-des" ,rust-des-0.8) + ("rust-hmac" ,rust-hmac-0.12) + ("rust-pbkdf2" ,rust-pbkdf2-0.11) + ("rust-scrypt" ,rust-scrypt-0.10) + ("rust-sha1" ,rust-sha1-0.10) + ("rust-sha2" ,rust-sha2-0.10) + ("rust-spki" ,rust-spki-0.6)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.3)))))) + +(define-public rust-pkcs5-0.4 + (package + (inherit rust-pkcs5-0.7) + (name "rust-pkcs5") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "pkcs5" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0xhyi3k5p6lxb28ivcd1f3skdbmhzk0gamfry7q56pifx9xi8g6n")))) + (arguments + `(#:cargo-inputs (("rust-aes" ,rust-aes-0.7) + ("rust-block-modes" ,rust-block-modes-0.8) + ("rust-der" ,rust-der-0.5) + ("rust-des" ,rust-des-0.7) + ("rust-hmac" ,rust-hmac-0.11) + ("rust-pbkdf2" ,rust-pbkdf2-0.9) + ("rust-scrypt" ,rust-scrypt-0.8) + ("rust-sha-1" ,rust-sha-1-0.9) + ("rust-sha2" ,rust-sha2-0.9) + ("rust-spki" ,rust-spki-0.5)) + #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.3)))))) + +(define-public rust-pkcs5-0.3 + (package + (inherit rust-pkcs5-0.7) + (name "rust-pkcs5") + (version "0.3.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "pkcs5" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1m3xrrwwbn9883bylgjzssfh3w1lbl7fhkb3ndz721rf27pca8sl")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-aes" ,rust-aes-0.7) + ("rust-block-modes" ,rust-block-modes-0.8) + ("rust-der" ,rust-der-0.4) + ("rust-des" ,rust-des-0.7) + ("rust-hmac" ,rust-hmac-0.11) + ("rust-pbkdf2" ,rust-pbkdf2-0.9) + ("rust-scrypt" ,rust-scrypt-0.8) + ("rust-sha-1" ,rust-sha-1-0.9) + ("rust-sha2" ,rust-sha2-0.9) + ("rust-spki" ,rust-spki-0.4)))))) + +(define-public rust-pkcs8-0.10 + (package + (name "rust-pkcs8") + (version "0.10.2") + (source (origin + (method url-fetch) + (uri (crate-uri "pkcs8" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1dx7w21gvn07azszgqd3ryjhyphsrjrmq5mmz1fbxkj5g0vv4l7r")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-der" ,rust-der-0.7) + ("rust-pkcs5" ,rust-pkcs5-0.7) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-spki" ,rust-spki-0.7) + ("rust-subtle" ,rust-subtle-2)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-tempfile" ,rust-tempfile-3)))) + (home-page "https://github.com/RustCrypto/formats/tree/master/pkcs8") + (synopsis "Implementation of Public-Key Cryptography Standards (PKCS) #8") + (description + "This package is a pure Rust implementation of Public-Key Cryptography +Standards (PKCS) #8: Private-Key Information Syntax Specification (RFC 5208), +with additional support for PKCS#8v2 asymmetric key packages (RFC 5958).") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-pkcs8-0.9 + (package + (inherit rust-pkcs8-0.10) + (name "rust-pkcs8") + (version "0.9.0") + (source (origin + (method url-fetch) + (uri (crate-uri "pkcs8" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1fm4sigvcd0zpzg9jcp862a8p272kk08b9lgcs1dm1az19cjrjly")))) + (arguments + `(#:cargo-inputs + (("rust-der" ,rust-der-0.6) + ("rust-pkcs5" ,rust-pkcs5-0.5) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-spki" ,rust-spki-0.6) + ("rust-subtle" ,rust-subtle-2)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-tempfile" ,rust-tempfile-3)))))) + +(define-public rust-pkcs8-0.8 + (package + (inherit rust-pkcs8-0.10) + (name "rust-pkcs8") + (version "0.8.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "pkcs8" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1l29h4mrgi2kpsl98jzky3ni5by3xa1sc6db9yd8l1i1p0zxmavw")))) + (arguments + `(#:cargo-inputs (("rust-der" ,rust-der-0.5) + ("rust-pkcs5" ,rust-pkcs5-0.4) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-spki" ,rust-spki-0.5) + ("rust-subtle" ,rust-subtle-2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.3)))))) + +(define-public rust-pkcs8-0.7 + (package + (inherit rust-pkcs8-0.10) + (name "rust-pkcs8") + (version "0.7.6") + (source + (origin + (method url-fetch) + (uri (crate-uri "pkcs8" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0iq46p6fa2b8xy6pj52zpmdy8ya3fg31dj4rc19x1fi69nvgjgpf")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-der" ,rust-der-0.4) + ("rust-pem-rfc7468" ,rust-pem-rfc7468-0.2) + ("rust-pkcs1" ,rust-pkcs1-0.2) + ("rust-pkcs5" ,rust-pkcs5-0.3) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-spki" ,rust-spki-0.4) + ("rust-zeroize" ,rust-zeroize-1)))))) + (define-public rust-pem-rfc7468-0.7 (package (name "rust-pem-rfc7468") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 1e12dac7d6..cdd79c26a6 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -49022,280 +49022,6 @@ along with strong support for variations and the core header tables.") #:cargo-development-inputs (("rust-futures" ,rust-futures-0.3)))))) -(define-public rust-pkcs1-0.7 - (package - (name "rust-pkcs1") - (version "0.7.5") - (source (origin - (method url-fetch) - (uri (crate-uri "pkcs1" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0zz4mil3nchnxljdfs2k5ab1cjqn7kq5lqp62n9qfix01zqvkzy8")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-der" ,rust-der-0.7) - ("rust-pkcs8" ,rust-pkcs8-0.10) - ("rust-spki" ,rust-spki-0.7)) - #:cargo-development-inputs - (("rust-const-oid" ,rust-const-oid-0.9) - ("rust-hex-literal" ,rust-hex-literal-0.4) - ("rust-tempfile" ,rust-tempfile-3)))) - (home-page "https://github.com/RustCrypto/formats/tree/master/pkcs1") - (synopsis "Implementation of Public-Key Cryptography Standards (PKCS) #1") - (description - "This package provides a pure Rust implementation of Public-Key -Cryptography Standards (PKCS) #1: RSA Cryptography Specifications Version 2.2 -(RFC 8017).") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-pkcs1-0.3 - (package - (inherit rust-pkcs1-0.7) - (name "rust-pkcs1") - (version "0.3.3") - (source - (origin - (method url-fetch) - (uri (crate-uri "pkcs1" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0813szfx13n4xl6l19m3lwj7pqgljqwc6ipxhr2dv0yc9k06d3x7")))) - (arguments - `(#:cargo-inputs (("rust-der" ,rust-der-0.5) - ("rust-pkcs8" ,rust-pkcs8-0.8) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.3)))))) - -(define-public rust-pkcs1-0.2 - (package - (inherit rust-pkcs1-0.7) - (name "rust-pkcs1") - (version "0.2.4") - (source - (origin - (method url-fetch) - (uri (crate-uri "pkcs1" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0b2f1a0lf5h53zrjvcqbxzjhh89gcfa1myhf6z7w10ypg61fwsqi")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-der" ,rust-der-0.4) - ("rust-pem-rfc7468" ,rust-pem-rfc7468-0.2) - ("rust-zeroize" ,rust-zeroize-1)))))) - -(define-public rust-pkcs5-0.7 - (package - (name "rust-pkcs5") - (version "0.7.1") - (source (origin - (method url-fetch) - (uri (crate-uri "pkcs5" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "19k9igzay529fqj90qdkgnvmvwp65wzw73h2vn3sigqq3b4y4iz8")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-aes" ,rust-aes-0.8) - ("rust-cbc" ,rust-cbc-0.1) - ("rust-der" ,rust-der-0.7) - ("rust-des" ,rust-des-0.8) - ("rust-pbkdf2" ,rust-pbkdf2-0.12) - ("rust-scrypt" ,rust-scrypt-0.11) - ("rust-sha1" ,rust-sha1-0.10) - ("rust-sha2" ,rust-sha2-0.10) - ("rust-spki" ,rust-spki-0.7)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.3)))) - (home-page "https://github.com/RustCrypto/formats/tree/master/pkcs5") - (synopsis "Implementation of Public-Key Cryptography Standards (PKCS) #5") - (description - "This package is a pure Rust implementation of Public-Key Cryptography -Standards (PKCS) #5: Password-Based Cryptography Specification Version -2.1 (RFC 8018).") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-pkcs5-0.5 - (package - (inherit rust-pkcs5-0.7) - (name "rust-pkcs5") - (version "0.5.0") - (source (origin - (method url-fetch) - (uri (crate-uri "pkcs5" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0x81m285ijqi0fqkgym6a6ax02mfzdx87zfvqgrjsc2w3wn8c3fi")))) - (arguments - `(#:cargo-inputs - (("rust-aes" ,rust-aes-0.8) - ("rust-cbc" ,rust-cbc-0.1) - ("rust-der" ,rust-der-0.6) - ("rust-des" ,rust-des-0.8) - ("rust-hmac" ,rust-hmac-0.12) - ("rust-pbkdf2" ,rust-pbkdf2-0.11) - ("rust-scrypt" ,rust-scrypt-0.10) - ("rust-sha1" ,rust-sha1-0.10) - ("rust-sha2" ,rust-sha2-0.10) - ("rust-spki" ,rust-spki-0.6)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.3)))))) - -(define-public rust-pkcs5-0.4 - (package - (inherit rust-pkcs5-0.7) - (name "rust-pkcs5") - (version "0.4.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "pkcs5" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0xhyi3k5p6lxb28ivcd1f3skdbmhzk0gamfry7q56pifx9xi8g6n")))) - (arguments - `(#:cargo-inputs (("rust-aes" ,rust-aes-0.7) - ("rust-block-modes" ,rust-block-modes-0.8) - ("rust-der" ,rust-der-0.5) - ("rust-des" ,rust-des-0.7) - ("rust-hmac" ,rust-hmac-0.11) - ("rust-pbkdf2" ,rust-pbkdf2-0.9) - ("rust-scrypt" ,rust-scrypt-0.8) - ("rust-sha-1" ,rust-sha-1-0.9) - ("rust-sha2" ,rust-sha2-0.9) - ("rust-spki" ,rust-spki-0.5)) - #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.3)))))) - -(define-public rust-pkcs5-0.3 - (package - (inherit rust-pkcs5-0.7) - (name "rust-pkcs5") - (version "0.3.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "pkcs5" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1m3xrrwwbn9883bylgjzssfh3w1lbl7fhkb3ndz721rf27pca8sl")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-aes" ,rust-aes-0.7) - ("rust-block-modes" ,rust-block-modes-0.8) - ("rust-der" ,rust-der-0.4) - ("rust-des" ,rust-des-0.7) - ("rust-hmac" ,rust-hmac-0.11) - ("rust-pbkdf2" ,rust-pbkdf2-0.9) - ("rust-scrypt" ,rust-scrypt-0.8) - ("rust-sha-1" ,rust-sha-1-0.9) - ("rust-sha2" ,rust-sha2-0.9) - ("rust-spki" ,rust-spki-0.4)))))) - -(define-public rust-pkcs8-0.10 - (package - (name "rust-pkcs8") - (version "0.10.2") - (source (origin - (method url-fetch) - (uri (crate-uri "pkcs8" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1dx7w21gvn07azszgqd3ryjhyphsrjrmq5mmz1fbxkj5g0vv4l7r")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-der" ,rust-der-0.7) - ("rust-pkcs5" ,rust-pkcs5-0.7) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-spki" ,rust-spki-0.7) - ("rust-subtle" ,rust-subtle-2)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-tempfile" ,rust-tempfile-3)))) - (home-page "https://github.com/RustCrypto/formats/tree/master/pkcs8") - (synopsis "Implementation of Public-Key Cryptography Standards (PKCS) #8") - (description - "This package is a pure Rust implementation of Public-Key Cryptography -Standards (PKCS) #8: Private-Key Information Syntax Specification (RFC 5208), -with additional support for PKCS#8v2 asymmetric key packages (RFC 5958).") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-pkcs8-0.9 - (package - (inherit rust-pkcs8-0.10) - (name "rust-pkcs8") - (version "0.9.0") - (source (origin - (method url-fetch) - (uri (crate-uri "pkcs8" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1fm4sigvcd0zpzg9jcp862a8p272kk08b9lgcs1dm1az19cjrjly")))) - (arguments - `(#:cargo-inputs - (("rust-der" ,rust-der-0.6) - ("rust-pkcs5" ,rust-pkcs5-0.5) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-spki" ,rust-spki-0.6) - ("rust-subtle" ,rust-subtle-2)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-tempfile" ,rust-tempfile-3)))))) - -(define-public rust-pkcs8-0.8 - (package - (inherit rust-pkcs8-0.10) - (name "rust-pkcs8") - (version "0.8.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "pkcs8" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1l29h4mrgi2kpsl98jzky3ni5by3xa1sc6db9yd8l1i1p0zxmavw")))) - (arguments - `(#:cargo-inputs (("rust-der" ,rust-der-0.5) - ("rust-pkcs5" ,rust-pkcs5-0.4) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-spki" ,rust-spki-0.5) - ("rust-subtle" ,rust-subtle-2) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.3)))))) - -(define-public rust-pkcs8-0.7 - (package - (inherit rust-pkcs8-0.10) - (name "rust-pkcs8") - (version "0.7.6") - (source - (origin - (method url-fetch) - (uri (crate-uri "pkcs8" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0iq46p6fa2b8xy6pj52zpmdy8ya3fg31dj4rc19x1fi69nvgjgpf")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-der" ,rust-der-0.4) - ("rust-pem-rfc7468" ,rust-pem-rfc7468-0.2) - ("rust-pkcs1" ,rust-pkcs1-0.2) - ("rust-pkcs5" ,rust-pkcs5-0.3) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-spki" ,rust-spki-0.4) - ("rust-zeroize" ,rust-zeroize-1)))))) - (define-public rust-pkg-config-0.3 (package (name "rust-pkg-config") -- cgit v1.2.3 From bcbf703111a809349bffc65a83a755a7427af444 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:56:21 +0200 Subject: gnu: rust-poly1305: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-poly1305-0.8, rust-poly1305-0.7): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I3c2d8a5714b37c90acf04f801a755bc42431c18e --- gnu/packages/crates-crypto.scm | 50 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 50 ------------------------------------------ 2 files changed, 50 insertions(+), 50 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 2670aa7706..81a0c27986 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -2460,6 +2460,56 @@ implementation suitable for use with cryptographic private keys.") `(#:skip-build? #t #:cargo-inputs (("rust-base64ct" ,rust-base64ct-1)))))) +(define-public rust-poly1305-0.8 + (package + (name "rust-poly1305") + (version "0.8.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "poly1305" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1grs77skh7d8vi61ji44i8gpzs3r9x7vay50i6cg8baxfa8bsnc1")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-cpufeatures" ,rust-cpufeatures-0.2) + ("rust-opaque-debug" ,rust-opaque-debug-0.3) + ("rust-universal-hash" ,rust-universal-hash-0.5) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.3)))) + (home-page "https://github.com/RustCrypto/universal-hashes") + (synopsis "Poly1305 universal hash") + (description + "Poly1305 is a universal hash function which, when combined with +a cipher, can be used as a Message Authentication Code (MAC).") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-poly1305-0.7 + (package + (inherit rust-poly1305-0.8) + (name "rust-poly1305") + (version "0.7.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "poly1305" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1pkf4jlriskq9rvz8y5fjj9dw42q6yg5djijlin4n6p1dd3yp2h4")) + (modules '((guix build utils))) + (snippet + '(begin (substitute* "Cargo.toml" + (("version = \">=1, <1\\.4\"") "version = \"^1\"")))))) + (arguments + `(#:cargo-inputs + (("rust-cpufeatures" ,rust-cpufeatures-0.2) + ("rust-opaque-debug" ,rust-opaque-debug-0.3) + ("rust-universal-hash" ,rust-universal-hash-0.4) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.3)))))) + (define-public rust-ppv-lite86-0.2 (package (name "rust-ppv-lite86") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index cdd79c26a6..bbc919f5b0 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -49673,56 +49673,6 @@ library.") (description "Proc-macro crate for pollster.") (license (list license:asl2.0 license:expat)))) -(define-public rust-poly1305-0.8 - (package - (name "rust-poly1305") - (version "0.8.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "poly1305" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1grs77skh7d8vi61ji44i8gpzs3r9x7vay50i6cg8baxfa8bsnc1")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs (("rust-cpufeatures" ,rust-cpufeatures-0.2) - ("rust-opaque-debug" ,rust-opaque-debug-0.3) - ("rust-universal-hash" ,rust-universal-hash-0.5) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.3)))) - (home-page "https://github.com/RustCrypto/universal-hashes") - (synopsis "Poly1305 universal hash") - (description - "Poly1305 is a universal hash function which, when combined with -a cipher, can be used as a Message Authentication Code (MAC).") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-poly1305-0.7 - (package - (inherit rust-poly1305-0.8) - (name "rust-poly1305") - (version "0.7.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "poly1305" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1pkf4jlriskq9rvz8y5fjj9dw42q6yg5djijlin4n6p1dd3yp2h4")) - (modules '((guix build utils))) - (snippet - '(begin (substitute* "Cargo.toml" - (("version = \">=1, <1\\.4\"") "version = \"^1\"")))))) - (arguments - `(#:cargo-inputs - (("rust-cpufeatures" ,rust-cpufeatures-0.2) - ("rust-opaque-debug" ,rust-opaque-debug-0.3) - ("rust-universal-hash" ,rust-universal-hash-0.4) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.3)))))) - (define-public rust-polyval-0.6 (package (name "rust-polyval") -- cgit v1.2.3 From 2f5a5dd0e58bd1425e2990f1a24fd42c31f3b6d9 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:57:37 +0200 Subject: gnu: rust-polyval: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-polyval-0.6, rust-polyval-0.4, rust-polyval-0.3): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I1c86887ff606dcba630e11f792c0864f8b6e6ef8 --- gnu/packages/crates-crypto.scm | 67 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 67 ------------------------------------------ 2 files changed, 67 insertions(+), 67 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 81a0c27986..cca62c314e 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -2510,6 +2510,73 @@ a cipher, can be used as a Message Authentication Code (MAC).") #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.3)))))) +(define-public rust-polyval-0.6 + (package + (name "rust-polyval") + (version "0.6.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "polyval" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1iihmpn1h1ag5zl368yfq0jz1drfdw7xg7zpaqpcppqiikh39wky")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-cfg-if" ,rust-cfg-if-1) + ("rust-cpufeatures" ,rust-cpufeatures-0.2) + ("rust-opaque-debug" ,rust-opaque-debug-0.3) + ("rust-universal-hash" ,rust-universal-hash-0.5) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.3)))) + (home-page "https://github.com/RustCrypto/universal-hashes") + (synopsis "GHASH-like universal hash") + (description "POLYVAL is a GHASH-like universal hash over GF(2^128) useful +for constructing a Message Authentication Code (MAC).") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-polyval-0.4 + (package + (inherit rust-polyval-0.6) + (name "rust-polyval") + (version "0.4.5") + (source + (origin + (method url-fetch) + (uri (crate-uri "polyval" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1kdpcjhc3666g8xaqichsyf6fhn8rry3z70dqhmvv6hb2jmc9g7f")))) + (arguments + `(#:cargo-inputs + (("rust-cpuid-bool" ,rust-cpuid-bool-0.2) + ("rust-opaque-debug" ,rust-opaque-debug-0.3) + ("rust-universal-hash" ,rust-universal-hash-0.4) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.2)))))) + +(define-public rust-polyval-0.3 + (package + (inherit rust-polyval-0.4) + (name "rust-polyval") + (version "0.3.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "polyval" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 (base32 "04m2wf4pk6gglvl12fj7ylc2iqhxmzqj46rds6zy73cpk0a39hvy")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-cfg-if" ,rust-cfg-if-0.1) + ("rust-universal-hash" ,rust-universal-hash-0.3) + ("rust-zeroize" ,rust-zeroize-1)))))) + (define-public rust-ppv-lite86-0.2 (package (name "rust-ppv-lite86") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index bbc919f5b0..4b991c3dd8 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -49673,73 +49673,6 @@ library.") (description "Proc-macro crate for pollster.") (license (list license:asl2.0 license:expat)))) -(define-public rust-polyval-0.6 - (package - (name "rust-polyval") - (version "0.6.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "polyval" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1iihmpn1h1ag5zl368yfq0jz1drfdw7xg7zpaqpcppqiikh39wky")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-cfg-if" ,rust-cfg-if-1) - ("rust-cpufeatures" ,rust-cpufeatures-0.2) - ("rust-opaque-debug" ,rust-opaque-debug-0.3) - ("rust-universal-hash" ,rust-universal-hash-0.5) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.3)))) - (home-page "https://github.com/RustCrypto/universal-hashes") - (synopsis "GHASH-like universal hash") - (description "POLYVAL is a GHASH-like universal hash over GF(2^128) useful -for constructing a Message Authentication Code (MAC).") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-polyval-0.4 - (package - (inherit rust-polyval-0.6) - (name "rust-polyval") - (version "0.4.5") - (source - (origin - (method url-fetch) - (uri (crate-uri "polyval" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1kdpcjhc3666g8xaqichsyf6fhn8rry3z70dqhmvv6hb2jmc9g7f")))) - (arguments - `(#:cargo-inputs - (("rust-cpuid-bool" ,rust-cpuid-bool-0.2) - ("rust-opaque-debug" ,rust-opaque-debug-0.3) - ("rust-universal-hash" ,rust-universal-hash-0.4) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.2)))))) - -(define-public rust-polyval-0.3 - (package - (inherit rust-polyval-0.4) - (name "rust-polyval") - (version "0.3.3") - (source - (origin - (method url-fetch) - (uri (crate-uri "polyval" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 (base32 "04m2wf4pk6gglvl12fj7ylc2iqhxmzqj46rds6zy73cpk0a39hvy")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-cfg-if" ,rust-cfg-if-0.1) - ("rust-universal-hash" ,rust-universal-hash-0.3) - ("rust-zeroize" ,rust-zeroize-1)))))) - (define-public rust-pom-3 (package (name "rust-pom") -- cgit v1.2.3 From fa6f82a269faffe660b1a83ac7d9a914a869fb22 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:58:39 +0200 Subject: gnu: rust-primeorder-0.13: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-primeorder-0.13): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: Icb388490dcaadf1c5d70232c43b12199fa9a5e10 --- gnu/packages/crates-crypto.scm | 26 ++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 26 -------------------------- 2 files changed, 26 insertions(+), 26 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index cca62c314e..8f9d0a107c 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -2596,6 +2596,32 @@ for constructing a Message Authentication Code (MAC).") for x86.") (license (list license:asl2.0 license:expat)))) +(define-public rust-primeorder-0.13 + (package + (name "rust-primeorder") + (version "0.13.1") + (source (origin + (method url-fetch) + (uri (crate-uri "primeorder" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1ddz0d0fzzcpdlsj6c6989va8ykf702g3zmf7dszfa0y6rski3fg")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-elliptic-curve" ,rust-elliptic-curve-0.13) + ("rust-serdect" ,rust-serdect-0.2)))) + (home-page + "https://github.com/RustCrypto/elliptic-curves/tree/master/primeorder") + (synopsis + "Rust implementation of addition formulas for prime order elliptic curves") + (description + "This package contains a pure Rust implementation of complete addition +formulas for prime order elliptic curves (Renes-Costello-Batina 2015). It +provides a generic over field elements and curve equation coefficients.") + (license (list license:asl2.0 license:expat)))) + (define-public rust-rfc6979-0.4 (package (name "rust-rfc6979") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 4b991c3dd8..41d0bbdc6f 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -50467,32 +50467,6 @@ replacements, adding colorful diffs.") formatted tables in terminal.") (license license:bsd-3))) -(define-public rust-primeorder-0.13 - (package - (name "rust-primeorder") - (version "0.13.1") - (source (origin - (method url-fetch) - (uri (crate-uri "primeorder" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1ddz0d0fzzcpdlsj6c6989va8ykf702g3zmf7dszfa0y6rski3fg")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-elliptic-curve" ,rust-elliptic-curve-0.13) - ("rust-serdect" ,rust-serdect-0.2)))) - (home-page - "https://github.com/RustCrypto/elliptic-curves/tree/master/primeorder") - (synopsis - "Rust implementation of addition formulas for prime order elliptic curves") - (description - "This package contains a pure Rust implementation of complete addition -formulas for prime order elliptic curves (Renes-Costello-Batina 2015). It -provides a generic over field elements and curve equation coefficients.") - (license (list license:asl2.0 license:expat)))) - (define-public rust-print-bytes-1 (package (name "rust-print-bytes") -- cgit v1.2.3 From de9f901071570186f98d38c2719a82d46bde04a1 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 15:59:46 +0200 Subject: gnu: rust-ripemd-0.1: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-ripemd-0.1): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: Ia7054d2f9d0f3ddd651ac4bce59d595413ba7893 --- gnu/packages/crates-crypto.scm | 23 +++++++++++++++++++++++ gnu/packages/crates-io.scm | 23 ----------------------- 2 files changed, 23 insertions(+), 23 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 8f9d0a107c..9e92299fe0 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -3487,6 +3487,29 @@ Digital Signature Algorithm} (ECDSA).") ;; build dependencies ("rust-cc" ,rust-cc-1)))))) +(define-public rust-ripemd-0.1 + (package + (name "rust-ripemd") + (version "0.1.3") + (source (origin + (method url-fetch) + (uri (crate-uri "ripemd" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "17xh5yl9wjjj2v18rh3m8ajlmdjg1yj13l6r9rj3mnbss4i444mx")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-digest" ,rust-digest-0.10)) + #:cargo-development-inputs + (("rust-digest" ,rust-digest-0.10) + ("rust-hex-literal" ,rust-hex-literal-0.2)))) + (home-page "https://github.com/RustCrypto/hashes") + (synopsis "Pure Rust implementation of the RIPEMD hash functions") + (description "Pure Rust implementation of the RIPEMD hash functions") + (license (list license:expat license:asl2.0)))) + (define-public rust-sha-1-0.10 (package (name "rust-sha-1") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 41d0bbdc6f..c31736a994 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -56290,29 +56290,6 @@ MIME Message Headers.") First In First Out} ring buffer with direct access to inner data.") (license (list license:expat license:asl2.0)))) -(define-public rust-ripemd-0.1 - (package - (name "rust-ripemd") - (version "0.1.3") - (source (origin - (method url-fetch) - (uri (crate-uri "ripemd" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "17xh5yl9wjjj2v18rh3m8ajlmdjg1yj13l6r9rj3mnbss4i444mx")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-digest" ,rust-digest-0.10)) - #:cargo-development-inputs - (("rust-digest" ,rust-digest-0.10) - ("rust-hex-literal" ,rust-hex-literal-0.2)))) - (home-page "https://github.com/RustCrypto/hashes") - (synopsis "Pure Rust implementation of the RIPEMD hash functions") - (description "Pure Rust implementation of the RIPEMD hash functions") - (license (list license:expat license:asl2.0)))) - (define-public rust-riscv-0.7 (package (name "rust-riscv") -- cgit v1.2.3 From f78a25fb7807a33d858d678bd02862ca5dc6a776 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 16:00:39 +0200 Subject: gnu: rust-rsa: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-rsa-0.9, rust-rsa-0.6, rust-rsa-0.5): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I4be48a8fd66b874d53c61e7c1b391e397a2f8fe8 --- gnu/packages/crates-crypto.scm | 124 +++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 124 ----------------------------------------- 2 files changed, 124 insertions(+), 124 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 9e92299fe0..83d648163e 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -3510,6 +3510,130 @@ Digital Signature Algorithm} (ECDSA).") (description "Pure Rust implementation of the RIPEMD hash functions") (license (list license:expat license:asl2.0)))) +(define-public rust-rsa-0.9 + (package + (name "rust-rsa") + (version "0.9.6") + (source (origin + (method url-fetch) + (uri (crate-uri "rsa" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1z0d1aavfm0v4pv8jqmqhhvvhvblla1ydzlvwykpc3mkzhj523jx")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-const-oid" ,rust-const-oid-0.9) + ("rust-digest" ,rust-digest-0.10) + ("rust-num-bigint-dig" ,rust-num-bigint-dig-0.8) + ("rust-num-integer" ,rust-num-integer-0.1) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-pkcs1" ,rust-pkcs1-0.7) + ("rust-pkcs8" ,rust-pkcs8-0.10) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-serde" ,rust-serde-1) + ("rust-sha1" ,rust-sha1-0.10) + ("rust-sha2" ,rust-sha2-0.10) + ("rust-signature" ,rust-signature-2) + ("rust-spki" ,rust-spki-0.7) + ("rust-subtle" ,rust-subtle-2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-base64ct" ,rust-base64ct-1) + ("rust-hex-literal" ,rust-hex-literal-0.4) + ("rust-proptest" ,rust-proptest-1) + ("rust-rand" ,rust-rand-0.8) + ("rust-rand-chacha" ,rust-rand-chacha-0.3) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-rand-xorshift" ,rust-rand-xorshift-0.3) + ("rust-serde-test" ,rust-serde-test-1) + ("rust-sha1" ,rust-sha1-0.10) + ("rust-sha2" ,rust-sha2-0.10) + ("rust-sha3" ,rust-sha3-0.10)))) + (home-page "https://github.com/RustCrypto/RSA") + (synopsis "Pure Rust RSA implementation") + (description "This package provides a pure Rust RSA implementation.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-rsa-0.6 + (package + (inherit rust-rsa-0.9) + (name "rust-rsa") + (version "0.6.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "rsa" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "02viiiylxpk2hx5h5qrpm4lcd8ildvafbw0rn6rx44wnqia2gwjc")))) + (arguments + `(#:cargo-inputs (("rust-byteorder" ,rust-byteorder-1) + ("rust-digest" ,rust-digest-0.10) + ("rust-num-bigint-dig" ,rust-num-bigint-dig-0.8) + ("rust-num-integer" ,rust-num-integer-0.1) + ("rust-num-iter" ,rust-num-iter-0.1) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-pkcs1" ,rust-pkcs1-0.3) + ("rust-pkcs8" ,rust-pkcs8-0.8) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-serde" ,rust-serde-1) + ("rust-smallvec" ,rust-smallvec-1) + ("rust-subtle" ,rust-subtle-2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs (("rust-base64ct" ,rust-base64ct-1) + ("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-rand" ,rust-rand-0.8) + ("rust-rand-chacha" ,rust-rand-chacha-0.3) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-rand-xorshift" ,rust-rand-xorshift-0.3) + ("rust-serde-test" ,rust-serde-test-1) + ("rust-sha1" ,rust-sha1-0.10) + ("rust-sha2" ,rust-sha2-0.10) + ("rust-sha3" ,rust-sha3-0.10)))))) + +(define-public rust-rsa-0.5 + (package + (inherit rust-rsa-0.9) + (name "rust-rsa") + (version "0.5.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "rsa" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "039676a4mj0875phdi7vc0bd37hv84dh0dql6fmk8dl2w81jcp70")) + (snippet + #~(begin (use-modules (guix build utils)) + (substitute* "Cargo.toml" + (("version = \">=1, <1.5\"") "version = \"^1\"")))))) + (arguments + `(#:cargo-inputs + (("rust-byteorder" ,rust-byteorder-1) + ("rust-digest" ,rust-digest-0.9) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-num-bigint-dig" ,rust-num-bigint-dig-0.7) + ("rust-num-integer" ,rust-num-integer-0.1) + ("rust-num-iter" ,rust-num-iter-0.1) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-pkcs1" ,rust-pkcs1-0.2) + ("rust-pkcs8" ,rust-pkcs8-0.7) + ("rust-rand" ,rust-rand-0.8) + ("rust-serde" ,rust-serde-1) + ("rust-subtle" ,rust-subtle-2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-base64" ,rust-base64-0.13) + ("rust-hex" ,rust-hex-0.4) + ("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-rand-xorshift" ,rust-rand-xorshift-0.3) + ("rust-serde-test" ,rust-serde-test-1) + ("rust-sha-1" ,rust-sha-1-0.9) + ("rust-sha2" ,rust-sha2-0.9) + ("rust-sha3" ,rust-sha3-0.9)))))) + (define-public rust-sha-1-0.10 (package (name "rust-sha-1") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index c31736a994..7d032f775a 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -56767,130 +56767,6 @@ can handle huge texts and memory-incoherent edits with ease.") "This package provides a library for generic lossless syntax trees.") (license (list license:expat license:asl2.0)))) -(define-public rust-rsa-0.9 - (package - (name "rust-rsa") - (version "0.9.6") - (source (origin - (method url-fetch) - (uri (crate-uri "rsa" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1z0d1aavfm0v4pv8jqmqhhvvhvblla1ydzlvwykpc3mkzhj523jx")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-const-oid" ,rust-const-oid-0.9) - ("rust-digest" ,rust-digest-0.10) - ("rust-num-bigint-dig" ,rust-num-bigint-dig-0.8) - ("rust-num-integer" ,rust-num-integer-0.1) - ("rust-num-traits" ,rust-num-traits-0.2) - ("rust-pkcs1" ,rust-pkcs1-0.7) - ("rust-pkcs8" ,rust-pkcs8-0.10) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-serde" ,rust-serde-1) - ("rust-sha1" ,rust-sha1-0.10) - ("rust-sha2" ,rust-sha2-0.10) - ("rust-signature" ,rust-signature-2) - ("rust-spki" ,rust-spki-0.7) - ("rust-subtle" ,rust-subtle-2) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-base64ct" ,rust-base64ct-1) - ("rust-hex-literal" ,rust-hex-literal-0.4) - ("rust-proptest" ,rust-proptest-1) - ("rust-rand" ,rust-rand-0.8) - ("rust-rand-chacha" ,rust-rand-chacha-0.3) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-rand-xorshift" ,rust-rand-xorshift-0.3) - ("rust-serde-test" ,rust-serde-test-1) - ("rust-sha1" ,rust-sha1-0.10) - ("rust-sha2" ,rust-sha2-0.10) - ("rust-sha3" ,rust-sha3-0.10)))) - (home-page "https://github.com/RustCrypto/RSA") - (synopsis "Pure Rust RSA implementation") - (description "This package provides a pure Rust RSA implementation.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-rsa-0.6 - (package - (inherit rust-rsa-0.9) - (name "rust-rsa") - (version "0.6.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "rsa" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "02viiiylxpk2hx5h5qrpm4lcd8ildvafbw0rn6rx44wnqia2gwjc")))) - (arguments - `(#:cargo-inputs (("rust-byteorder" ,rust-byteorder-1) - ("rust-digest" ,rust-digest-0.10) - ("rust-num-bigint-dig" ,rust-num-bigint-dig-0.8) - ("rust-num-integer" ,rust-num-integer-0.1) - ("rust-num-iter" ,rust-num-iter-0.1) - ("rust-num-traits" ,rust-num-traits-0.2) - ("rust-pkcs1" ,rust-pkcs1-0.3) - ("rust-pkcs8" ,rust-pkcs8-0.8) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-serde" ,rust-serde-1) - ("rust-smallvec" ,rust-smallvec-1) - ("rust-subtle" ,rust-subtle-2) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs (("rust-base64ct" ,rust-base64ct-1) - ("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-rand" ,rust-rand-0.8) - ("rust-rand-chacha" ,rust-rand-chacha-0.3) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-rand-xorshift" ,rust-rand-xorshift-0.3) - ("rust-serde-test" ,rust-serde-test-1) - ("rust-sha1" ,rust-sha1-0.10) - ("rust-sha2" ,rust-sha2-0.10) - ("rust-sha3" ,rust-sha3-0.10)))))) - -(define-public rust-rsa-0.5 - (package - (inherit rust-rsa-0.9) - (name "rust-rsa") - (version "0.5.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "rsa" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "039676a4mj0875phdi7vc0bd37hv84dh0dql6fmk8dl2w81jcp70")) - (snippet - #~(begin (use-modules (guix build utils)) - (substitute* "Cargo.toml" - (("version = \">=1, <1.5\"") "version = \"^1\"")))))) - (arguments - `(#:cargo-inputs - (("rust-byteorder" ,rust-byteorder-1) - ("rust-digest" ,rust-digest-0.9) - ("rust-lazy-static" ,rust-lazy-static-1) - ("rust-num-bigint-dig" ,rust-num-bigint-dig-0.7) - ("rust-num-integer" ,rust-num-integer-0.1) - ("rust-num-iter" ,rust-num-iter-0.1) - ("rust-num-traits" ,rust-num-traits-0.2) - ("rust-pkcs1" ,rust-pkcs1-0.2) - ("rust-pkcs8" ,rust-pkcs8-0.7) - ("rust-rand" ,rust-rand-0.8) - ("rust-serde" ,rust-serde-1) - ("rust-subtle" ,rust-subtle-2) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-base64" ,rust-base64-0.13) - ("rust-hex" ,rust-hex-0.4) - ("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-rand-xorshift" ,rust-rand-xorshift-0.3) - ("rust-serde-test" ,rust-serde-test-1) - ("rust-sha-1" ,rust-sha-1-0.9) - ("rust-sha2" ,rust-sha2-0.9) - ("rust-sha3" ,rust-sha3-0.9)))))) - (define-public rust-rspec-1 (package (name "rust-rspec") -- cgit v1.2.3 From dcd1b5b031674ac549f2fae8828b8fb771b9a450 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 16:02:22 +0200 Subject: gnu: rust-salsa20: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-salsa20-0.10, rust-salsa20-0.9, rust-salsa20-0.7): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I219444064c8a4acbcc6b51d37c2b3c6aabf5134d --- gnu/packages/crates-crypto.scm | 61 ++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 66 ------------------------------------------ 2 files changed, 61 insertions(+), 66 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 83d648163e..f515ab3455 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -3634,6 +3634,67 @@ Digital Signature Algorithm} (ECDSA).") ("rust-sha2" ,rust-sha2-0.9) ("rust-sha3" ,rust-sha3-0.9)))))) +(define-public rust-salsa20-0.10 + (package + (name "rust-salsa20") + (version "0.10.2") + (source (origin + (method url-fetch) + (uri (crate-uri "salsa20" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "04w211x17xzny53f83p8f7cj7k2hi8zck282q5aajwqzydd2z8lp")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-cipher" ,rust-cipher-0.4)) + #:cargo-development-inputs + (("rust-cipher" ,rust-cipher-0.4) + ("rust-hex-literal" ,rust-hex-literal-0.3)))) + (home-page "https://github.com/RustCrypto/stream-ciphers") + (synopsis "Salsa20 Stream Cipher") + (description "Salsa20 is a collection of stream cipher algorithms written +in pure Rust.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-salsa20-0.9 + (package + (inherit rust-salsa20-0.10) + (name "rust-salsa20") + (version "0.9.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "salsa20" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "11i646kpgimimqiq8hyi0b7ngp588f7nl9xsc317d9kdcxgvn3qc")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-cipher" ,rust-cipher-0.3) + ("rust-zeroize" ,rust-zeroize-1)))))) + +(define-public rust-salsa20-0.7 + (package + (inherit rust-salsa20-0.10) + (name "rust-salsa20") + (version "0.7.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "salsa20" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "09c16m566g45f41xx3673zyzwca3mykz630fmv2mbjbvmwcc4fw0")))) + (arguments + `(#:cargo-inputs + (("rust-cipher" ,rust-cipher-0.2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-cipher" ,rust-cipher-0.2)))))) + (define-public rust-sha-1-0.10 (package (name "rust-sha-1") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 7d032f775a..5f4ef77284 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -59708,48 +59708,6 @@ quickly convert floating point numbers to decimal strings.") "This package provides a procedural macros for the salsa crate.") (license (list license:asl2.0 license:expat)))) -(define-public rust-salsa20-0.10 - (package - (name "rust-salsa20") - (version "0.10.2") - (source (origin - (method url-fetch) - (uri (crate-uri "salsa20" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "04w211x17xzny53f83p8f7cj7k2hi8zck282q5aajwqzydd2z8lp")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-cipher" ,rust-cipher-0.4)) - #:cargo-development-inputs - (("rust-cipher" ,rust-cipher-0.4) - ("rust-hex-literal" ,rust-hex-literal-0.3)))) - (home-page "https://github.com/RustCrypto/stream-ciphers") - (synopsis "Salsa20 Stream Cipher") - (description "Salsa20 is a collection of stream cipher algorithms written -in pure Rust.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-salsa20-0.9 - (package - (inherit rust-salsa20-0.10) - (name "rust-salsa20") - (version "0.9.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "salsa20" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "11i646kpgimimqiq8hyi0b7ngp588f7nl9xsc317d9kdcxgvn3qc")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-cipher" ,rust-cipher-0.3) - ("rust-zeroize" ,rust-zeroize-1)))))) - (define-public rust-salsa-0.17 (package (name "rust-salsa") @@ -59794,30 +59752,6 @@ in pure Rust.") computation (experimental)") (license (list license:asl2.0 license:expat)))) -(define-public rust-salsa20-0.7 - (package - (name "rust-salsa20") - (version "0.7.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "salsa20" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "09c16m566g45f41xx3673zyzwca3mykz630fmv2mbjbvmwcc4fw0")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-cipher" ,rust-cipher-0.2) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-cipher" ,rust-cipher-0.2)))) - (home-page "https://github.com/RustCrypto/stream-ciphers") - (synopsis "Salsa20 stream cipher") - (description "This is a Rust library implementing the Salsa20 stream -cipher.") - (license (list license:expat license:asl2.0)))) - (define-public rust-safe-arch-0.6 (package (name "rust-safe-arch") -- cgit v1.2.3 From 44ed673e60aacb4425154271e95e5a2635c4045c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 16:03:29 +0200 Subject: gnu: rust-scrypt: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-scrypt-0.11, rust-scrypt-0.10, rust-scrypt-0.8): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I4259c52e76e1e1612031453db7d239106b715178 --- gnu/packages/crates-crypto.scm | 71 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 71 ------------------------------------------ 2 files changed, 71 insertions(+), 71 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index f515ab3455..daf899cc01 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -3695,6 +3695,77 @@ in pure Rust.") #:cargo-development-inputs (("rust-cipher" ,rust-cipher-0.2)))))) +(define-public rust-scrypt-0.11 + (package + (name "rust-scrypt") + (version "0.11.0") + (source (origin + (method url-fetch) + (uri (crate-uri "scrypt" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "07zxfaqpns9jn0mnxm7wj3ksqsinyfpirkav1f7kc2bchs2s65h5")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-password-hash" ,rust-password-hash-0.5) + ("rust-pbkdf2" ,rust-pbkdf2-0.12) + ("rust-salsa20" ,rust-salsa20-0.10) + ("rust-sha2" ,rust-sha2-0.10)) + #:cargo-development-inputs + (("rust-password-hash" ,rust-password-hash-0.5)))) + (home-page + "https://github.com/RustCrypto/password-hashes/tree/master/scrypt") + (synopsis "Scrypt password-based key derivation function") + (description + "This package provides a Scrypt password-based key derivation +function.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-scrypt-0.10 + (package + (inherit rust-scrypt-0.11) + (name "rust-scrypt") + (version "0.10.0") + (source (origin + (method url-fetch) + (uri (crate-uri "scrypt" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0pglmppcl8mdzfxdv2x9dsjrwxhc1bm9zvxjibnlv59jnv9297lz")))) + (arguments + `(#:cargo-inputs + (("rust-hmac" ,rust-hmac-0.12) + ("rust-password-hash" ,rust-password-hash-0.4) + ("rust-pbkdf2" ,rust-pbkdf2-0.11) + ("rust-salsa20" ,rust-salsa20-0.10) + ("rust-sha2" ,rust-sha2-0.10)) + #:cargo-development-inputs + (("rust-password-hash" ,rust-password-hash-0.4)))))) + +(define-public rust-scrypt-0.8 + (package + (inherit rust-scrypt-0.11) + (name "rust-scrypt") + (version "0.8.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "scrypt" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "09fkz5sc7qx97dyi1nkv69z36diggd2c9mja33cxpsqicdy6sgg7")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-hmac" ,rust-hmac-0.12) + ("rust-password-hash" ,rust-password-hash-0.3) + ("rust-pbkdf2" ,rust-pbkdf2-0.10) + ("rust-salsa20" ,rust-salsa20-0.9) + ("rust-sha2" ,rust-sha2-0.10)))))) + (define-public rust-sha-1-0.10 (package (name "rust-sha-1") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 5f4ef77284..1df704ad92 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -60271,77 +60271,6 @@ shareable by multiple crates in a build graph and erased by @code{cargo clean}.") (license (list license:expat license:asl2.0)))) -(define-public rust-scrypt-0.11 - (package - (name "rust-scrypt") - (version "0.11.0") - (source (origin - (method url-fetch) - (uri (crate-uri "scrypt" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "07zxfaqpns9jn0mnxm7wj3ksqsinyfpirkav1f7kc2bchs2s65h5")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-password-hash" ,rust-password-hash-0.5) - ("rust-pbkdf2" ,rust-pbkdf2-0.12) - ("rust-salsa20" ,rust-salsa20-0.10) - ("rust-sha2" ,rust-sha2-0.10)) - #:cargo-development-inputs - (("rust-password-hash" ,rust-password-hash-0.5)))) - (home-page - "https://github.com/RustCrypto/password-hashes/tree/master/scrypt") - (synopsis "Scrypt password-based key derivation function") - (description - "This package provides a Scrypt password-based key derivation -function.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-scrypt-0.10 - (package - (inherit rust-scrypt-0.11) - (name "rust-scrypt") - (version "0.10.0") - (source (origin - (method url-fetch) - (uri (crate-uri "scrypt" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0pglmppcl8mdzfxdv2x9dsjrwxhc1bm9zvxjibnlv59jnv9297lz")))) - (arguments - `(#:cargo-inputs - (("rust-hmac" ,rust-hmac-0.12) - ("rust-password-hash" ,rust-password-hash-0.4) - ("rust-pbkdf2" ,rust-pbkdf2-0.11) - ("rust-salsa20" ,rust-salsa20-0.10) - ("rust-sha2" ,rust-sha2-0.10)) - #:cargo-development-inputs - (("rust-password-hash" ,rust-password-hash-0.4)))))) - -(define-public rust-scrypt-0.8 - (package - (inherit rust-scrypt-0.11) - (name "rust-scrypt") - (version "0.8.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "scrypt" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "09fkz5sc7qx97dyi1nkv69z36diggd2c9mja33cxpsqicdy6sgg7")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-hmac" ,rust-hmac-0.12) - ("rust-password-hash" ,rust-password-hash-0.3) - ("rust-pbkdf2" ,rust-pbkdf2-0.10) - ("rust-salsa20" ,rust-salsa20-0.9) - ("rust-sha2" ,rust-sha2-0.10)))))) - (define-public rust-scroll-0.11 (package (name "rust-scroll") -- cgit v1.2.3 From d15a19d1a94bba41f688978469eec9b1b7dd64be Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 17:18:15 +0200 Subject: gnu: rust-sec1: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-sec1-0.7, rust-sec1-0.3): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: Ife8fc6d759ea78a54f3d3f9c35f7415db2442565 --- gnu/packages/crates-crypto.scm | 56 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 56 ------------------------------------------ 2 files changed, 56 insertions(+), 56 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index daf899cc01..9cd843f209 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -3766,6 +3766,62 @@ function.") ("rust-salsa20" ,rust-salsa20-0.9) ("rust-sha2" ,rust-sha2-0.10)))))) +(define-public rust-sec1-0.7 + (package + (name "rust-sec1") + (version "0.7.2") + (source (origin + (method url-fetch) + (uri (crate-uri "sec1" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0vh4pvdfnghbjglh6k74vs93jj337jpli28bbyqr0srxh67c9bph")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-base16ct" ,rust-base16ct-0.2) + ("rust-der" ,rust-der-0.7) + ("rust-generic-array" ,rust-generic-array-0.14) + ("rust-pkcs8" ,rust-pkcs8-0.10) + ("rust-serdect" ,rust-serdect-0.2) + ("rust-subtle" ,rust-subtle-2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-tempfile" ,rust-tempfile-3)))) + (home-page "https://github.com/RustCrypto/formats/tree/master/sec1") + (synopsis + "Rust implementation of SEC1: Elliptic Curve Cryptography encoding formats") + (description + "This package procides a pure Rust implementation of SEC1: Elliptic Curve +Cryptography encoding formats including ASN.1 DER-serialized private keys as +well as the Elliptic-Curve-Point-to-Octet-String encoding.") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-sec1-0.3 + (package + (inherit rust-sec1-0.7) + (name "rust-sec1") + (version "0.3.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "sec1" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0a09lk5w3nyggpyz54m10nnlg9v8qbh6kw3v1bgla31988c4rqiv")))) + (arguments + `(#:cargo-inputs (("rust-base16ct" ,rust-base16ct-0.1) + ("rust-der" ,rust-der-0.6) + ("rust-generic-array" ,rust-generic-array-0.14) + ("rust-pkcs8" ,rust-pkcs8-0.9) + ("rust-serdect" ,rust-serdect-0.1) + ("rust-subtle" ,rust-subtle-2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-tempfile" ,rust-tempfile-3)))))) + (define-public rust-sha-1-0.10 (package (name "rust-sha-1") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 1df704ad92..c51364b500 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -60604,62 +60604,6 @@ proven statistical guarantees.") statistical guarantees.") (license license:expat))) -(define-public rust-sec1-0.7 - (package - (name "rust-sec1") - (version "0.7.2") - (source (origin - (method url-fetch) - (uri (crate-uri "sec1" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0vh4pvdfnghbjglh6k74vs93jj337jpli28bbyqr0srxh67c9bph")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-base16ct" ,rust-base16ct-0.2) - ("rust-der" ,rust-der-0.7) - ("rust-generic-array" ,rust-generic-array-0.14) - ("rust-pkcs8" ,rust-pkcs8-0.10) - ("rust-serdect" ,rust-serdect-0.2) - ("rust-subtle" ,rust-subtle-2) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-tempfile" ,rust-tempfile-3)))) - (home-page "https://github.com/RustCrypto/formats/tree/master/sec1") - (synopsis - "Rust implementation of SEC1: Elliptic Curve Cryptography encoding formats") - (description - "This package procides a pure Rust implementation of SEC1: Elliptic Curve -Cryptography encoding formats including ASN.1 DER-serialized private keys as -well as the Elliptic-Curve-Point-to-Octet-String encoding.") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-sec1-0.3 - (package - (inherit rust-sec1-0.7) - (name "rust-sec1") - (version "0.3.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "sec1" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0a09lk5w3nyggpyz54m10nnlg9v8qbh6kw3v1bgla31988c4rqiv")))) - (arguments - `(#:cargo-inputs (("rust-base16ct" ,rust-base16ct-0.1) - ("rust-der" ,rust-der-0.6) - ("rust-generic-array" ,rust-generic-array-0.14) - ("rust-pkcs8" ,rust-pkcs8-0.9) - ("rust-serdect" ,rust-serdect-0.1) - ("rust-subtle" ,rust-subtle-2) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-tempfile" ,rust-tempfile-3)))))) - (define-public rust-seccomp-sys-0.1 (package (name "rust-seccomp-sys") -- cgit v1.2.3 From 298f75b7ab2a91a8b569d47a316fc2df4e586271 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 17:19:52 +0200 Subject: gnu: rust-serdect: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-serdect-0.2, rust-serdect-0.1): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I10d001bf1dadb6d1ceabec8f6cf764514bb49ea7 --- gnu/packages/crates-crypto.scm | 58 +++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 65 ------------------------------------------ 2 files changed, 58 insertions(+), 65 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 9cd843f209..9b4f3e2c04 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -3822,6 +3822,64 @@ well as the Elliptic-Curve-Point-to-Octet-String encoding.") #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.3) ("rust-tempfile" ,rust-tempfile-3)))))) +(define-public rust-serdect-0.2 + (package + (name "rust-serdect") + (version "0.2.0") + (source (origin + (method url-fetch) + (uri (crate-uri "serdect" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0xw1b6acw6nd0jchzyxzr97f0s4shbcqh92iyjwln0cskshi8kx8")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-base16ct" ,rust-base16ct-0.2) + ("rust-serde" ,rust-serde-1) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-bincode" ,rust-bincode-1) + ("rust-ciborium" ,rust-ciborium-0.2) + ("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-proptest" ,rust-proptest-1) + ("rust-serde" ,rust-serde-1) + ("rust-serde-json-core" ,rust-serde-json-core-0.5) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-toml" ,rust-toml-0.7)))) + (home-page "https://github.com/RustCrypto/formats/tree/master/serdect") + (synopsis "Constant-time serde serializer/deserializer helpers") + (description + "This package provides constant-time serde serializer/deserializer helpers +for data that potentially contains secrets (e.g. cryptographic keys).") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-serdect-0.1 + (package + (inherit rust-serdect-0.2) + (name "rust-serdect") + (version "0.1.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "serdect" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0b6krqs77vzwzdjcrcywlmlwd3msfpgmkkbxx8q9njypyhdwx3q3")))) + (arguments + `(#:cargo-inputs (("rust-base16ct" ,rust-base16ct-0.1) + ("rust-serde" ,rust-serde-1) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs (("rust-bincode" ,rust-bincode-1) + ("rust-ciborium" ,rust-ciborium-0.2) + ("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-proptest" ,rust-proptest-1) + ("rust-serde" ,rust-serde-1) + ("rust-serde-json-core" ,rust-serde-json-core-0.4) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-toml" ,rust-toml-0.5)))))) + (define-public rust-sha-1-0.10 (package (name "rust-sha-1") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index c51364b500..cb9a708d2a 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -62346,71 +62346,6 @@ Rust's serde.") (description "Native Serde adapter for wasm-bindgen.") (license license:expat))) -(define-public rust-serdect-0.2 - (package - (name "rust-serdect") - (version "0.2.0") - (source (origin - (method url-fetch) - (uri (crate-uri "serdect" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0xw1b6acw6nd0jchzyxzr97f0s4shbcqh92iyjwln0cskshi8kx8")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-base16ct" ,rust-base16ct-0.2) - ("rust-serde" ,rust-serde-1) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-bincode" ,rust-bincode-1) - ("rust-ciborium" ,rust-ciborium-0.2) - ("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-proptest" ,rust-proptest-1) - ("rust-serde" ,rust-serde-1) - ("rust-serde-json-core" ,rust-serde-json-core-0.5) - ("rust-serde-json" ,rust-serde-json-1) - ("rust-toml" ,rust-toml-0.7)))) - (home-page "https://github.com/RustCrypto/formats/tree/master/serdect") - (synopsis - "Constant-time serde serializer/deserializer helpers") - (description - "This package provides constant-time serde serializer/deserializer helpers -for data that potentially contains secrets (e.g. cryptographic keys).") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-serdect-0.1 - (package - (name "rust-serdect") - (version "0.1.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "serdect" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0b6krqs77vzwzdjcrcywlmlwd3msfpgmkkbxx8q9njypyhdwx3q3")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs (("rust-base16ct" ,rust-base16ct-0.1) - ("rust-serde" ,rust-serde-1) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs (("rust-bincode" ,rust-bincode-1) - ("rust-ciborium" ,rust-ciborium-0.2) - ("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-proptest" ,rust-proptest-1) - ("rust-serde" ,rust-serde-1) - ("rust-serde-json-core" ,rust-serde-json-core-0.4) - ("rust-serde-json" ,rust-serde-json-1) - ("rust-toml" ,rust-toml-0.5)))) - (home-page "https://github.com/RustCrypto/formats/tree/master/serdect") - (synopsis "Constant-time serde serializer/deserializer helpers") - (description - "Constant-time serde serializer/deserializer helpers for data that potentially -contains secrets (e.g. cryptographic keys).") - (license (list license:asl2.0 license:expat)))) - (define-public rust-serial-test-2 (package (name "rust-serial-test") -- cgit v1.2.3 From ab124adbab2b762243288289a66d76af92069e8c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 17:21:20 +0200 Subject: gnu: rust-spki: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-spki-0.7, rust-spki-0.6, rust-spki-0.5, rust-spki-0.4): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: Ib158054b467de3ae9098a0f65a0bf66c6f331bc2 --- gnu/packages/crates-crypto.scm | 83 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 83 ------------------------------------------ 2 files changed, 83 insertions(+), 83 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 9b4f3e2c04..a42b49b3b3 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -4400,6 +4400,89 @@ for additional details.") ("rust-syn" ,rust-syn-1) ("rust-synstructure" ,rust-synstructure-0.12)))))) +(define-public rust-spki-0.7 + (package + (name "rust-spki") + (version "0.7.3") + (source (origin + (method url-fetch) + (uri (crate-uri "spki" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "17fj8k5fmx4w9mp27l970clrh5qa7r5sjdvbsln987xhb34dc7nr")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-arbitrary" ,rust-arbitrary-1) + ("rust-base64ct" ,rust-base64ct-1) + ("rust-der" ,rust-der-0.7) + ("rust-sha2" ,rust-sha2-0.10)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.4) + ("rust-tempfile" ,rust-tempfile-3)))) + (home-page "https://github.com/RustCrypto/formats/tree/master/spki") + (synopsis + "X.509 Subject Public Key Info (RFC5280) describing public keys") + (description + "This package provides X.509 Subject Public Key Info (RFC5280) +describing public keys as well as their associated AlgorithmIdentifiers (i.e. +OIDs)") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-spki-0.6 + (package + (inherit rust-spki-0.7) + (name "rust-spki") + (version "0.6.0") + (source (origin + (method url-fetch) + (uri (crate-uri "spki" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0ar1ldkl7svp8l3gfw2hyiiph7n2nqynjnjgdv1pscvsmjxh5kv7")))) + (arguments + `(#:cargo-inputs + (("rust-base64ct" ,rust-base64ct-1) + ("rust-der" ,rust-der-0.6) + ("rust-sha2" ,rust-sha2-0.10)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-tempfile" ,rust-tempfile-3)))))) + +(define-public rust-spki-0.5 + (package + (inherit rust-spki-0.7) + (name "rust-spki") + (version "0.5.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "spki" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "09qaddm4kw01xm9638910bm4yqnshzh2p38lvc3kxkvc5b01ml24")))) + (arguments + `(#:cargo-inputs (("rust-base64ct" ,rust-base64ct-1) + ("rust-der" ,rust-der-0.5) + ("rust-sha2" ,rust-sha2-0.9)) + #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.3)))))) + +(define-public rust-spki-0.4 + (package + (inherit rust-spki-0.7) + (name "rust-spki") + (version "0.4.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "spki" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0ckgkcg6db5y94dqhmyikgn8yrsah6pyf4j197hv1c51bp0s00aw")))) + (arguments `(#:skip-build? #t #:cargo-inputs (("rust-der" ,rust-der-0.4)))))) + (define-public rust-subtle-2 (package (name "rust-subtle") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index cb9a708d2a..ea67892bd1 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -65406,89 +65406,6 @@ and spirv-std-macros.") SPIR-V.") (license (list license:expat license:asl2.0)))) -(define-public rust-spki-0.7 - (package - (name "rust-spki") - (version "0.7.3") - (source (origin - (method url-fetch) - (uri (crate-uri "spki" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "17fj8k5fmx4w9mp27l970clrh5qa7r5sjdvbsln987xhb34dc7nr")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-arbitrary" ,rust-arbitrary-1) - ("rust-base64ct" ,rust-base64ct-1) - ("rust-der" ,rust-der-0.7) - ("rust-sha2" ,rust-sha2-0.10)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.4) - ("rust-tempfile" ,rust-tempfile-3)))) - (home-page "https://github.com/RustCrypto/formats/tree/master/spki") - (synopsis - "X.509 Subject Public Key Info (RFC5280) describing public keys") - (description - "This package provides X.509 Subject Public Key Info (RFC5280) -describing public keys as well as their associated AlgorithmIdentifiers (i.e. -OIDs)") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-spki-0.6 - (package - (inherit rust-spki-0.7) - (name "rust-spki") - (version "0.6.0") - (source (origin - (method url-fetch) - (uri (crate-uri "spki" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0ar1ldkl7svp8l3gfw2hyiiph7n2nqynjnjgdv1pscvsmjxh5kv7")))) - (arguments - `(#:cargo-inputs - (("rust-base64ct" ,rust-base64ct-1) - ("rust-der" ,rust-der-0.6) - ("rust-sha2" ,rust-sha2-0.10)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-tempfile" ,rust-tempfile-3)))))) - -(define-public rust-spki-0.5 - (package - (inherit rust-spki-0.7) - (name "rust-spki") - (version "0.5.4") - (source - (origin - (method url-fetch) - (uri (crate-uri "spki" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "09qaddm4kw01xm9638910bm4yqnshzh2p38lvc3kxkvc5b01ml24")))) - (arguments - `(#:cargo-inputs (("rust-base64ct" ,rust-base64ct-1) - ("rust-der" ,rust-der-0.5) - ("rust-sha2" ,rust-sha2-0.9)) - #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.3)))))) - -(define-public rust-spki-0.4 - (package - (inherit rust-spki-0.7) - (name "rust-spki") - (version "0.4.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "spki" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0ckgkcg6db5y94dqhmyikgn8yrsah6pyf4j197hv1c51bp0s00aw")))) - (arguments `(#:skip-build? #t #:cargo-inputs (("rust-der" ,rust-der-0.4)))))) - (define-public rust-spmc-0.3 (package (name "rust-spmc") -- cgit v1.2.3 From f63aeac8bee190dec9f8249547b01548d6ae6453 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 17:22:28 +0200 Subject: gnu: rust-stream-cipher: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-stream-cipher-0.4, rust-stream-cipher-0.3): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I2dffa30a774737d4fccce56992e12a05436c5bca --- gnu/packages/crates-crypto.scm | 43 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 43 ------------------------------------------ 2 files changed, 43 insertions(+), 43 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index a42b49b3b3..0d87683cab 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -4483,6 +4483,49 @@ OIDs)") (base32 "0ckgkcg6db5y94dqhmyikgn8yrsah6pyf4j197hv1c51bp0s00aw")))) (arguments `(#:skip-build? #t #:cargo-inputs (("rust-der" ,rust-der-0.4)))))) +(define-public rust-stream-cipher-0.4 + (package + (name "rust-stream-cipher") + (version "0.4.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "stream-cipher" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "120y04k3d2jyfnvyrlf38x6bf0yckyk30c7zf8v8qaq4fjcyvy09")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-blobby" ,rust-blobby-0.1) + ("rust-block-cipher" ,rust-block-cipher-0.7) + ("rust-generic-array" ,rust-generic-array-0.14)))) + (home-page "https://github.com/RustCrypto/traits") + (synopsis "Stream cipher traits") + (description "This package provides stream cipher traits.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-stream-cipher-0.3 + (package + (inherit rust-stream-cipher-0.4) + (name "rust-stream-cipher") + (version "0.3.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "stream-cipher" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1g1nd8r6pph70rzk5yyvg7a9ji7pkap9ddiqpp4v9xa9ys0bqqc8")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-blobby" ,rust-blobby-0.1) + ("rust-generic-array" ,rust-generic-array-0.13)))))) + (define-public rust-subtle-2 (package (name "rust-subtle") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index ea67892bd1..0d7a29819e 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -66341,49 +66341,6 @@ UTF-8.") (description "This package provides a static string buffer.") (license license:boost1.0))) -(define-public rust-stream-cipher-0.4 - (package - (name "rust-stream-cipher") - (version "0.4.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "stream-cipher" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "120y04k3d2jyfnvyrlf38x6bf0yckyk30c7zf8v8qaq4fjcyvy09")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-blobby" ,rust-blobby-0.1) - ("rust-block-cipher" ,rust-block-cipher-0.7) - ("rust-generic-array" ,rust-generic-array-0.14)))) - (home-page "https://github.com/RustCrypto/traits") - (synopsis "Stream cipher traits") - (description "This package provides stream cipher traits.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-stream-cipher-0.3 - (package - (inherit rust-stream-cipher-0.4) - (name "rust-stream-cipher") - (version "0.3.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "stream-cipher" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1g1nd8r6pph70rzk5yyvg7a9ji7pkap9ddiqpp4v9xa9ys0bqqc8")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-blobby" ,rust-blobby-0.1) - ("rust-generic-array" ,rust-generic-array-0.13)))))) - (define-public rust-streaming-decompression-0.1 (package (name "rust-streaming-decompression") -- cgit v1.2.3 From 07533d10b2b434982cd7fe0eb15bc03bff49eab8 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 17:23:19 +0200 Subject: gnu: rust-streebog: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-streebog-0.10, rust-streebog-0.9): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I295c5527ac994567643412a5ca47ecaa41b6645c --- gnu/packages/crates-crypto.scm | 47 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 47 ------------------------------------------ 2 files changed, 47 insertions(+), 47 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 0d87683cab..94b63d113f 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -4526,6 +4526,53 @@ OIDs)") (("rust-blobby" ,rust-blobby-0.1) ("rust-generic-array" ,rust-generic-array-0.13)))))) +(define-public rust-streebog-0.10 + (package + (name "rust-streebog") + (version "0.10.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "streebog" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1w7sxj3risp0zqm6r4mc73bd3fn3bnlxi4l10gp7661i5asr6ajz")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-digest" ,rust-digest-0.10)) + #:cargo-development-inputs + (("rust-digest" ,rust-digest-0.10) + ("rust-hex-literal" ,rust-hex-literal-0.2)))) + (home-page "https://github.com/RustCrypto/hashes") + (synopsis "Streebog (GOST R 34.11-2012) hash function") + (description + "This package provides a streebog (GOST R 34.11-2012) hash function.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-streebog-0.9 + (package + (inherit rust-streebog-0.10) + (name "rust-streebog") + (version "0.9.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "streebog" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0lz7ajfqdqbrnj01m1xc01ch1g0s9391ma36qqkiyf1074d1r8nr")))) + (arguments + `(#:cargo-inputs + (("rust-block-buffer" ,rust-block-buffer-0.9) + ("rust-digest" ,rust-digest-0.9) + ("rust-opaque-debug" ,rust-opaque-debug-0.3)) + #:cargo-development-inputs + (("rust-digest" ,rust-digest-0.9) + ("rust-hex-literal" ,rust-hex-literal-0.2)))))) + (define-public rust-subtle-2 (package (name "rust-subtle") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 0d7a29819e..126782a803 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -66411,53 +66411,6 @@ iterated over only by reference rather than by value.") (license (list license:unlicense license:expat)))) -(define-public rust-streebog-0.10 - (package - (name "rust-streebog") - (version "0.10.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "streebog" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1w7sxj3risp0zqm6r4mc73bd3fn3bnlxi4l10gp7661i5asr6ajz")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-digest" ,rust-digest-0.10)) - #:cargo-development-inputs - (("rust-digest" ,rust-digest-0.10) - ("rust-hex-literal" ,rust-hex-literal-0.2)))) - (home-page "https://github.com/RustCrypto/hashes") - (synopsis "Streebog (GOST R 34.11-2012) hash function") - (description - "This package provides a streebog (GOST R 34.11-2012) hash function.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-streebog-0.9 - (package - (inherit rust-streebog-0.10) - (name "rust-streebog") - (version "0.9.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "streebog" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0lz7ajfqdqbrnj01m1xc01ch1g0s9391ma36qqkiyf1074d1r8nr")))) - (arguments - `(#:cargo-inputs - (("rust-block-buffer" ,rust-block-buffer-0.9) - ("rust-digest" ,rust-digest-0.9) - ("rust-opaque-debug" ,rust-opaque-debug-0.3)) - #:cargo-development-inputs - (("rust-digest" ,rust-digest-0.9) - ("rust-hex-literal" ,rust-hex-literal-0.2)))))) - (define-public rust-strength-reduce-0.2 (package (name "rust-strength-reduce") -- cgit v1.2.3 From efb2b5493ffc855167f132282426e92f0f76021d Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 17:24:03 +0200 Subject: gnu: rust-twofish-0.7: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-twofish-0.70: Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I4df49191b77192c6d482240ce6f3488b21814308 --- gnu/packages/crates-crypto.scm | 23 +++++++++++++++++++++++ gnu/packages/crates-io.scm | 23 ----------------------- 2 files changed, 23 insertions(+), 23 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 94b63d113f..b634fd976f 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -4658,6 +4658,29 @@ cryptographic implementations.") "This package provides the Tiger cryptographic hash function.") (license (list license:expat license:asl2.0)))) +(define-public rust-twofish-0.7 + (package + (name "rust-twofish") + (version "0.7.1") + (source (origin + (method url-fetch) + (uri (crate-uri "twofish" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "04w0ii2c0c9ws08aw6c7illh9zql22il9lbwjk1mgir30aiq73m7")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-cipher" ,rust-cipher-0.4)) + #:cargo-development-inputs + (("rust-cipher" ,rust-cipher-0.4) + ("rust-hex-literal" ,rust-hex-literal-0.3)))) + (home-page "https://github.com/RustCrypto/block-ciphers") + (synopsis "Twofish block cipher") + (description "Twofish block cipher") + (license (list license:expat license:asl2.0)))) + (define-public rust-universal-hash-0.5 (package (name "rust-universal-hash") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 126782a803..2467296633 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -76250,29 +76250,6 @@ makes them accessible for those who wants full control over the network.") ("rust-url" ,rust-url-2) ("rust-utf-8" ,rust-utf-8-0.7)))))) -(define-public rust-twofish-0.7 - (package - (name "rust-twofish") - (version "0.7.1") - (source (origin - (method url-fetch) - (uri (crate-uri "twofish" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "04w0ii2c0c9ws08aw6c7illh9zql22il9lbwjk1mgir30aiq73m7")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-cipher" ,rust-cipher-0.4)) - #:cargo-development-inputs - (("rust-cipher" ,rust-cipher-0.4) - ("rust-hex-literal" ,rust-hex-literal-0.3)))) - (home-page "https://github.com/RustCrypto/block-ciphers") - (synopsis "Twofish block cipher") - (description "Twofish block cipher") - (license (list license:expat license:asl2.0)))) - (define-public rust-twoway-0.2 (package (name "rust-twoway") -- cgit v1.2.3 From 4e84439c26ccac790df8e70d5e047a14256fee63 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 17:25:25 +0200 Subject: gnu: rust-block-cipher-0.7: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-block-cipher-0.7): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I37ed136b4850a4b90b05fc7ca957308d49408e09 --- gnu/packages/crates-crypto.scm | 23 +++++++++++++++++++++++ gnu/packages/crates-io.scm | 23 ----------------------- 2 files changed, 23 insertions(+), 23 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index b634fd976f..fe826ac5f2 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -767,6 +767,29 @@ BLAKE2bp hash functions.") based on Blake2s.") (license (list license:expat license:asl2.0)))) +(define-public rust-block-cipher-0.7 + (package + (name "rust-block-cipher") + (version "0.7.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "block-cipher" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "043zgfz1x4sxkdcsyabrcr440fcwhfpcqqa54jm7zp35wx4n84zs")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-blobby" ,rust-blobby-0.1) + ("rust-generic-array" ,rust-generic-array-0.14)))) + (home-page "https://github.com/RustCrypto/traits") + (synopsis "Traits for description of block ciphers") + (description "This package provides traits for description of block +ciphers.") + (license (list license:expat license:asl2.0)))) + (define-public rust-botan-0.10 (package (name "rust-botan") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 2467296633..93512ab854 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -6994,29 +6994,6 @@ storage.") (("rust-arrayref" ,rust-arrayref-0.3) ("rust-byte-tools" ,rust-byte-tools-0.2)))))) -(define-public rust-block-cipher-0.7 - (package - (name "rust-block-cipher") - (version "0.7.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "block-cipher" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "043zgfz1x4sxkdcsyabrcr440fcwhfpcqqa54jm7zp35wx4n84zs")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-blobby" ,rust-blobby-0.1) - ("rust-generic-array" ,rust-generic-array-0.14)))) - (home-page "https://github.com/RustCrypto/traits") - (synopsis "Traits for description of block ciphers") - (description "This package provides traits for description of block -ciphers.") - (license (list license:expat license:asl2.0)))) - (define-public rust-block-cipher-trait-0.6 (package (name "rust-block-cipher-trait") -- cgit v1.2.3 From 7496998bc899ad56518f5126adfed12992f929b8 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 17:26:27 +0200 Subject: gnu: rust-blowfish-0.9: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-blowfish-0.9): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I372c9c460b7cddaec41984f4abc8d4ee75908b18 --- gnu/packages/crates-crypto.scm | 23 +++++++++++++++++++++++ gnu/packages/crates-io.scm | 23 ----------------------- 2 files changed, 23 insertions(+), 23 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index fe826ac5f2..7dda3de5e1 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -790,6 +790,29 @@ based on Blake2s.") ciphers.") (license (list license:expat license:asl2.0)))) +(define-public rust-blowfish-0.9 + (package + (name "rust-blowfish") + (version "0.9.1") + (source (origin + (method url-fetch) + (uri (crate-uri "blowfish" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1mw7bvj3bg5w8vh9xw9xawqh7ixk2xwsxkj34ph96b9b1z6y44p4")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-byteorder" ,rust-byteorder-1) + ("rust-cipher" ,rust-cipher-0.4)) + #:cargo-development-inputs + (("rust-cipher" ,rust-cipher-0.4)))) + (home-page "https://github.com/RustCrypto/block-ciphers") + (synopsis "Blowfish block cipher") + (description "Blowfish block cipher") + (license (list license:expat license:asl2.0)))) + (define-public rust-botan-0.10 (package (name "rust-botan") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 93512ab854..49bbbc5ba7 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -7204,29 +7204,6 @@ programs.") ("rust-parking" ,rust-parking-1) ("rust-waker-fn" ,rust-waker-fn-1)))))) -(define-public rust-blowfish-0.9 - (package - (name "rust-blowfish") - (version "0.9.1") - (source (origin - (method url-fetch) - (uri (crate-uri "blowfish" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1mw7bvj3bg5w8vh9xw9xawqh7ixk2xwsxkj34ph96b9b1z6y44p4")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-byteorder" ,rust-byteorder-1) - ("rust-cipher" ,rust-cipher-0.4)) - #:cargo-development-inputs - (("rust-cipher" ,rust-cipher-0.4)))) - (home-page "https://github.com/RustCrypto/block-ciphers") - (synopsis "Blowfish block cipher") - (description "Blowfish block cipher") - (license (list license:expat license:asl2.0)))) - (define-public rust-borsh-1 (package (name "rust-borsh") -- cgit v1.2.3 From 7d2e2a53512d5ecb4ef8863e70a213c2aa15303e Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 17:27:51 +0200 Subject: gnu: rust-chacha20: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-chacha20-0.9, rust-chacha20-0.8, rust-chacha20poly1305-0.9): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: Icfdd7228ca0414a5964c3f1ddb471f2826752506 --- gnu/packages/crates-crypto.scm | 93 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 93 ------------------------------------------ 2 files changed, 93 insertions(+), 93 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 7dda3de5e1..4637ba3ba8 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -956,6 +956,99 @@ ciphers.") "The ChaCha family of stream ciphers.") (license (list license:asl2.0 license:expat)))) +(define-public rust-chacha20-0.9 + (package + (name "rust-chacha20") + (version "0.9.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "chacha20" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0678wipx6kghp71hpzhl2qvx80q7caz3vm8vsvd07b1fpms3yqf3")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1) + ("rust-cipher" ,rust-cipher-0.4) + ("rust-cpufeatures" ,rust-cpufeatures-0.2)) + #:cargo-development-inputs (("rust-cipher" ,rust-cipher-0.4) + ("rust-hex-literal" ,rust-hex-literal-0.3)))) + (home-page "https://github.com/RustCrypto/stream-ciphers") + (synopsis "ChaCha20 stream cipher implemented in pure Rust") + (description + "The ChaCha20 stream cipher (RFC 8439) implemented in pure Rust using traits +from the RustCrypto @code{cipher} crate, with optional architecture-specific +hardware acceleration (AVX2, SSE2). Additionally provides the ChaCha8, ChaCha12, +XChaCha20, XChaCha12 and XChaCha8 stream ciphers, and also optional +@code{rand_core-compatible} RNGs based on those ciphers.") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-chacha20-0.8 + (package + (inherit rust-chacha20-0.9) + (name "rust-chacha20") + (version "0.8.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "chacha20" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "14cgpnnpqsn5hmqkgrj4yaqdsvy56hkgcw5s2gqsxwhc7m1jmdq1")) + (modules '((guix build utils))) + (snippet + '(begin + (substitute* "Cargo.toml" + (("version = \">=1, <1.5\"") "version = \"^1\"")))))) + (arguments + `(#:cargo-inputs + (("rust-cfg-if" ,rust-cfg-if-1) + ("rust-cipher" ,rust-cipher-0.3) + ("rust-cpufeatures" ,rust-cpufeatures-0.2) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-cipher" ,rust-cipher-0.3) + ("rust-hex-literal" ,rust-hex-literal-0.2)))))) + +(define-public rust-chacha20poly1305-0.9 + (package + (name "rust-chacha20poly1305") + (version "0.9.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "chacha20poly1305" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1xfgn306nfch4a4wwddha8lz6qpnhng50iy4prxlagg6kfq4d151")) + (modules '((guix build utils))) + (snippet + '(begin + (substitute* "Cargo.toml" + (("version = \">=1, <1.5\"") "version = \"^1\"")))))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-aead" ,rust-aead-0.4) + ("rust-chacha20" ,rust-chacha20-0.8) + ("rust-cipher" ,rust-cipher-0.3) + ("rust-poly1305" ,rust-poly1305-0.7) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-aead" ,rust-aead-0.4)))) + (home-page "https://github.com/RustCrypto/AEADs/tree/master/chacha20poly1305") + (synopsis + "Pure Rust implementation of ChaCha20Poly1305 Authenticated Encryption") + (description + "Pure Rust implementation of the ChaCha20Poly1305 Authenticated +Encryption with Additional Data Cipher (RFC 8439) with optional +architecture-specific hardware acceleration. Also contains implementations of +the XChaCha20Poly1305 extended nonce variant of ChaCha20Poly1305, and the +reduced-round ChaCha8Poly1305 and ChaCha12Poly1305 lightweight variants.") + (license (list license:asl2.0 license:expat)))) + (define-public rust-cipher-0.4 (package (name "rust-cipher") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 49bbbc5ba7..2c4b08a5f0 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -10392,99 +10392,6 @@ chain, the first matching branch is the item that gets emitted.") (description "DEPRECATED. Use crossbeam-channel instead.") (license (list license:unlicense license:expat)))) -(define-public rust-chacha20-0.9 - (package - (name "rust-chacha20") - (version "0.9.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "chacha20" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0678wipx6kghp71hpzhl2qvx80q7caz3vm8vsvd07b1fpms3yqf3")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1) - ("rust-cipher" ,rust-cipher-0.4) - ("rust-cpufeatures" ,rust-cpufeatures-0.2)) - #:cargo-development-inputs (("rust-cipher" ,rust-cipher-0.4) - ("rust-hex-literal" ,rust-hex-literal-0.3)))) - (home-page "https://github.com/RustCrypto/stream-ciphers") - (synopsis "ChaCha20 stream cipher implemented in pure Rust") - (description - "The ChaCha20 stream cipher (RFC 8439) implemented in pure Rust using traits -from the RustCrypto @code{cipher} crate, with optional architecture-specific -hardware acceleration (AVX2, SSE2). Additionally provides the ChaCha8, ChaCha12, -XChaCha20, XChaCha12 and XChaCha8 stream ciphers, and also optional -@code{rand_core-compatible} RNGs based on those ciphers.") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-chacha20-0.8 - (package - (inherit rust-chacha20-0.9) - (name "rust-chacha20") - (version "0.8.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "chacha20" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "14cgpnnpqsn5hmqkgrj4yaqdsvy56hkgcw5s2gqsxwhc7m1jmdq1")) - (modules '((guix build utils))) - (snippet - '(begin - (substitute* "Cargo.toml" - (("version = \">=1, <1.5\"") "version = \"^1\"")))))) - (arguments - `(#:cargo-inputs - (("rust-cfg-if" ,rust-cfg-if-1) - ("rust-cipher" ,rust-cipher-0.3) - ("rust-cpufeatures" ,rust-cpufeatures-0.2) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-cipher" ,rust-cipher-0.3) - ("rust-hex-literal" ,rust-hex-literal-0.2)))))) - -(define-public rust-chacha20poly1305-0.9 - (package - (name "rust-chacha20poly1305") - (version "0.9.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "chacha20poly1305" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1xfgn306nfch4a4wwddha8lz6qpnhng50iy4prxlagg6kfq4d151")) - (modules '((guix build utils))) - (snippet - '(begin - (substitute* "Cargo.toml" - (("version = \">=1, <1.5\"") "version = \"^1\"")))))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-aead" ,rust-aead-0.4) - ("rust-chacha20" ,rust-chacha20-0.8) - ("rust-cipher" ,rust-cipher-0.3) - ("rust-poly1305" ,rust-poly1305-0.7) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-aead" ,rust-aead-0.4)))) - (home-page "https://github.com/RustCrypto/AEADs/tree/master/chacha20poly1305") - (synopsis - "Pure Rust implementation of ChaCha20Poly1305 Authenticated Encryption") - (description - "Pure Rust implementation of the ChaCha20Poly1305 Authenticated -Encryption with Additional Data Cipher (RFC 8439) with optional -architecture-specific hardware acceleration. Also contains implementations of -the XChaCha20Poly1305 extended nonce variant of ChaCha20Poly1305, and the -reduced-round ChaCha8Poly1305 and ChaCha12Poly1305 lightweight variants.") - (license (list license:asl2.0 license:expat)))) - (define-public rust-chalk-derive-0.75 (package (name "rust-chalk-derive") -- cgit v1.2.3 From 077c0eb2cafa0feb2e5a9eea0f852b0e6385541d Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 17:29:10 +0200 Subject: gnu: rust-cmac-0.7: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-cmac-0.7): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: Ie4599f60ed2e1c8aa04c165905a57f2ce51d1c69 --- gnu/packages/crates-crypto.scm | 30 ++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 30 ------------------------------ 2 files changed, 30 insertions(+), 30 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 4637ba3ba8..1fe5441a74 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1108,6 +1108,36 @@ traits.") (sha256 (base32 "00b8imbmdg7zdrbaczlivmdfdy09xldg95wl4iijl15xgjcfgy0j")))))) +(define-public rust-cmac-0.7 + (package + (name "rust-cmac") + (version "0.7.2") + (source (origin + (method url-fetch) + (uri (crate-uri "cmac" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1an1vcala24grlyhvk71ikxk2kmgcbal9kgrzzpjcl9z7i74ahw5")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-cipher" ,rust-cipher-0.4) + ("rust-dbl" ,rust-dbl-0.3) + ("rust-digest" ,rust-digest-0.10)) + #:cargo-development-inputs + (("rust-aes" ,rust-aes-0.8) + ("rust-des" ,rust-des-0.8) + ("rust-digest" ,rust-digest-0.10) + ("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-kuznyechik" ,rust-kuznyechik-0.8) + ("rust-magma" ,rust-magma-0.8)))) + (home-page "https://github.com/RustCrypto/MACs") + (synopsis "Generic implementation of Cipher-based Message Authentication Code") + (description "This package provides a pure Rust implementation of the +Cipher-based Message Authentication Code.") + (license (list license:expat license:asl2.0)))) + (define-public rust-crypto-secretbox-0.1 (package (name "rust-crypto-secretbox") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 2c4b08a5f0..6bcba5ce53 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -11774,36 +11774,6 @@ contains all syscalls and related types.") weighted semantic.") (license license:expat))) -(define-public rust-cmac-0.7 - (package - (name "rust-cmac") - (version "0.7.2") - (source (origin - (method url-fetch) - (uri (crate-uri "cmac" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1an1vcala24grlyhvk71ikxk2kmgcbal9kgrzzpjcl9z7i74ahw5")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-cipher" ,rust-cipher-0.4) - ("rust-dbl" ,rust-dbl-0.3) - ("rust-digest" ,rust-digest-0.10)) - #:cargo-development-inputs - (("rust-aes" ,rust-aes-0.8) - ("rust-des" ,rust-des-0.8) - ("rust-digest" ,rust-digest-0.10) - ("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-kuznyechik" ,rust-kuznyechik-0.8) - ("rust-magma" ,rust-magma-0.8)))) - (home-page "https://github.com/RustCrypto/MACs") - (synopsis "Generic implementation of Cipher-based Message Authentication Code") - (description "This package provides a pure Rust implementation of the -Cipher-based Message Authentication Code.") - (license (list license:expat license:asl2.0)))) - (define-public rust-cmake-0.1 (package (name "rust-cmake") -- cgit v1.2.3 From 949963ad584e49262d4176dafa46f346d2da8bce Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 17:30:22 +0200 Subject: gnu: rust-eax-0.5: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-eax-0.5): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I69d09b91a9e83e9a4bd32a54f95af3fb1f213510 --- gnu/packages/crates-crypto.scm | 33 +++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 33 --------------------------------- 2 files changed, 33 insertions(+), 33 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 1fe5441a74..14db432b6e 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1662,6 +1662,39 @@ ristretto255 and Curve25519.") functions.") (license (list license:expat license:asl2.0)))) +(define-public rust-eax-0.5 + (package + (name "rust-eax") + (version "0.5.0") + (source (origin + (method url-fetch) + (uri (crate-uri "eax" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0a5cpzk577f1lw3wkk20iqvavnbdr5yzjrcglvbvk0ivj2yzlm4r")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-aead" ,rust-aead-0.5) + ("rust-cipher" ,rust-cipher-0.4) + ("rust-cmac" ,rust-cmac-0.7) + ("rust-ctr" ,rust-ctr-0.9) + ("rust-subtle" ,rust-subtle-2)) + #:cargo-development-inputs + (("rust-aead" ,rust-aead-0.5) + ("rust-aes" ,rust-aes-0.8)))) + (home-page "https://github.com/RustCrypto/AEADs") + (synopsis "Pure Rust implementation of the EAX Authenticated Encryption with +Associated Data (AEAD)") + (description + "Pure Rust implementation of the EAX Authenticated Encryption with Associated +Data (AEAD) Cipher with optional architecture-specific hardware acceleration +This scheme is only based on a block cipher. It uses counter mode (CTR) for +encryption and CBC mode for generating a OMAC/CMAC/CBCMAC (all names for the +same thing).") + (license (list license:asl2.0 license:expat)))) + (define-public rust-elliptic-curve-0.13 (package (name "rust-elliptic-curve") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 6bcba5ce53..a05b17dc20 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -20805,39 +20805,6 @@ from the main thread.") easy.") (license (list license:unlicense license:zlib)))) -(define-public rust-eax-0.5 - (package - (name "rust-eax") - (version "0.5.0") - (source (origin - (method url-fetch) - (uri (crate-uri "eax" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0a5cpzk577f1lw3wkk20iqvavnbdr5yzjrcglvbvk0ivj2yzlm4r")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-aead" ,rust-aead-0.5) - ("rust-cipher" ,rust-cipher-0.4) - ("rust-cmac" ,rust-cmac-0.7) - ("rust-ctr" ,rust-ctr-0.9) - ("rust-subtle" ,rust-subtle-2)) - #:cargo-development-inputs - (("rust-aead" ,rust-aead-0.5) - ("rust-aes" ,rust-aes-0.8)))) - (home-page "https://github.com/RustCrypto/AEADs") - (synopsis "Pure Rust implementation of the EAX Authenticated Encryption with -Associated Data (AEAD)") - (description - "Pure Rust implementation of the EAX Authenticated Encryption with Associated -Data (AEAD) Cipher with optional architecture-specific hardware acceleration -This scheme is only based on a block cipher. It uses counter mode (CTR) for -encryption and CBC mode for generating a OMAC/CMAC/CBCMAC (all names for the -same thing).") - (license (list license:asl2.0 license:expat)))) - (define-public rust-ecb-0.1 (package (name "rust-ecb") -- cgit v1.2.3 From f94acde4fe5b21413e2c388fdc0429e0c2c33bb3 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 17:31:19 +0200 Subject: gnu: rust-ecdsa: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-ecdsa-0.16, rust-ecdsa-0.14): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I337f357f2a1bb3ed6dd0aac89626ae1030d4b56d --- gnu/packages/crates-crypto.scm | 56 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 56 ------------------------------------------ 2 files changed, 56 insertions(+), 56 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 14db432b6e..7ccabb643a 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1695,6 +1695,62 @@ encryption and CBC mode for generating a OMAC/CMAC/CBCMAC (all names for the same thing).") (license (list license:asl2.0 license:expat)))) +(define-public rust-ecdsa-0.16 + (package + (name "rust-ecdsa") + (version "0.16.6") + (source (origin + (method url-fetch) + (uri (crate-uri "ecdsa" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1zapr75j8w1b7bdnijppb94f2jrk2qdrhv8i4fqc0c4agd9mv3m4")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-der" ,rust-der-0.7) + ("rust-digest" ,rust-digest-0.10) + ("rust-elliptic-curve" ,rust-elliptic-curve-0.13) + ("rust-rfc6979" ,rust-rfc6979-0.4) + ("rust-serdect" ,rust-serdect-0.2) + ("rust-sha2" ,rust-sha2-0.10) + ("rust-signature" ,rust-signature-2)) + #:cargo-development-inputs + (("rust-elliptic-curve" ,rust-elliptic-curve-0.13) + ("rust-hex-literal" ,rust-hex-literal-0.4) + ("rust-sha2" ,rust-sha2-0.10)))) + (home-page "https://github.com/RustCrypto/signatures/tree/master/ecdsa") + (synopsis "Pure Rust implementation of the ECDSA algorithm") + (description + "This package provides a pure Rust implementation of the @dfn{Elliptic +Curve Digital Signature Algorithm} (ECDSA) 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-ecdsa-0.14 + (package + (inherit rust-ecdsa-0.16) + (name "rust-ecdsa") + (version "0.14.8") + (source + (origin + (method url-fetch) + (uri (crate-uri "ecdsa" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0p1wxap2s6jm06y2w3cal8dkz6p9223ir9wws70rgx8h929h2cs1")))) + (arguments + `(#:cargo-inputs (("rust-der" ,rust-der-0.6) + ("rust-elliptic-curve" ,rust-elliptic-curve-0.12) + ("rust-rfc6979" ,rust-rfc6979-0.3) + ("rust-serdect" ,rust-serdect-0.1) + ("rust-signature" ,rust-signature-1)) + #:cargo-development-inputs (("rust-elliptic-curve" ,rust-elliptic-curve-0.12) + ("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-sha2" ,rust-sha2-0.10)))))) + (define-public rust-elliptic-curve-0.13 (package (name "rust-elliptic-curve") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index a05b17dc20..10808ca3ab 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -20829,62 +20829,6 @@ easy.") (description "Electronic Codebook (ECB) block cipher mode of operation") (license license:expat))) -(define-public rust-ecdsa-0.16 - (package - (name "rust-ecdsa") - (version "0.16.6") - (source (origin - (method url-fetch) - (uri (crate-uri "ecdsa" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1zapr75j8w1b7bdnijppb94f2jrk2qdrhv8i4fqc0c4agd9mv3m4")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-der" ,rust-der-0.7) - ("rust-digest" ,rust-digest-0.10) - ("rust-elliptic-curve" ,rust-elliptic-curve-0.13) - ("rust-rfc6979" ,rust-rfc6979-0.4) - ("rust-serdect" ,rust-serdect-0.2) - ("rust-sha2" ,rust-sha2-0.10) - ("rust-signature" ,rust-signature-2)) - #:cargo-development-inputs - (("rust-elliptic-curve" ,rust-elliptic-curve-0.13) - ("rust-hex-literal" ,rust-hex-literal-0.4) - ("rust-sha2" ,rust-sha2-0.10)))) - (home-page "https://github.com/RustCrypto/signatures/tree/master/ecdsa") - (synopsis "Pure Rust implementation of the ECDSA algorithm") - (description - "This package provides a pure Rust implementation of the @dfn{Elliptic -Curve Digital Signature Algorithm} (ECDSA) 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-ecdsa-0.14 - (package - (inherit rust-ecdsa-0.16) - (name "rust-ecdsa") - (version "0.14.8") - (source - (origin - (method url-fetch) - (uri (crate-uri "ecdsa" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0p1wxap2s6jm06y2w3cal8dkz6p9223ir9wws70rgx8h929h2cs1")))) - (arguments - `(#:cargo-inputs (("rust-der" ,rust-der-0.6) - ("rust-elliptic-curve" ,rust-elliptic-curve-0.12) - ("rust-rfc6979" ,rust-rfc6979-0.3) - ("rust-serdect" ,rust-serdect-0.1) - ("rust-signature" ,rust-signature-1)) - #:cargo-development-inputs (("rust-elliptic-curve" ,rust-elliptic-curve-0.12) - ("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-sha2" ,rust-sha2-0.10)))))) - (define-public rust-ecies-ed25519-0.5 (package (name "rust-ecies-ed25519") -- cgit v1.2.3 From 0d84e1275185579aab6b74deefd794b69fa30221 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 17:32:18 +0200 Subject: gnu: rust-ed25519: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-ed25519-1, rust-ed25519-compact-1, rust-ed25519-dalek-1): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I185f83666a5987ee1b3bd04a4d5a3bcd7dc96128 --- gnu/packages/crates-crypto.scm | 96 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 96 ------------------------------------------ 2 files changed, 96 insertions(+), 96 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 7ccabb643a..e3394770a2 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1751,6 +1751,102 @@ support for added entropy.") ("rust-hex-literal" ,rust-hex-literal-0.3) ("rust-sha2" ,rust-sha2-0.10)))))) +(define-public rust-ed25519-1 + (package + (name "rust-ed25519") + (version "1.5.3") + (source (origin + (method url-fetch) + (uri (crate-uri "ed25519" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1rzydm5wd8szkddx3g55w4vm86y1ika8qp8qwckada5vf1fg7kwi")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-pkcs8" ,rust-pkcs8-0.9) + ("rust-serde" ,rust-serde-1) + ("rust-serde-bytes" ,rust-serde-bytes-0.11) + ("rust-signature" ,rust-signature-1) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("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)))) + +(define-public rust-ed25519-compact-2 + (package + (name "rust-ed25519-compact") + (version "2.0.4") + (source (origin + (method url-fetch) + (uri (crate-uri "ed25519-compact" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0k4y7bjl5g0l871iav4zj35qx047n0a4qsvhr28p6434hhp3hgba")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-ct-codecs" ,rust-ct-codecs-1) + ("rust-ed25519" ,rust-ed25519-1) + ("rust-getrandom" ,rust-getrandom-0.2)) + #:cargo-development-inputs + (("rust-ct-codecs" ,rust-ct-codecs-1) + ("rust-getrandom" ,rust-getrandom-0.2)))) + (home-page "https://github.com/jedisct1/rust-ed25519-compact") + (synopsis "Wasm-friendly Ed25519 implementation") + (description + "This package provides a small, self-contained, wasm-friendly Ed25519 +implementation.") + (license license:expat))) + +(define-public rust-ed25519-dalek-1 + (package + (name "rust-ed25519-dalek") + (version "1.0.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "ed25519-dalek" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "17bsriciv93nkm39z22w7mr0h2a3hnbmgf378v4c895gvkkblqn7")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-curve25519-dalek" ,rust-curve25519-dalek-3) + ("rust-ed25519" ,rust-ed25519-1) + ("rust-merlin" ,rust-merlin-2) + ("rust-rand" ,rust-rand-0.7) + ("rust-rand-core" ,rust-rand-core-0.5) + ("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))) + (define-public rust-elliptic-curve-0.13 (package (name "rust-elliptic-curve") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 10808ca3ab..58e376c008 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -20862,102 +20862,6 @@ easy.") "ECIES on Twisted Edwards Curve25519 using AES-GCM and HKDF-SHA256.") (license (list license:expat license:asl2.0)))) -(define-public rust-ed25519-1 - (package - (name "rust-ed25519") - (version "1.5.3") - (source (origin - (method url-fetch) - (uri (crate-uri "ed25519" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1rzydm5wd8szkddx3g55w4vm86y1ika8qp8qwckada5vf1fg7kwi")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-pkcs8" ,rust-pkcs8-0.9) - ("rust-serde" ,rust-serde-1) - ("rust-serde-bytes" ,rust-serde-bytes-0.11) - ("rust-signature" ,rust-signature-1) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("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)))) - -(define-public rust-ed25519-compact-2 - (package - (name "rust-ed25519-compact") - (version "2.0.4") - (source (origin - (method url-fetch) - (uri (crate-uri "ed25519-compact" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0k4y7bjl5g0l871iav4zj35qx047n0a4qsvhr28p6434hhp3hgba")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-ct-codecs" ,rust-ct-codecs-1) - ("rust-ed25519" ,rust-ed25519-1) - ("rust-getrandom" ,rust-getrandom-0.2)) - #:cargo-development-inputs - (("rust-ct-codecs" ,rust-ct-codecs-1) - ("rust-getrandom" ,rust-getrandom-0.2)))) - (home-page "https://github.com/jedisct1/rust-ed25519-compact") - (synopsis "Wasm-friendly Ed25519 implementation") - (description - "This package provides a small, self-contained, wasm-friendly Ed25519 -implementation.") - (license license:expat))) - -(define-public rust-ed25519-dalek-1 - (package - (name "rust-ed25519-dalek") - (version "1.0.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "ed25519-dalek" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "17bsriciv93nkm39z22w7mr0h2a3hnbmgf378v4c895gvkkblqn7")))) - (build-system cargo-build-system) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-curve25519-dalek" ,rust-curve25519-dalek-3) - ("rust-ed25519" ,rust-ed25519-1) - ("rust-merlin" ,rust-merlin-2) - ("rust-rand" ,rust-rand-0.7) - ("rust-rand-core" ,rust-rand-core-0.5) - ("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))) - (define-public rust-edit-distance-2 (package (name "rust-edit-distance") -- cgit v1.2.3 From 012c1d9b4289aba262db5d06c8e68a4729c72db3 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 19:28:51 +0200 Subject: gnu: rust-p256-0.13: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-p256-0.13): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: Id5ff1fce1b76d11caa8f31587357cf28366f2d7a --- gnu/packages/crates-crypto.scm | 37 +++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 37 ------------------------------------- 2 files changed, 37 insertions(+), 37 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index e3394770a2..264b2d26a9 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -2296,6 +2296,43 @@ cryptographic library.") easy and usable crypto while trying to minimize the use of unsafe code.") (license license:expat))) +(define-public rust-p256-0.13 + (package + (name "rust-p256") + (version "0.13.2") + (source (origin + (method url-fetch) + (uri (crate-uri "p256" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0jyd3c3k239ybs59ixpnl7dqkmm072fr1js8kh7ldx58bzc3m1n9")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-ecdsa" ,rust-ecdsa-0.16) + ("rust-elliptic-curve" ,rust-elliptic-curve-0.13) + ("rust-hex-literal" ,rust-hex-literal-0.4) + ("rust-primeorder" ,rust-primeorder-0.13) + ("rust-serdect" ,rust-serdect-0.2) + ("rust-sha2" ,rust-sha2-0.10)) + #:cargo-development-inputs + (("rust-blobby" ,rust-blobby-0.3) + ("rust-criterion" ,rust-criterion-0.4) + ("rust-ecdsa" ,rust-ecdsa-0.16) + ("rust-hex-literal" ,rust-hex-literal-0.4) + ("rust-primeorder" ,rust-primeorder-0.13) + ("rust-proptest" ,rust-proptest-1) + ("rust-rand-core" ,rust-rand-core-0.6)))) + (home-page + "https://github.com/RustCrypto/elliptic-curves/tree/master/p256") + (synopsis "Pure Rust implementation of the NIST P-256") + (description + "This package provides a pure Rust implementation of the NIST P-256 (a.k.a. +secp256r1, prime256v1) elliptic curve as defined in SP 800-186, with support for +ECDH, ECDSA signing/verification, and general purpose curve arithmetic.") + (license (list license:asl2.0 license:expat)))) + (define-public rust-pbkdf2-0.12 (package (name "rust-pbkdf2") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 58e376c008..e1cee42e60 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -45528,43 +45528,6 @@ normally prevent moving a type that has been borrowed from.") (list #:cargo-inputs `(("rust-stable-deref-trait" ,rust-stable-deref-trait-1)))))) -(define-public rust-p256-0.13 - (package - (name "rust-p256") - (version "0.13.2") - (source (origin - (method url-fetch) - (uri (crate-uri "p256" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0jyd3c3k239ybs59ixpnl7dqkmm072fr1js8kh7ldx58bzc3m1n9")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-ecdsa" ,rust-ecdsa-0.16) - ("rust-elliptic-curve" ,rust-elliptic-curve-0.13) - ("rust-hex-literal" ,rust-hex-literal-0.4) - ("rust-primeorder" ,rust-primeorder-0.13) - ("rust-serdect" ,rust-serdect-0.2) - ("rust-sha2" ,rust-sha2-0.10)) - #:cargo-development-inputs - (("rust-blobby" ,rust-blobby-0.3) - ("rust-criterion" ,rust-criterion-0.4) - ("rust-ecdsa" ,rust-ecdsa-0.16) - ("rust-hex-literal" ,rust-hex-literal-0.4) - ("rust-primeorder" ,rust-primeorder-0.13) - ("rust-proptest" ,rust-proptest-1) - ("rust-rand-core" ,rust-rand-core-0.6)))) - (home-page - "https://github.com/RustCrypto/elliptic-curves/tree/master/p256") - (synopsis "Pure Rust implementation of the NIST P-256") - (description - "This package provides a pure Rust implementation of the NIST P-256 (a.k.a. -secp256r1, prime256v1) elliptic curve as defined in SP 800-186, with support for -ECDH, ECDSA signing/verification, and general purpose curve arithmetic.") - (license (list license:asl2.0 license:expat)))) - (define-public rust-p384-0.13 (package (name "rust-p384") -- cgit v1.2.3 From fe5b3e306eb5416b72bdc9d7dd6cb61a4e11f1ca Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 19:29:51 +0200 Subject: gnu: rust-p384-0.13: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-p384-0.13): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I6ff1edbb1ad72a8c536192abf313652605d3f86b --- gnu/packages/crates-crypto.scm | 36 ++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 36 ------------------------------------ 2 files changed, 36 insertions(+), 36 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 264b2d26a9..99c7e353fe 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -2333,6 +2333,42 @@ secp256r1, prime256v1) elliptic curve as defined in SP 800-186, with support for ECDH, ECDSA signing/verification, and general purpose curve arithmetic.") (license (list license:asl2.0 license:expat)))) +(define-public rust-p384-0.13 + (package + (name "rust-p384") + (version "0.13.0") + (source (origin + (method url-fetch) + (uri (crate-uri "p384" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "02cjlxdvxwvhmnckqnydqpvrwhf5raj67q300d66m7y6pi8nyy3h")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-ecdsa" ,rust-ecdsa-0.16) + ("rust-elliptic-curve" ,rust-elliptic-curve-0.13) + ("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-primeorder" ,rust-primeorder-0.13) + ("rust-serdect" ,rust-serdect-0.2) + ("rust-sha2" ,rust-sha2-0.10)) + #:cargo-development-inputs + (("rust-blobby" ,rust-blobby-0.3) + ("rust-criterion" ,rust-criterion-0.4) + ("rust-ecdsa" ,rust-ecdsa-0.16) + ("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-proptest" ,rust-proptest-1) + ("rust-rand-core" ,rust-rand-core-0.6)))) + (home-page + "https://github.com/RustCrypto/elliptic-curves/tree/master/p384") + (synopsis "Pure Rust implementation of the NIST P-384 elliptic curve") + (description + "This package provides a pure Rust implementation of the NIST P-384 (a.k.a. +secp384r1) elliptic curve as defined in SP 800-186 with support for ECDH, ECDSA +signing/verification, and general purpose curve arithmetic support.") + (license (list license:asl2.0 license:expat)))) + (define-public rust-pbkdf2-0.12 (package (name "rust-pbkdf2") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index e1cee42e60..9cc40b58ab 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -45528,42 +45528,6 @@ normally prevent moving a type that has been borrowed from.") (list #:cargo-inputs `(("rust-stable-deref-trait" ,rust-stable-deref-trait-1)))))) -(define-public rust-p384-0.13 - (package - (name "rust-p384") - (version "0.13.0") - (source (origin - (method url-fetch) - (uri (crate-uri "p384" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "02cjlxdvxwvhmnckqnydqpvrwhf5raj67q300d66m7y6pi8nyy3h")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-ecdsa" ,rust-ecdsa-0.16) - ("rust-elliptic-curve" ,rust-elliptic-curve-0.13) - ("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-primeorder" ,rust-primeorder-0.13) - ("rust-serdect" ,rust-serdect-0.2) - ("rust-sha2" ,rust-sha2-0.10)) - #:cargo-development-inputs - (("rust-blobby" ,rust-blobby-0.3) - ("rust-criterion" ,rust-criterion-0.4) - ("rust-ecdsa" ,rust-ecdsa-0.16) - ("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-proptest" ,rust-proptest-1) - ("rust-rand-core" ,rust-rand-core-0.6)))) - (home-page - "https://github.com/RustCrypto/elliptic-curves/tree/master/p384") - (synopsis "Pure Rust implementation of the NIST P-384 elliptic curve") - (description - "This package provides a pure Rust implementation of the NIST P-384 (a.k.a. -secp384r1) elliptic curve as defined in SP 800-186 with support for ECDH, ECDSA -signing/verification, and general purpose curve arithmetic support.") - (license (list license:asl2.0 license:expat)))) - (define-public rust-packed-simd-0.3 (package (name "rust-packed-simd") -- cgit v1.2.3 From f0a2b73c0159a7fb48605d9d67585ee2a87593e0 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 19:31:43 +0200 Subject: gnu: rust-ecies-ed25519-0.5: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-ecies-ed25519-0.5): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: Icb8a0e6585554f89add3c421dade9bcd8051966b --- gnu/packages/crates-crypto.scm | 33 +++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 33 --------------------------------- 2 files changed, 33 insertions(+), 33 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 99c7e353fe..3553ff36c2 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1751,6 +1751,39 @@ support for added entropy.") ("rust-hex-literal" ,rust-hex-literal-0.3) ("rust-sha2" ,rust-sha2-0.10)))))) +(define-public rust-ecies-ed25519-0.5 + (package + (name "rust-ecies-ed25519") + (version "0.5.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "ecies-ed25519" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1nrmam79mn2y6b235rpq6lhlsfl63275j2yxps86424gh99j720a")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-aes-gcm" ,rust-aes-gcm-0.8) + ("rust-curve25519-dalek" ,rust-curve25519-dalek-3) + ("rust-digest" ,rust-digest-0.9) + ("rust-hex" ,rust-hex-0.4) + ("rust-hkdf" ,rust-hkdf-0.10) + ("rust-rand" ,rust-rand-0.7) + ("rust-ring" ,rust-ring-0.16) + ("rust-serde" ,rust-serde-1) + ("rust-sha2" ,rust-sha2-0.9) + ("rust-thiserror" ,rust-thiserror-1) + ("rust-zeroize" ,rust-zeroize-1)))) + (home-page "https://github.com/phayes/ecies-ed25519") + (synopsis + "Integrated encryption scheme on Twisted Edwards Curve25519") + (description + "ECIES on Twisted Edwards Curve25519 using AES-GCM and HKDF-SHA256.") + (license (list license:expat license:asl2.0)))) + (define-public rust-ed25519-1 (package (name "rust-ed25519") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 9cc40b58ab..4cdcb2058e 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -20829,39 +20829,6 @@ easy.") (description "Electronic Codebook (ECB) block cipher mode of operation") (license license:expat))) -(define-public rust-ecies-ed25519-0.5 - (package - (name "rust-ecies-ed25519") - (version "0.5.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "ecies-ed25519" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1nrmam79mn2y6b235rpq6lhlsfl63275j2yxps86424gh99j720a")))) - (build-system cargo-build-system) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-aes-gcm" ,rust-aes-gcm-0.8) - ("rust-curve25519-dalek" ,rust-curve25519-dalek-3) - ("rust-digest" ,rust-digest-0.9) - ("rust-hex" ,rust-hex-0.4) - ("rust-hkdf" ,rust-hkdf-0.10) - ("rust-rand" ,rust-rand-0.7) - ("rust-ring" ,rust-ring-0.16) - ("rust-serde" ,rust-serde-1) - ("rust-sha2" ,rust-sha2-0.9) - ("rust-thiserror" ,rust-thiserror-1) - ("rust-zeroize" ,rust-zeroize-1)))) - (home-page "https://github.com/phayes/ecies-ed25519") - (synopsis - "Integrated encryption scheme on Twisted Edwards Curve25519") - (description - "ECIES on Twisted Edwards Curve25519 using AES-GCM and HKDF-SHA256.") - (license (list license:expat license:asl2.0)))) - (define-public rust-edit-distance-2 (package (name "rust-edit-distance") -- cgit v1.2.3 From 91dd5744c91bf3132b9cb13b50fb31367e4577d3 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 19:37:49 +0200 Subject: gnu: rust-cbc-0.1: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-cbc-0.1): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I5a2c6b3416d583636ca3ffa6360bfea080e1374f --- gnu/packages/crates-crypto.scm | 24 ++++++++++++++++++++++++ gnu/packages/crates-io.scm | 24 ------------------------ 2 files changed, 24 insertions(+), 24 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 3553ff36c2..25bbed9fa9 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -956,6 +956,30 @@ ciphers.") "The ChaCha family of stream ciphers.") (license (list license:asl2.0 license:expat)))) +(define-public rust-cbc-0.1 + (package + (name "rust-cbc") + (version "0.1.2") + (source (origin + (method url-fetch) + (uri (crate-uri "cbc" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "19l9y9ccv1ffg6876hshd123f2f8v7zbkc4nkckqycxf8fajmd96")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-cipher" ,rust-cipher-0.4)) + #:cargo-development-inputs + (("rust-aes" ,rust-aes-0.8) + ("rust-cipher" ,rust-cipher-0.4) + ("rust-hex-literal" ,rust-hex-literal-0.3)))) + (home-page "https://github.com/RustCrypto/block-modes") + (synopsis "Cipher Block Chaining (CBC) block cipher mode of operation") + (description "Cipher Block Chaining (CBC) block cipher mode of operation.") + (license (list license:expat license:asl2.0)))) + (define-public rust-chacha20-0.9 (package (name "rust-chacha20") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 4cdcb2058e..9c40ce6c38 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -10065,30 +10065,6 @@ box''.") types that works on stable Rust.") (license license:expat))) -(define-public rust-cbc-0.1 - (package - (name "rust-cbc") - (version "0.1.2") - (source (origin - (method url-fetch) - (uri (crate-uri "cbc" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "19l9y9ccv1ffg6876hshd123f2f8v7zbkc4nkckqycxf8fajmd96")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-cipher" ,rust-cipher-0.4)) - #:cargo-development-inputs - (("rust-aes" ,rust-aes-0.8) - ("rust-cipher" ,rust-cipher-0.4) - ("rust-hex-literal" ,rust-hex-literal-0.3)))) - (home-page "https://github.com/RustCrypto/block-modes") - (synopsis "Cipher Block Chaining (CBC) block cipher mode of operation") - (description "Cipher Block Chaining (CBC) block cipher mode of operation.") - (license (list license:expat license:asl2.0)))) - (define-public rust-cblas-sys-0.1 (package (name "rust-cblas-sys") -- cgit v1.2.3 From 2b30ea2c23f21858d64f1f951b63b8d04b6e0d72 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 19:38:53 +0200 Subject: gnu: rust-cast5-0.11: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-cast5-0.11): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I8ca48f116128ac2433609d3d33ed2e4bd597c72c --- gnu/packages/crates-crypto.scm | 23 +++++++++++++++++++++++ gnu/packages/crates-io.scm | 23 ----------------------- 2 files changed, 23 insertions(+), 23 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 25bbed9fa9..b6ff123b74 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -956,6 +956,29 @@ ciphers.") "The ChaCha family of stream ciphers.") (license (list license:asl2.0 license:expat)))) +(define-public rust-cast5-0.11 + (package + (name "rust-cast5") + (version "0.11.1") + (source (origin + (method url-fetch) + (uri (crate-uri "cast5" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "04crg8dj6lxbp3lmdc3filsahxcyvccvhm0gx40g1k5i7mkpvc16")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-cipher" ,rust-cipher-0.4)) + #:cargo-development-inputs + (("rust-cipher" ,rust-cipher-0.4) + ("rust-hex-literal" ,rust-hex-literal-0.3)))) + (home-page "https://github.com/RustCrypto/block-ciphers") + (synopsis "CAST5 block cipher") + (description "CAST5 block cipher") + (license (list license:expat license:asl2.0)))) + (define-public rust-cbc-0.1 (package (name "rust-cbc") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 9c40ce6c38..5197ef3b2f 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -10018,29 +10018,6 @@ box''.") #:cargo-development-inputs (("rust-quickcheck" ,rust-quickcheck-0.9)))))) -(define-public rust-cast5-0.11 - (package - (name "rust-cast5") - (version "0.11.1") - (source (origin - (method url-fetch) - (uri (crate-uri "cast5" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "04crg8dj6lxbp3lmdc3filsahxcyvccvhm0gx40g1k5i7mkpvc16")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-cipher" ,rust-cipher-0.4)) - #:cargo-development-inputs - (("rust-cipher" ,rust-cipher-0.4) - ("rust-hex-literal" ,rust-hex-literal-0.3)))) - (home-page "https://github.com/RustCrypto/block-ciphers") - (synopsis "CAST5 block cipher") - (description "CAST5 block cipher") - (license (list license:expat license:asl2.0)))) - (define-public rust-castaway-0.2 (package (name "rust-castaway") -- cgit v1.2.3 From ae09a95ce2a39d14a69a0f3519a522b5c97b3eea Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 19:40:02 +0200 Subject: gnu: rust-cfb-mode-0.8: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-cfb-mode-0.8): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I5c2d3da0000d28a02e6a425ac9bbf011336d97af --- gnu/packages/crates-crypto.scm | 24 ++++++++++++++++++++++++ gnu/packages/crates-io.scm | 24 ------------------------ 2 files changed, 24 insertions(+), 24 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index b6ff123b74..738b5adba0 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1003,6 +1003,30 @@ ciphers.") (description "Cipher Block Chaining (CBC) block cipher mode of operation.") (license (list license:expat license:asl2.0)))) +(define-public rust-cfb-mode-0.8 + (package + (name "rust-cfb-mode") + (version "0.8.2") + (source (origin + (method url-fetch) + (uri (crate-uri "cfb-mode" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0c6kd34jk4p52vr0qgn9slj6zdgmc42gfcqr6mqhmy37g138v2vk")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-cipher" ,rust-cipher-0.4)) + #:cargo-development-inputs + (("rust-aes" ,rust-aes-0.8) + ("rust-cipher" ,rust-cipher-0.4) + ("rust-hex-literal" ,rust-hex-literal-0.3)))) + (home-page "https://github.com/RustCrypto/block-modes") + (synopsis "Cipher Feedback (CFB) block cipher mode of operation") + (description "Cipher Feedback (CFB) block cipher mode of operation") + (license (list license:expat license:asl2.0)))) + (define-public rust-chacha20-0.9 (package (name "rust-chacha20") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 5197ef3b2f..cf1c2a4f47 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -10174,30 +10174,6 @@ that need to represent UTF-16 data as 8-bit characters.") #:cargo-development-inputs (("rust-clang-sys" ,rust-clang-sys-0.28)))))) -(define-public rust-cfb-mode-0.8 - (package - (name "rust-cfb-mode") - (version "0.8.2") - (source (origin - (method url-fetch) - (uri (crate-uri "cfb-mode" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0c6kd34jk4p52vr0qgn9slj6zdgmc42gfcqr6mqhmy37g138v2vk")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-cipher" ,rust-cipher-0.4)) - #:cargo-development-inputs - (("rust-aes" ,rust-aes-0.8) - ("rust-cipher" ,rust-cipher-0.4) - ("rust-hex-literal" ,rust-hex-literal-0.3)))) - (home-page "https://github.com/RustCrypto/block-modes") - (synopsis "Cipher Feedback (CFB) block cipher mode of operation") - (description "Cipher Feedback (CFB) block cipher mode of operation") - (license (list license:expat license:asl2.0)))) - (define-public rust-cfg-aliases-0.1 (package (name "rust-cfg-aliases") -- cgit v1.2.3 From b183cce3b0467a2d1ba3520cd3c6ecb9aed9f3bb Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 19:41:39 +0200 Subject: gnu: rust-block-cipher-trait: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-block-cipher-trait-0.6, rust-block-cipher-trait-0.4): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I449e264f064dd389e0e44b57ba6d29ba376a0562 --- gnu/packages/crates-crypto.scm | 40 ++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 40 ---------------------------------------- 2 files changed, 40 insertions(+), 40 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 738b5adba0..82c5f409df 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -790,6 +790,46 @@ based on Blake2s.") ciphers.") (license (list license:expat license:asl2.0)))) +(define-public rust-block-cipher-trait-0.6 + (package + (name "rust-block-cipher-trait") + (version "0.6.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "block-cipher-trait" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0x273w6fwka0i48nrv428birdrs2jz6jdnmc0dhc1rq9pm4lv4hw")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-blobby" ,rust-blobby-0.1) + ("rust-generic-array" ,rust-generic-array-0.12)))) + (home-page "https://github.com/RustCrypto/block-ciphers") + (synopsis "Block cipher algorithms") + (description "This package provides a collection of block cipher +algorithms. This package is deprecated. Please use block-cipher instead.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-block-cipher-trait-0.4 + (package + (inherit rust-block-cipher-trait-0.6) + (name "rust-block-cipher-trait") + (version "0.4.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "block-cipher-trait" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "10qmg8vphqmfllb9a2yx6s7r66jh1wh33clhsawq7ikg2wgz2p6q")))) + (arguments + `(#:cargo-inputs + (("rust-generic-array" ,rust-generic-array-0.8)))))) + (define-public rust-blowfish-0.9 (package (name "rust-blowfish") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index cf1c2a4f47..3143b6d375 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -6994,46 +6994,6 @@ storage.") (("rust-arrayref" ,rust-arrayref-0.3) ("rust-byte-tools" ,rust-byte-tools-0.2)))))) -(define-public rust-block-cipher-trait-0.6 - (package - (name "rust-block-cipher-trait") - (version "0.6.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "block-cipher-trait" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0x273w6fwka0i48nrv428birdrs2jz6jdnmc0dhc1rq9pm4lv4hw")))) - (build-system cargo-build-system) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-blobby" ,rust-blobby-0.1) - ("rust-generic-array" ,rust-generic-array-0.12)))) - (home-page "https://github.com/RustCrypto/block-ciphers") - (synopsis "Block cipher algorithms") - (description "This package provides a collection of block cipher -algorithms. This package is deprecated. Please use block-cipher instead.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-block-cipher-trait-0.4 - (package - (inherit rust-block-cipher-trait-0.6) - (name "rust-block-cipher-trait") - (version "0.4.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "block-cipher-trait" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "10qmg8vphqmfllb9a2yx6s7r66jh1wh33clhsawq7ikg2wgz2p6q")))) - (arguments - `(#:cargo-inputs - (("rust-generic-array" ,rust-generic-array-0.8)))))) - (define-public rust-block-modes-0.8 (package (name "rust-block-modes") -- cgit v1.2.3 From 1f4c5d496f406b79d3ac28604bfae372a5a9710c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 19:42:59 +0200 Subject: gnu: rust-block-modes: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-block-modes-0.8, rust-block-modes-0.7): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I69ec6ff8dc819cf6fb3672561729c4cbb5686392 --- gnu/packages/crates-crypto.scm | 44 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 44 ------------------------------------------ 2 files changed, 44 insertions(+), 44 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 82c5f409df..5a43157839 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -830,6 +830,50 @@ algorithms. This package is deprecated. Please use block-cipher instead.") `(#:cargo-inputs (("rust-generic-array" ,rust-generic-array-0.8)))))) +(define-public rust-block-modes-0.8 + (package + (name "rust-block-modes") + (version "0.8.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "block-modes" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "13id7rw1lhi83i701za8w5is3a8qkf4vfigqw3f8jp8mxldkvc1c")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-block-padding" ,rust-block-padding-0.2) + ("rust-cipher" ,rust-cipher-0.3)))) + (home-page "https://github.com/RustCrypto/block-ciphers") + (synopsis "Block cipher modes of operation") + (description "This package provides a collection of block ciphers +and block modes.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-block-modes-0.7 + (package + (inherit rust-block-modes-0.8) + (name "rust-block-modes") + (version "0.7.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "block-modes" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1w3jc3n7k4xq98b9mfina4wwpg1fq1s3b0mm5whqialb7q3yi82p")))) + (arguments + `(#:cargo-inputs + (("rust-block-padding" ,rust-block-padding-0.2) + ("rust-cipher" ,rust-cipher-0.2)) + #:cargo-development-inputs + (("rust-aes" ,rust-aes-0.6) + ("rust-hex-literal" ,rust-hex-literal-0.2)))))) + (define-public rust-blowfish-0.9 (package (name "rust-blowfish") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 3143b6d375..4e265f5d7f 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -6994,50 +6994,6 @@ storage.") (("rust-arrayref" ,rust-arrayref-0.3) ("rust-byte-tools" ,rust-byte-tools-0.2)))))) -(define-public rust-block-modes-0.8 - (package - (name "rust-block-modes") - (version "0.8.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "block-modes" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "13id7rw1lhi83i701za8w5is3a8qkf4vfigqw3f8jp8mxldkvc1c")))) - (build-system cargo-build-system) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-block-padding" ,rust-block-padding-0.2) - ("rust-cipher" ,rust-cipher-0.3)))) - (home-page "https://github.com/RustCrypto/block-ciphers") - (synopsis "Block cipher modes of operation") - (description "This package provides a collection of block ciphers -and block modes.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-block-modes-0.7 - (package - (inherit rust-block-modes-0.8) - (name "rust-block-modes") - (version "0.7.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "block-modes" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1w3jc3n7k4xq98b9mfina4wwpg1fq1s3b0mm5whqialb7q3yi82p")))) - (arguments - `(#:cargo-inputs - (("rust-block-padding" ,rust-block-padding-0.2) - ("rust-cipher" ,rust-cipher-0.2)) - #:cargo-development-inputs - (("rust-aes" ,rust-aes-0.6) - ("rust-hex-literal" ,rust-hex-literal-0.2)))))) - (define-public rust-block-padding-0.3 (package (name "rust-block-padding") -- cgit v1.2.3 From 639ea4873149103c451fef03f1edbb24c3b96cf0 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 19:44:21 +0200 Subject: gnu: rust-ctr: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-ctr-0.9, rust-ctr-0.8, rust-ctr-0.6): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I34938901cac417eace8be453465ba56a7a338f24 --- gnu/packages/crates-crypto.scm | 63 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 63 ------------------------------------------ 2 files changed, 63 insertions(+), 63 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 5a43157839..24154605bf 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1646,6 +1646,69 @@ algorithms.") hash functions.") (license license:expat))) +(define-public rust-ctr-0.9 + (package + (name "rust-ctr") + (version "0.9.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "ctr" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0d88b73waamgpfjdml78icxz45d95q7vi2aqa604b0visqdfws83")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-cipher" ,rust-cipher-0.4)) + #:cargo-development-inputs + (("rust-aes" ,rust-aes-0.8) + ("rust-cipher" ,rust-cipher-0.4) + ("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-kuznyechik" ,rust-kuznyechik-0.8) + ("rust-magma" ,rust-magma-0.8)))) + (home-page "https://docs.rs/ctr/") + (synopsis "CTR block mode of operation") + (description "This package provides a generic implementations of CTR mode +for block ciphers. Mode functionality is accessed using traits from +re-exported cipher crate.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-ctr-0.8 + (package + (inherit rust-ctr-0.9) + (name "rust-ctr") + (version "0.8.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "ctr" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1sk1aykwhkny92cnvl6s75dx3fyvfzw5xkd6xz3y7w5anhgvk6q4")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs (("rust-cipher" ,rust-cipher-0.3)))))) + +(define-public rust-ctr-0.6 + (package + (inherit rust-ctr-0.8) + (name "rust-ctr") + (version "0.6.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "ctr" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0zvyf13675hrlc37myj97k5ng7m1mj3d9p4ic4yvyhvl9zak0jpv")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs (("rust-cipher" ,rust-cipher-0.2)))))) + (define-public rust-curve25519-dalek-3 (package (name "rust-curve25519-dalek") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 4e265f5d7f..296a2a16c6 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -16275,69 +16275,6 @@ use with sct crate.") #:cargo-development-inputs `(("rust-libc-print" ,rust-libc-print-0.1)))))) -(define-public rust-ctr-0.9 - (package - (name "rust-ctr") - (version "0.9.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "ctr" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0d88b73waamgpfjdml78icxz45d95q7vi2aqa604b0visqdfws83")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-cipher" ,rust-cipher-0.4)) - #:cargo-development-inputs - (("rust-aes" ,rust-aes-0.8) - ("rust-cipher" ,rust-cipher-0.4) - ("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-kuznyechik" ,rust-kuznyechik-0.8) - ("rust-magma" ,rust-magma-0.8)))) - (home-page "https://docs.rs/ctr/") - (synopsis "CTR block mode of operation") - (description "This package provides a generic implementations of CTR mode -for block ciphers. Mode functionality is accessed using traits from -re-exported cipher crate.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-ctr-0.8 - (package - (inherit rust-ctr-0.9) - (name "rust-ctr") - (version "0.8.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "ctr" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1sk1aykwhkny92cnvl6s75dx3fyvfzw5xkd6xz3y7w5anhgvk6q4")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs (("rust-cipher" ,rust-cipher-0.3)))))) - -(define-public rust-ctr-0.6 - (package - (inherit rust-ctr-0.8) - (name "rust-ctr") - (version "0.6.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "ctr" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0zvyf13675hrlc37myj97k5ng7m1mj3d9p4ic4yvyhvl9zak0jpv")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs (("rust-cipher" ,rust-cipher-0.2)))))) - (define-public rust-ctrlc-3 (package (name "rust-ctrlc") -- cgit v1.2.3 From 1f68b67aa1d8fbf087fac659b49228f889dfa309 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 19:45:30 +0200 Subject: gnu: rust-des: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-des-0.8, rust-des-0.7, rust-des-0.6): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I18b2044dd95e2da04606377e6cd0e9961b5a512f --- gnu/packages/crates-crypto.scm | 63 +++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 64 ------------------------------------------ 2 files changed, 63 insertions(+), 64 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 24154605bf..cf59d88fa0 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1777,6 +1777,69 @@ ristretto255 and Curve25519.") ristretto255 and Curve25519.") (license license:bsd-3))) +(define-public rust-des-0.8 + (package + (name "rust-des") + (version "0.8.1") + (source (origin + (method url-fetch) + (uri (crate-uri "des" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "07kshslxanmg0g6007scvglfhg6mli2a8qzhx4kxx4z9ik781pgz")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-cipher" ,rust-cipher-0.4)) + #:cargo-development-inputs (("rust-cipher" ,rust-cipher-0.4)))) + (home-page "https://github.com/RustCrypto/block-ciphers") + (synopsis "DES and Triple DES block ciphers implementation") + (description "This package provides DES and Triple DES (3DES, TDES) block +ciphers implementations.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-des-0.7 + (package + (inherit rust-des-0.8) + (name "rust-des") + (version "0.7.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "des" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0pbsfkkwfqnd4nsv3ik4z09h248f57y7bj2j1l134i2mzd4xshdc")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-byteorder" ,rust-byteorder-1) + ("rust-cipher" ,rust-cipher-0.3) + ("rust-opaque-debug" ,rust-opaque-debug-0.3)))))) + +(define-public rust-des-0.6 + (package + (inherit rust-des-0.7) + (name "rust-des") + (version "0.6.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "des" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1bigk1x1kxvnfjn1alr8cc383z1flmj8q7g2pjl2zal8i1s7qkmj")))) + (arguments + `(#:cargo-inputs + (("rust-byteorder" ,rust-byteorder-1) + ("rust-cipher" ,rust-cipher-0.2) + ("rust-opaque-debug" ,rust-opaque-debug-0.3)) + #:cargo-development-inputs + (("rust-cipher" ,rust-cipher-0.2)))))) + (define-public rust-digest-0.10 (package (name "rust-digest") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 296a2a16c6..ede8a7b3ca 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -18951,70 +18951,6 @@ structs and enums.") (description "Deriving with custom trait bounds.") (license (list license:expat license:asl2.0)))) -(define-public rust-des-0.8 - (package - (name "rust-des") - (version "0.8.1") - (source (origin - (method url-fetch) - (uri (crate-uri "des" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "07kshslxanmg0g6007scvglfhg6mli2a8qzhx4kxx4z9ik781pgz")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs (("rust-cipher" ,rust-cipher-0.4)) - #:cargo-development-inputs (("rust-cipher" ,rust-cipher-0.4)))) - (home-page "https://github.com/RustCrypto/block-ciphers") - (synopsis "DES and Triple DES block ciphers implementation") - (description "This package provides DES and Triple DES (3DES, TDES) block -ciphers implementations.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-des-0.7 - (package - (inherit rust-des-0.8) - (name "rust-des") - (version "0.7.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "des" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0pbsfkkwfqnd4nsv3ik4z09h248f57y7bj2j1l134i2mzd4xshdc")))) - (arguments - `(#:skip-build? - #t - #:cargo-inputs - (("rust-byteorder" ,rust-byteorder-1) - ("rust-cipher" ,rust-cipher-0.3) - ("rust-opaque-debug" ,rust-opaque-debug-0.3)))))) - -(define-public rust-des-0.6 - (package - (inherit rust-des-0.7) - (name "rust-des") - (version "0.6.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "des" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1bigk1x1kxvnfjn1alr8cc383z1flmj8q7g2pjl2zal8i1s7qkmj")))) - (arguments - `(#:cargo-inputs - (("rust-byteorder" ,rust-byteorder-1) - ("rust-cipher" ,rust-cipher-0.2) - ("rust-opaque-debug" ,rust-opaque-debug-0.3)) - #:cargo-development-inputs - (("rust-cipher" ,rust-cipher-0.2)))))) - (define-public rust-deunicode-0.4 (package (name "rust-deunicode") -- cgit v1.2.3 From f0dae629b22e9c861dd12f4b0a30e27c25913eae Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 19:47:14 +0200 Subject: gnu: rust-ghash: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-ghash-0.5, rust-hash-0.3, rust-ghash-0.2): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I2088d5cd98ba03643fab25bd890a4775bc93f567 --- gnu/packages/crates-crypto.scm | 65 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 65 ------------------------------------------ 2 files changed, 65 insertions(+), 65 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index cf59d88fa0..c345ef9cad 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -2240,6 +2240,71 @@ curve forms, scalars, points, and public/secret keys composed thereof.") ("rust-sha2" ,rust-sha2-0.10) ("rust-sha3" ,rust-sha3-0.10)))))) +(define-public rust-ghash-0.5 + (package + (name "rust-ghash") + (version "0.5.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "ghash" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0h1y3v3kj8xxkf2snv1yly0lr20fdh3jrm60p382szbiwl6pac6r")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-opaque-debug" ,rust-opaque-debug-0.3) + ("rust-polyval" ,rust-polyval-0.6) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.3)))) + (home-page "https://github.com/RustCrypto/universal-hashes") + (synopsis "Universal hash over GF(2^128)") + (description "This package provides a universal hash over GF(2^128) useful +for constructing a Message Authentication Code (MAC), as in the AES-GCM +authenticated encryption cipher.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-ghash-0.3 + (package + (inherit rust-ghash-0.5) + (name "rust-ghash") + (version "0.3.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "ghash" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0xd362xh17hadc2194dd6kjjq0ak1j4x7kkmfmpq9hw2s564wc4p")))) + (arguments + `(#:cargo-inputs + (("rust-opaque-debug" ,rust-opaque-debug-0.3) + ("rust-polyval" ,rust-polyval-0.4) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.2)))))) + +(define-public rust-ghash-0.2 + (package + (inherit rust-ghash-0.3) + (name "rust-ghash") + (version "0.2.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "ghash" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0lijv1y6qcysnxv45ny5fjvc4v9gmpggxlj6xa4l065737nk02cz")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-polyval" ,rust-polyval-0.3) + ("rust-zeroize" ,rust-zeroize-1)))))) + (define-public rust-hkdf-0.12 (package (name "rust-hkdf") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index ede8a7b3ca..89c9e3a661 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -26794,71 +26794,6 @@ getters and setters on fields.") pointers above 2G.") (license license:gpl3))) -(define-public rust-ghash-0.5 - (package - (name "rust-ghash") - (version "0.5.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "ghash" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0h1y3v3kj8xxkf2snv1yly0lr20fdh3jrm60p382szbiwl6pac6r")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-opaque-debug" ,rust-opaque-debug-0.3) - ("rust-polyval" ,rust-polyval-0.6) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.3)))) - (home-page "https://github.com/RustCrypto/universal-hashes") - (synopsis "Universal hash over GF(2^128)") - (description "This package provides a universal hash over GF(2^128) useful -for constructing a Message Authentication Code (MAC), as in the AES-GCM -authenticated encryption cipher.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-ghash-0.3 - (package - (inherit rust-ghash-0.5) - (name "rust-ghash") - (version "0.3.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "ghash" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0xd362xh17hadc2194dd6kjjq0ak1j4x7kkmfmpq9hw2s564wc4p")))) - (arguments - `(#:cargo-inputs - (("rust-opaque-debug" ,rust-opaque-debug-0.3) - ("rust-polyval" ,rust-polyval-0.4) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.2)))))) - -(define-public rust-ghash-0.2 - (package - (inherit rust-ghash-0.3) - (name "rust-ghash") - (version "0.2.3") - (source - (origin - (method url-fetch) - (uri (crate-uri "ghash" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0lijv1y6qcysnxv45ny5fjvc4v9gmpggxlj6xa4l065737nk02cz")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-polyval" ,rust-polyval-0.3) - ("rust-zeroize" ,rust-zeroize-1)))))) - (define-public rust-ghost-0.1 (package (name "rust-ghost") -- cgit v1.2.3 From 69fef3f7b599943273af3bd65fe14336e5c70c51 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 19:48:58 +0200 Subject: gnu: rust-md-5: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-md-5-0.10, rust-md-5-0.9, rust-md-5-0.8): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I44af5ddc2c8b84b380691a98b6fadcea334b09a0 --- gnu/packages/crates-crypto.scm | 73 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 73 ------------------------------------------ 2 files changed, 73 insertions(+), 73 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index c345ef9cad..a08f8bea74 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -2561,6 +2561,79 @@ Hash-based Message Authentication Code}.") Hash-based Message Authentication Code algorithm} for SHA1.") (license license:bsd-3))) +(define-public rust-md-5-0.10 + (package + (name "rust-md-5") + (version "0.10.5") + (source (origin + (method url-fetch) + (uri (crate-uri "md-5" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1jmrykh705dfclkgxwjysj5y8l1nyrn1gddw5xpgyjyla1l50rb3")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-digest" ,rust-digest-0.10) + ("rust-md5-asm" ,rust-md5-asm-0.5)))) + (home-page "https://github.com/RustCrypto/hashes") + (synopsis "MD5 hash function") + (description + "This library provides a MD5 hash function for Rust.") + ;; The user can choose either license. + (license (list license:expat license:asl2.0)))) + +(define-public rust-md-5-0.9 + (package + (inherit rust-md-5-0.10) + (name "rust-md-5") + (version "0.9.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "md-5" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "059ajjacz1q3cms7vl6cvhdqs4qdw2nnwj9dq99ryzv0p6djfnkv")))) + (arguments + `(#:cargo-inputs + (("rust-block-buffer" ,rust-block-buffer-0.9) + ("rust-digest" ,rust-digest-0.9) + ("rust-md5-asm" ,rust-md5-asm-0.4) + ("rust-opaque-debug" ,rust-opaque-debug-0.3)) + #:cargo-development-inputs + (("rust-digest" ,rust-digest-0.9) + ("rust-hex-literal" ,rust-hex-literal-0.2)))))) + +(define-public rust-md-5-0.8 + (package + (inherit rust-md-5-0.9) + (name "rust-md-5") + (version "0.8.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "md-5" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1j5rfxy2p76xf5f1lgaw85xla0b1bbv2lknvdhv1j0ibmzfg72m1")))) + (arguments + `(#:tests? #f ; cannot find macro `proc_macro_call` in this scope + #:cargo-inputs + (("rust-block-buffer" ,rust-block-buffer-0.7) + ("rust-digest" ,rust-digest-0.8) + ("rust-md5-asm" ,rust-md5-asm-0.4) + ("rust-opaque-debug" ,rust-opaque-debug-0.2)) + #:cargo-development-inputs + (("rust-digest" ,rust-digest-0.8) + ("rust-hex-literal" ,rust-hex-literal-0.1)))))) + (define-public rust-nettle-7 (package (name "rust-nettle") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 89c9e3a661..9195cee498 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -37522,79 +37522,6 @@ async code in Rust.") "This package provides MaybeUninit for friends of backwards compatibility.") (license (list license:asl2.0 license:expat)))) -(define-public rust-md-5-0.10 - (package - (name "rust-md-5") - (version "0.10.5") - (source (origin - (method url-fetch) - (uri (crate-uri "md-5" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1jmrykh705dfclkgxwjysj5y8l1nyrn1gddw5xpgyjyla1l50rb3")))) - (build-system cargo-build-system) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-digest" ,rust-digest-0.10) - ("rust-md5-asm" ,rust-md5-asm-0.5)))) - (home-page "https://github.com/RustCrypto/hashes") - (synopsis "MD5 hash function") - (description - "This library provides a MD5 hash function for Rust.") - ;; The user can choose either license. - (license (list license:expat license:asl2.0)))) - -(define-public rust-md-5-0.9 - (package - (inherit rust-md-5-0.10) - (name "rust-md-5") - (version "0.9.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "md-5" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "059ajjacz1q3cms7vl6cvhdqs4qdw2nnwj9dq99ryzv0p6djfnkv")))) - (arguments - `(#:cargo-inputs - (("rust-block-buffer" ,rust-block-buffer-0.9) - ("rust-digest" ,rust-digest-0.9) - ("rust-md5-asm" ,rust-md5-asm-0.4) - ("rust-opaque-debug" ,rust-opaque-debug-0.3)) - #:cargo-development-inputs - (("rust-digest" ,rust-digest-0.9) - ("rust-hex-literal" ,rust-hex-literal-0.2)))))) - -(define-public rust-md-5-0.8 - (package - (inherit rust-md-5-0.9) - (name "rust-md-5") - (version "0.8.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "md-5" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1j5rfxy2p76xf5f1lgaw85xla0b1bbv2lknvdhv1j0ibmzfg72m1")))) - (arguments - `(#:tests? #f ; cannot find macro `proc_macro_call` in this scope - #:cargo-inputs - (("rust-block-buffer" ,rust-block-buffer-0.7) - ("rust-digest" ,rust-digest-0.8) - ("rust-md5-asm" ,rust-md5-asm-0.4) - ("rust-opaque-debug" ,rust-opaque-debug-0.2)) - #:cargo-development-inputs - (("rust-digest" ,rust-digest-0.8) - ("rust-hex-literal" ,rust-hex-literal-0.1)))))) - (define-public rust-md5-0.7 (package (name "rust-md5") -- cgit v1.2.3 From 2e9542d58792100a564f06354e8b1e6adc20f07c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 19:49:58 +0200 Subject: gnu: rust-md5: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-md5-0.7, rust-md5-0.6, rust-md5-0.3, rust-md5-asm-0.5, rust-md5-asm-0.4): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: Ide9a22a64358fc6ada172fa37e0df28c34b0b1e6 --- gnu/packages/crates-crypto.scm | 88 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 88 ------------------------------------------ gnu/packages/syndication.scm | 1 + 3 files changed, 89 insertions(+), 88 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index a08f8bea74..9aed8fe97a 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -2634,6 +2634,94 @@ Hash-based Message Authentication Code algorithm} for SHA1.") (("rust-digest" ,rust-digest-0.8) ("rust-hex-literal" ,rust-hex-literal-0.1)))))) +(define-public rust-md5-0.7 + (package + (name "rust-md5") + (version "0.7.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "md5" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0wcps37hrhz59fkhf8di1ppdnqld6l1w5sdy7jp7p51z0i4c8329")))) + (build-system cargo-build-system) + (arguments `(#:skip-build? #t)) + (home-page "https://github.com/stainless-steel/md5") + (synopsis "MD5 hash function in Rust") + (description "The package provides the MD5 hash function.") + (license (list license:asl2.0 + license:expat)))) + +(define-public rust-md5-0.6 + (package + (inherit rust-md5-0.7) + (name "rust-md5") + (version "0.6.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "md5" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "17b2xm4h4cvxsdjsf3kdrzqv2za60kak961xzi5kmw6g6djcssvy")))))) + +(define-public rust-md5-0.3 + (package + (inherit rust-md5-0.6) + (name "rust-md5") + (version "0.3.8") + (source + (origin + (method url-fetch) + (uri (crate-uri "md5" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0j2s8aqdkhwhy7awga2bmv5n8qq8bgy8672iha9f3y871dm6vibr")))))) + +(define-public rust-md5-asm-0.5 + (package + (name "rust-md5-asm") + (version "0.5.0") + (source (origin + (method url-fetch) + (uri (crate-uri "md5-asm" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1ixmkg8j7sqy9zln6pz9xi2dl2d9zpm8pz6p49za47n1bvradfbk")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-cc" ,rust-cc-1)))) + (home-page "https://github.com/RustCrypto/asm-hashes") + (synopsis "Assembly implementation of MD5 compression function") + (description + "This package contains an assembly implementation of the MD5 +compression function.") + (supported-systems '("x86_64-linux" "i686-linux")) + (license license:expat))) + +(define-public rust-md5-asm-0.4 + (package + (inherit rust-md5-asm-0.5) + (name "rust-md5-asm") + (version "0.4.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "md5-asm" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0gpk5647js1k084jc7pg2gji0cvl6hjkkbfia6lnpk8y4shyairv")))) + (arguments + `(#:cargo-inputs + (("rust-cc" ,rust-cc-1)))))) + (define-public rust-nettle-7 (package (name "rust-nettle") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 9195cee498..04dda96f9e 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -37522,94 +37522,6 @@ async code in Rust.") "This package provides MaybeUninit for friends of backwards compatibility.") (license (list license:asl2.0 license:expat)))) -(define-public rust-md5-0.7 - (package - (name "rust-md5") - (version "0.7.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "md5" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0wcps37hrhz59fkhf8di1ppdnqld6l1w5sdy7jp7p51z0i4c8329")))) - (build-system cargo-build-system) - (arguments `(#:skip-build? #t)) - (home-page "https://github.com/stainless-steel/md5") - (synopsis "MD5 hash function in Rust") - (description "The package provides the MD5 hash function.") - (license (list license:asl2.0 - license:expat)))) - -(define-public rust-md5-0.6 - (package - (inherit rust-md5-0.7) - (name "rust-md5") - (version "0.6.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "md5" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "17b2xm4h4cvxsdjsf3kdrzqv2za60kak961xzi5kmw6g6djcssvy")))))) - -(define-public rust-md5-0.3 - (package - (inherit rust-md5-0.6) - (name "rust-md5") - (version "0.3.8") - (source - (origin - (method url-fetch) - (uri (crate-uri "md5" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0j2s8aqdkhwhy7awga2bmv5n8qq8bgy8672iha9f3y871dm6vibr")))))) - -(define-public rust-md5-asm-0.5 - (package - (name "rust-md5-asm") - (version "0.5.0") - (source (origin - (method url-fetch) - (uri (crate-uri "md5-asm" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1ixmkg8j7sqy9zln6pz9xi2dl2d9zpm8pz6p49za47n1bvradfbk")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs (("rust-cc" ,rust-cc-1)))) - (home-page "https://github.com/RustCrypto/asm-hashes") - (synopsis "Assembly implementation of MD5 compression function") - (description - "This package contains an assembly implementation of the MD5 -compression function.") - (supported-systems '("x86_64-linux" "i686-linux")) - (license license:expat))) - -(define-public rust-md5-asm-0.4 - (package - (inherit rust-md5-asm-0.5) - (name "rust-md5-asm") - (version "0.4.3") - (source - (origin - (method url-fetch) - (uri (crate-uri "md5-asm" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0gpk5647js1k084jc7pg2gji0cvl6hjkkbfia6lnpk8y4shyairv")))) - (arguments - `(#:cargo-inputs - (("rust-cc" ,rust-cc-1)))))) - (define-public rust-measureme-0.7 (package (name "rust-measureme") diff --git a/gnu/packages/syndication.scm b/gnu/packages/syndication.scm index 98fcd610b8..7d9a27bbc3 100644 --- a/gnu/packages/syndication.scm +++ b/gnu/packages/syndication.scm @@ -41,6 +41,7 @@ #:use-module (gnu packages build-tools) #:use-module (gnu packages check) #:use-module (gnu packages cmake) + #:use-module (gnu packages crates-crypto) #:use-module (gnu packages crates-io) #:use-module (gnu packages curl) #:use-module (gnu packages freedesktop) -- cgit v1.2.3 From 4ac7c8e23b4927242a4d35627b1fd3eddc96ec6b Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 19:53:50 +0200 Subject: gnu: rust-kuznyechik-0.8: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-kuznyechik-0.8): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I479fefcb2f0b85acd697de4d467d918b9237d25f --- gnu/packages/crates-crypto.scm | 22 ++++++++++++++++++++++ gnu/packages/crates-io.scm | 22 ---------------------- 2 files changed, 22 insertions(+), 22 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 9aed8fe97a..e872a78a1c 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -2561,6 +2561,28 @@ Hash-based Message Authentication Code}.") Hash-based Message Authentication Code algorithm} for SHA1.") (license license:bsd-3))) +(define-public rust-kuznyechik-0.8 + (package + (name "rust-kuznyechik") + (version "0.8.1") + (source (origin + (method url-fetch) + (uri (crate-uri "kuznyechik" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0av39qh65xchvpfjkcwh861h9bzmmrgcrzl5h0sa5b692xabd0w4")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-cipher" ,rust-cipher-0.4)) + #:cargo-development-inputs + (("rust-cipher" ,rust-cipher-0.4) + ("rust-hex-literal" ,rust-hex-literal-0.3)))) + (home-page "https://github.com/RustCrypto/block-ciphers") + (synopsis "Kuznyechik (GOST R 34.12-2015) block cipher") + (description "Kuznyechik (GOST R 34.12-2015) block cipher") + (license (list license:expat license:asl2.0)))) + (define-public rust-md-5-0.10 (package (name "rust-md-5") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 04dda96f9e..26ea9d79ec 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -29410,28 +29410,6 @@ characters in HTML, decoding and unescaping HTML entities as well.") and traversing, manipulating, and querying the document tree.") (license license:expat))) -(define-public rust-kuznyechik-0.8 - (package - (name "rust-kuznyechik") - (version "0.8.1") - (source (origin - (method url-fetch) - (uri (crate-uri "kuznyechik" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0av39qh65xchvpfjkcwh861h9bzmmrgcrzl5h0sa5b692xabd0w4")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-cipher" ,rust-cipher-0.4)) - #:cargo-development-inputs - (("rust-cipher" ,rust-cipher-0.4) - ("rust-hex-literal" ,rust-hex-literal-0.3)))) - (home-page "https://github.com/RustCrypto/block-ciphers") - (synopsis "Kuznyechik (GOST R 34.12-2015) block cipher") - (description "Kuznyechik (GOST R 34.12-2015) block cipher") - (license (list license:expat license:asl2.0)))) - (define-public rust-http-1 (package (name "rust-http") -- cgit v1.2.3 From 4a7fc86242c56ff39a65e8562c2b2c082b7d8d1b Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 19:58:17 +0200 Subject: gnu: rust-totp-lite: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-totp-lite-2, rust-totp-lite-1): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I2b99827d97c4f48f304b6bcc844d66b471798613 --- gnu/packages/crates-crypto.scm | 52 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 52 ------------------------------------------ 2 files changed, 52 insertions(+), 52 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index e872a78a1c..f0e65d738f 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -5647,6 +5647,58 @@ cryptographic implementations.") "This package provides the Tiger cryptographic hash function.") (license (list license:expat license:asl2.0)))) +(define-public rust-totp-lite-2 + (package + (name "rust-totp-lite") + (version "2.0.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "totp-lite" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1hvnpv7nl79jp96w6g2j7l6xskl5qlx3h0qqf9zry68pvcs33r7q")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-digest" ,rust-digest-0.10) + ("rust-hmac" ,rust-hmac-0.12) + ("rust-sha1" ,rust-sha1-0.10) + ("rust-sha2" ,rust-sha2-0.10)) + #:cargo-development-inputs + (("rust-koibumi-base32" ,rust-koibumi-base32-0.0.2) + ("rust-version-sync" ,rust-version-sync-0.9)))) + (home-page "https://github.com/fosskers/totp-lite") + (synopsis "Simple, correct TOTP library") + (description "Rust-totp-lite provides a simple, correct time-based +One-Time Password library.") + (license license:expat))) + +(define-public rust-totp-lite-1 + (package + (name "rust-totp-lite") + (version "1.0.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "totp-lite" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "12ql4pi9q7sf5651588wia2l5h4mil3kv9jrrkib5gvlpvl0k05i")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-digest" ,rust-digest-0.9) + ("rust-hmac" ,rust-hmac-0.11) + ("rust-sha-1" ,rust-sha-1-0.9) + ("rust-sha2" ,rust-sha2-0.9)))) + (home-page "https://github.com/fosskers/totp-lite") + (synopsis "Simple, correct TOTP library") + (description "Rust-totp-lite provides a simple, correct time-based +One-Time Password library.") + (license license:expat))) + (define-public rust-twofish-0.7 (package (name "rust-twofish") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 26ea9d79ec..f98d865e78 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -73820,58 +73820,6 @@ performance, interoperability, and flexibility.") Rust.") (license (list license:expat license:asl2.0)))) -(define-public rust-totp-lite-2 - (package - (name "rust-totp-lite") - (version "2.0.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "totp-lite" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1hvnpv7nl79jp96w6g2j7l6xskl5qlx3h0qqf9zry68pvcs33r7q")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-digest" ,rust-digest-0.10) - ("rust-hmac" ,rust-hmac-0.12) - ("rust-sha1" ,rust-sha1-0.10) - ("rust-sha2" ,rust-sha2-0.10)) - #:cargo-development-inputs - (("rust-koibumi-base32" ,rust-koibumi-base32-0.0.2) - ("rust-version-sync" ,rust-version-sync-0.9)))) - (home-page "https://github.com/fosskers/totp-lite") - (synopsis "Simple, correct TOTP library") - (description "Rust-totp-lite provides a simple, correct time-based -One-Time Password library.") - (license license:expat))) - -(define-public rust-totp-lite-1 - (package - (name "rust-totp-lite") - (version "1.0.3") - (source - (origin - (method url-fetch) - (uri (crate-uri "totp-lite" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "12ql4pi9q7sf5651588wia2l5h4mil3kv9jrrkib5gvlpvl0k05i")))) - (build-system cargo-build-system) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-digest" ,rust-digest-0.9) - ("rust-hmac" ,rust-hmac-0.11) - ("rust-sha-1" ,rust-sha-1-0.9) - ("rust-sha2" ,rust-sha2-0.9)))) - (home-page "https://github.com/fosskers/totp-lite") - (synopsis "Simple, correct TOTP library") - (description "Rust-totp-lite provides a simple, correct time-based -One-Time Password library.") - (license license:expat))) - (define-public rust-tower-0.4 (package (name "rust-tower") -- cgit v1.2.3 From 3745fb9b88584bd8f5740da9a312413b43d03066 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 20:00:06 +0200 Subject: gnu: rust-secp256k1: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-secp256k1-0.21, rust-secp256k1-sys-0.4): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I5266ea81f19afb3a35a1089415109bf48b51276d --- gnu/packages/crates-crypto.scm | 56 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 56 ------------------------------------------ 2 files changed, 56 insertions(+), 56 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index f0e65d738f..d1d63d5bed 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -4811,6 +4811,62 @@ well as the Elliptic-Curve-Point-to-Octet-String encoding.") #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.3) ("rust-tempfile" ,rust-tempfile-3)))))) +(define-public rust-secp256k1-0.21 + (package + (name "rust-secp256k1") + (version "0.21.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "secp256k1" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "09gia5hjf1hb9jgac9nzq0s0ijbsdjfflh40xw8z08avgl0q6y5b")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-bitcoin-hashes" ,rust-bitcoin-hashes-0.10) + ("rust-rand" ,rust-rand-0.6) + ("rust-secp256k1-sys" ,rust-secp256k1-sys-0.4) + ("rust-serde" ,rust-serde-1)) + #:cargo-development-inputs + (("rust-bitcoin-hashes" ,rust-bitcoin-hashes-0.10) + ("rust-rand" ,rust-rand-0.6) + ("rust-rand-core" ,rust-rand-core-0.4) + ("rust-serde-test" ,rust-serde-test-1) + ("rust-wasm-bindgen-test" ,rust-wasm-bindgen-test-0.3)))) + (home-page "https://github.com/rust-bitcoin/rust-secp256k1/") + (synopsis + "Rust wrapper library for Pieter Wuille's @code{libsecp256k1}") + (description + "This package is a Rust wrapper library for Pieter Wuille's +@code{libsecp256k1}. It implements ECDSA and BIP 340 signatures for the +SECG elliptic curve group secp256k1 and related utilities.") + (license license:cc0))) + +(define-public rust-secp256k1-sys-0.4 + (package + (name "rust-secp256k1-sys") + (version "0.4.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "secp256k1-sys" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0dk0as7qdlvg5vkcsihndzg1jgqb9amhwmz3xiip94fy7ibs4zcm")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-cc" ,rust-cc-1)) + #:cargo-development-inputs + (("rust-libc" ,rust-libc-0.2)))) + (home-page "https://github.com/rust-bitcoin/rust-secp256k1/") + (synopsis "FFI for Pieter Wuille's @code{libsecp256k1} library") + (description "This package is a Rust FFI for Pieter Wuille's +@code{libsecp256k1} library.") + (license license:cc0))) + (define-public rust-serdect-0.2 (package (name "rust-serdect") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index f98d865e78..29e20d5967 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -59691,62 +59691,6 @@ statistical guarantees.") "This package provides a library for section-style testing.") (license license:expat))) -(define-public rust-secp256k1-0.21 - (package - (name "rust-secp256k1") - (version "0.21.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "secp256k1" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "09gia5hjf1hb9jgac9nzq0s0ijbsdjfflh40xw8z08avgl0q6y5b")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-bitcoin-hashes" ,rust-bitcoin-hashes-0.10) - ("rust-rand" ,rust-rand-0.6) - ("rust-secp256k1-sys" ,rust-secp256k1-sys-0.4) - ("rust-serde" ,rust-serde-1)) - #:cargo-development-inputs - (("rust-bitcoin-hashes" ,rust-bitcoin-hashes-0.10) - ("rust-rand" ,rust-rand-0.6) - ("rust-rand-core" ,rust-rand-core-0.4) - ("rust-serde-test" ,rust-serde-test-1) - ("rust-wasm-bindgen-test" ,rust-wasm-bindgen-test-0.3)))) - (home-page "https://github.com/rust-bitcoin/rust-secp256k1/") - (synopsis - "Rust wrapper library for Pieter Wuille's @code{libsecp256k1}") - (description - "This package is a Rust wrapper library for Pieter Wuille's -@code{libsecp256k1}. It implements ECDSA and BIP 340 signatures for the -SECG elliptic curve group secp256k1 and related utilities.") - (license license:cc0))) - -(define-public rust-secp256k1-sys-0.4 - (package - (name "rust-secp256k1-sys") - (version "0.4.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "secp256k1-sys" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0dk0as7qdlvg5vkcsihndzg1jgqb9amhwmz3xiip94fy7ibs4zcm")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-cc" ,rust-cc-1)) - #:cargo-development-inputs - (("rust-libc" ,rust-libc-0.2)))) - (home-page "https://github.com/rust-bitcoin/rust-secp256k1/") - (synopsis "FFI for Pieter Wuille's @code{libsecp256k1} library") - (description "This package is a Rust FFI for Pieter Wuille's -@code{libsecp256k1} library.") - (license license:cc0))) - (define-public rust-selectors-0.24 (package (name "rust-selectors") -- cgit v1.2.3 From 92d9b2e0961e7edc7a8936c1a1d0af62719018e7 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 20:04:09 +0200 Subject: gnu: rust-rust-argon2: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-rust-argon2-0.8, rust-rust-argon2-0.7): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I696481f1c496d6654e7c3d3a6f1b4e580edb6b64 --- gnu/packages/crates-crypto.scm | 48 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 48 ------------------------------------------ 2 files changed, 48 insertions(+), 48 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index d1d63d5bed..91f3ae2910 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -4623,6 +4623,54 @@ Digital Signature Algorithm} (ECDSA).") ("rust-sha2" ,rust-sha2-0.9) ("rust-sha3" ,rust-sha3-0.9)))))) +(define-public rust-rust-argon2-0.8 + (package + (name "rust-rust-argon2") + (version "0.8.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "rust-argon2" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1yvqkv04fqk3cbvyasibr4bqbxa6mij8jdvibakwlcsbjh6q462b")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-base64" ,rust-base64-0.13) + ("rust-blake2b-simd" ,rust-blake2b-simd-0.5) + ("rust-constant-time-eq" ,rust-constant-time-eq-0.1) + ("rust-crossbeam-utils" ,rust-crossbeam-utils-0.8) + ("rust-serde" ,rust-serde-1)))) + (home-page "https://github.com/sru-systems/rust-argon2") + (synopsis "Argon2 password hashing function in Rust") + (description + "This package provides a Rust implementation of the Argon2 password +hashing function.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-rust-argon2-0.7 + (package + (inherit rust-rust-argon2-0.8) + (name "rust-rust-argon2") + (version "0.7.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "rust-argon2" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "05xh5wfxgzq3b6jys8r34f3hmqqfs8ylvf934n9z87wfv95szj1b")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-constant-time-eq" ,rust-constant-time-eq-0.1) + ("rust-base64" ,rust-base64-0.11) + ("rust-blake2b-simd" ,rust-blake2b-simd-0.5) + ("rust-crossbeam-utils" ,rust-crossbeam-utils-0.7)))))) + (define-public rust-salsa20-0.10 (package (name "rust-salsa20") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 29e20d5967..cc0974aeda 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -56894,54 +56894,6 @@ please consider using @code{async-std} or @code{tokio}.") reading and writing BAM files.") (license license:expat))) -(define-public rust-rust-argon2-0.8 - (package - (name "rust-rust-argon2") - (version "0.8.3") - (source - (origin - (method url-fetch) - (uri (crate-uri "rust-argon2" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1yvqkv04fqk3cbvyasibr4bqbxa6mij8jdvibakwlcsbjh6q462b")))) - (build-system cargo-build-system) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-base64" ,rust-base64-0.13) - ("rust-blake2b-simd" ,rust-blake2b-simd-0.5) - ("rust-constant-time-eq" ,rust-constant-time-eq-0.1) - ("rust-crossbeam-utils" ,rust-crossbeam-utils-0.8) - ("rust-serde" ,rust-serde-1)))) - (home-page "https://github.com/sru-systems/rust-argon2") - (synopsis "Argon2 password hashing function in Rust") - (description - "This package provides a Rust implementation of the Argon2 password -hashing function.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-rust-argon2-0.7 - (package - (inherit rust-rust-argon2-0.8) - (name "rust-rust-argon2") - (version "0.7.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "rust-argon2" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "05xh5wfxgzq3b6jys8r34f3hmqqfs8ylvf934n9z87wfv95szj1b")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-constant-time-eq" ,rust-constant-time-eq-0.1) - ("rust-base64" ,rust-base64-0.11) - ("rust-blake2b-simd" ,rust-blake2b-simd-0.5) - ("rust-crossbeam-utils" ,rust-crossbeam-utils-0.7)))))) - (define-public rust-rust-base58-0.0 (package (name "rust-rust-base58") -- cgit v1.2.3 From 5115f8e365ab6bf13c4865f23ed53caf729af2ba Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 20:13:13 +0200 Subject: gnu: rust-x25519-dalek: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-x25519-dalek-1, rust-x25519-dalek-ng-1): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: Ic8d845e4a2b14e9478be86c20670348d1001181d --- gnu/packages/crates-crypto.scm | 60 ++++++++++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 60 ------------------------------------------ 2 files changed, 60 insertions(+), 60 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 91f3ae2910..4bff4f9dfe 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -5886,3 +5886,63 @@ One-Time Password library.") #:cargo-inputs (("rust-generic-array" ,rust-generic-array-0.12) ("rust-subtle" ,rust-subtle-2)))))) + +(define-public rust-x25519-dalek-1 + (package + (name "rust-x25519-dalek") + (version "1.2.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "x25519-dalek" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0xz0m1pczss9r25d1r52420dl2picdypbcn5ycmlwssp9awvd4i3")) + (modules '((guix build utils))) + (snippet + '(begin + (substitute* "Cargo.toml" + (("version = \"=1.3\"") "version = \"^1.3\"")))))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-curve25519-dalek" ,rust-curve25519-dalek-3) + ("rust-rand-core" ,rust-rand-core-0.5) + ("rust-serde" ,rust-serde-1) + ("rust-zeroize" ,rust-zeroize-1)))) + (home-page "https://dalek.rs/") + (synopsis "X25519 elliptic curve Diffie-Hellman key exchange") + (description + "This crate provides a pure-Rust implementation of x25519 elliptic curve +Diffie-Hellman key exchange, with curve operations provided by +@code{curve25519-dalek}.") + (license license:bsd-3))) + +(define-public rust-x25519-dalek-ng-1 + (package + (name "rust-x25519-dalek-ng") + (version "1.1.1") + (source (origin + (method url-fetch) + (uri (crate-uri "x25519-dalek-ng" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "09n35vgrryjy0m6ascfaykc8s0i517rzgj64qdq2jrlri7g78w5z")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-curve25519-dalek-ng" ,rust-curve25519-dalek-ng-4) + ("rust-rand" ,rust-rand-0.8) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-serde" ,rust-serde-1) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-bincode" ,rust-bincode-1) + ("rust-criterion" ,rust-criterion-0.3)))) + (home-page "https://dalek.rs/") + (synopsis "Fork of x25519-dalek") + (description "This package provides a fork x25519-dalek, with an updated +rand_core.") + (license license:bsd-3))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 506f1f1d75..9c4ec7640b 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -79135,66 +79135,6 @@ non-cryptographic hashing algorithm and random number generator.") "This package provides a collection of utility functions.") (license license:expat))) -(define-public rust-x25519-dalek-1 - (package - (name "rust-x25519-dalek") - (version "1.2.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "x25519-dalek" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0xz0m1pczss9r25d1r52420dl2picdypbcn5ycmlwssp9awvd4i3")) - (modules '((guix build utils))) - (snippet - '(begin - (substitute* "Cargo.toml" - (("version = \"=1.3\"") "version = \"^1.3\"")))))) - (build-system cargo-build-system) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-curve25519-dalek" ,rust-curve25519-dalek-3) - ("rust-rand-core" ,rust-rand-core-0.5) - ("rust-serde" ,rust-serde-1) - ("rust-zeroize" ,rust-zeroize-1)))) - (home-page "https://dalek.rs/") - (synopsis "X25519 elliptic curve Diffie-Hellman key exchange") - (description - "This crate provides a pure-Rust implementation of x25519 elliptic curve -Diffie-Hellman key exchange, with curve operations provided by -@code{curve25519-dalek}.") - (license license:bsd-3))) - -(define-public rust-x25519-dalek-ng-1 - (package - (name "rust-x25519-dalek-ng") - (version "1.1.1") - (source (origin - (method url-fetch) - (uri (crate-uri "x25519-dalek-ng" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "09n35vgrryjy0m6ascfaykc8s0i517rzgj64qdq2jrlri7g78w5z")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-curve25519-dalek-ng" ,rust-curve25519-dalek-ng-4) - ("rust-rand" ,rust-rand-0.8) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-serde" ,rust-serde-1) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-bincode" ,rust-bincode-1) - ("rust-criterion" ,rust-criterion-0.3)))) - (home-page "https://dalek.rs/") - (synopsis "Fork of x25519-dalek") - (description "This package provides a fork x25519-dalek, with an updated -rand_core.") - (license license:bsd-3))) - (define-public rust-x509-parser-0.15 (package (name "rust-x509-parser") -- cgit v1.2.3 From f043dad8526ad5c374785eb865753842a87d6af9 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 22 Jan 2024 08:28:32 +0200 Subject: gnu: rust-der: Move to (gnu packages crates-tls). * gnu/packages/crates-io.scm (rust-der-0.7, rust-der-0.6, rust-der-0.5, rust-der-0.4, rust-der-derive-0.7, rust-der-derive-0.6, rust-der-derive-0.5, rust-der-derive-0.4, rust-der-oid-macro-0.5, rust-der-parser-8, rust-der-parser-7, rust-der-parser-6): Move from here ... * gnu/packages/crates-tls.scm: ... to here. Change-Id: If4f61227b24a94a85c729c4c665c575c36ba710e --- gnu/packages/crates-crypto.scm | 1 + gnu/packages/crates-io.scm | 293 ----------------------------------------- gnu/packages/crates-tls.scm | 293 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 294 insertions(+), 293 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 4bff4f9dfe..b750a97817 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -46,6 +46,7 @@ #:use-module (gnu packages compression) #:use-module (gnu packages crates-apple) #:use-module (gnu packages crates-io) + #:use-module (gnu packages crates-tls) #:use-module (gnu packages crates-windows) #:use-module (gnu packages crypto) #:use-module (gnu packages golang) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 370b87ea9e..9cc04ab8f8 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -18125,299 +18125,6 @@ strings.") (description "Demo of proc-macro-hack.") (license (list license:expat license:asl2.0)))) -(define-public rust-der-0.7 - (package - (name "rust-der") - (version "0.7.5") - (source (origin - (method url-fetch) - (uri (crate-uri "der" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "06f2clallhpjc51s3dc7mpcw5ms3jak727qc5yrfg3ncrpzqvr85")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-arbitrary" ,rust-arbitrary-1) - ("rust-const-oid" ,rust-const-oid-0.9) - ("rust-der-derive" ,rust-der-derive-0.7) - ("rust-flagset" ,rust-flagset-0.4) - ("rust-pem-rfc7468" ,rust-pem-rfc7468-0.7) - ("rust-time" ,rust-time-0.3) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.4) - ("rust-proptest" ,rust-proptest-1)))) - (home-page "https://github.com/RustCrypto/formats/tree/master/der") - (synopsis - "Implementation of the Distinguished Encoding Rules (DER)") - (description - "This package provides a pure Rust embedded-friendly implementation of -the Distinguished Encoding Rules (DER) for Abstract Syntax Notation One -(ASN.1) as described in ITU X.690 with full support for heapless no_std -targets") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-der-0.6 - (package - (inherit rust-der-0.7) - (name "rust-der") - (version "0.6.1") - (source (origin - (method url-fetch) - (uri (crate-uri "der" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1pnl3y52m1s6srxpfrfbazf6qilzq8fgksk5dv79nxaybjk6g97i")))) - (arguments - `(#:cargo-inputs - (("rust-const-oid" ,rust-const-oid-0.9) - ("rust-der-derive" ,rust-der-derive-0.6) - ("rust-flagset" ,rust-flagset-0.4) - ("rust-pem-rfc7468" ,rust-pem-rfc7468-0.6) - ("rust-time" ,rust-time-0.3) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-proptest" ,rust-proptest-1)))))) - -(define-public rust-der-0.5 - (package - (inherit rust-der-0.7) - (name "rust-der") - (version "0.5.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "der" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0p3h7nszn7jhjacpmkjrcyx5g8p3ma1qhxfy3397m7l3fdfq26b9")))) - (arguments - `(#:cargo-inputs (("rust-const-oid" ,rust-const-oid-0.7) - ("rust-crypto-bigint" ,rust-crypto-bigint-0.3) - ("rust-der-derive" ,rust-der-derive-0.5) - ("rust-pem-rfc7468" ,rust-pem-rfc7468-0.3) - ("rust-time" ,rust-time-0.3)) - #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-proptest" ,rust-proptest-1)))))) - -(define-public rust-der-0.4 - (package - (inherit rust-der-0.7) - (name "rust-der") - (version "0.4.5") - (source - (origin - (method url-fetch) - (uri (crate-uri "der" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1x4k0jln8va1657cghl40l6p7hyvr1ixz71v9cd6imwmgp51rdvr")))) - (arguments - `(#:skip-build? - #t ; FIXME - #:cargo-inputs - (("rust-const-oid" ,rust-const-oid-0.6) - ("rust-crypto-bigint" ,rust-crypto-bigint-0.2) - ("rust-der-derive" ,rust-der-derive-0.4)))))) - -(define-public rust-der-derive-0.7 - (package - (name "rust-der-derive") - (version "0.7.1") - (source (origin - (method url-fetch) - (uri (crate-uri "der_derive" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0cmyza28s52wfb67ymydjmvsc4m3sfp98dv9vprx6ibmdfx94iqi")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-proc-macro-error" ,rust-proc-macro-error-1) - ("rust-proc-macro2" ,rust-proc-macro2-1) - ("rust-quote" ,rust-quote-1) - ("rust-syn" ,rust-syn-2)))) - (home-page "https://github.com/RustCrypto/formats/tree/master/der/derive") - (synopsis - "Custom derive support for the `der` crate's `Choice` and `Sequence` traits") - (description - "This package provides a custom derive support for the `der` crate's -`Choice` and `Sequence` traits.") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-der-derive-0.6 - (package - (inherit rust-der-derive-0.7) - (name "rust-der-derive") - (version "0.6.1") - (source (origin - (method url-fetch) - (uri (crate-uri "der_derive" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1fg3dv4cjjwd4a6dh62ch2gb477s1pvwh5s8wbg567rsbgdivxwf")))) - (arguments - `(#:cargo-inputs - (("rust-proc-macro-error" ,rust-proc-macro-error-1) - ("rust-proc-macro2" ,rust-proc-macro2-1) - ("rust-quote" ,rust-quote-1) - ("rust-syn" ,rust-syn-1)))))) - -(define-public rust-der-derive-0.5 - (package - (inherit rust-der-derive-0.7) - (name "rust-der-derive") - (version "0.5.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "der_derive" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1zw4p6yqklv4i76ms2a0gcmna648337r379d5ljgpbir5cyqylrs")))) - (arguments - `(#:cargo-inputs (("rust-proc-macro-error" ,rust-proc-macro-error-1) - ("rust-proc-macro2" ,rust-proc-macro2-1) - ("rust-quote" ,rust-quote-1) - ("rust-syn" ,rust-syn-1)))))) - -(define-public rust-der-derive-0.4 - (package - (inherit rust-der-derive-0.7) - (name "rust-der-derive") - (version "0.4.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "der_derive" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0snv85yfy9iln05qsgbhwr1159gd0jfrgzj5dkrnricdc0y3pvca")))) - (arguments - `(#:skip-build? - #t ; FIXME - #:cargo-inputs - (("rust-proc-macro2" ,rust-proc-macro2-1) - ("rust-quote" ,rust-quote-1) - ("rust-syn" ,rust-syn-1) - ("rust-synstructure" ,rust-synstructure-0.12)))))) - -(define-public rust-der-oid-macro-0.5 - (package - (name "rust-der-oid-macro") - (version "0.5.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "der-oid-macro" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0dply8g2p72hfhyymkrkr7fjqy844drj19xbrfkqrp55nq4z4fn7")))) - (build-system cargo-build-system) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-num-bigint" ,rust-num-bigint-0.4) - ("rust-num-traits" ,rust-num-traits-0.2) - ("rust-syn" ,rust-syn-1)))) - (home-page "https://github.com/rusticata/der-parser") - (synopsis "Macro to encode DER oids at compile time") - (description - "This crate provides a macro to encode DER oids at compile time.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-der-parser-8 - (package - (name "rust-der-parser") - (version "8.2.0") - (source (origin - (method url-fetch) - (uri (crate-uri "der-parser" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "07mnz9y395zyxwj7nam2dbzkqdngfraxp2i7y2714dxmpbxpdmnv")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-asn1-rs" ,rust-asn1-rs-0.5) - ("rust-cookie-factory" ,rust-cookie-factory-0.3) - ("rust-displaydoc" ,rust-displaydoc-0.2) - ("rust-nom" ,rust-nom-7) - ("rust-num-bigint" ,rust-num-bigint-0.4) - ("rust-num-traits" ,rust-num-traits-0.2) - ("rust-rusticata-macros" ,rust-rusticata-macros-4)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-pretty-assertions" ,rust-pretty-assertions-1) - ("rust-test-case" ,rust-test-case-3)))) - (home-page "https://github.com/rusticata/der-parser") - (synopsis "BER/DER parser written in pure Rust") - (description "This crate provides a parser for Basic Encoding Rules (BER -[X.690]) and Distinguished Encoding Rules(DER [X.690]), implemented with the -@code{nom} parser combinator framework.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-der-parser-7 - (package - (inherit rust-der-parser-8) - (name "rust-der-parser") - (version "7.0.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "der-parser" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "10kfa2gzl3x20mwgrd43cyi79xgkqxyzcyrh0xylv4apa33qlfgy")))) - (arguments - `(#:cargo-inputs (("rust-asn1-rs" ,rust-asn1-rs-0.3) - ("rust-cookie-factory" ,rust-cookie-factory-0.3) - ("rust-displaydoc" ,rust-displaydoc-0.2) - ("rust-nom" ,rust-nom-7) - ("rust-num-bigint" ,rust-num-bigint-0.4) - ("rust-num-traits" ,rust-num-traits-0.2) - ("rust-rusticata-macros" ,rust-rusticata-macros-4)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-pretty-assertions" ,rust-pretty-assertions-1) - ("rust-test-case" ,rust-test-case-1)))))) - -(define-public rust-der-parser-6 - (package - (inherit rust-der-parser-8) - (name "rust-der-parser") - (version "6.0.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "der-parser" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0gn465dncghmj52k8dlkl71wkmlz5zc6jfjgj9ra2knf22ryy1wq")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-bitvec" ,rust-bitvec-0.22) - ("rust-cookie-factory" ,rust-cookie-factory-0.3) - ("rust-der-oid-macro" ,rust-der-oid-macro-0.5) - ("rust-nom" ,rust-nom-7) - ("rust-num-bigint" ,rust-num-bigint-0.4) - ("rust-num-traits" ,rust-num-traits-0.2) - ("rust-rusticata-macros" ,rust-rusticata-macros-4)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-pretty-assertions" ,rust-pretty-assertions-0.7) - ("rust-test-case" ,rust-test-case-1)))))) - (define-public rust-deranged-0.3 (package (name "rust-deranged") diff --git a/gnu/packages/crates-tls.scm b/gnu/packages/crates-tls.scm index 509c407dd8..626b12975b 100644 --- a/gnu/packages/crates-tls.scm +++ b/gnu/packages/crates-tls.scm @@ -94,6 +94,299 @@ "This package provides asynchronous TLS/SSL streams using Rustls.") (license (list license:expat license:asl2.0)))) +(define-public rust-der-0.7 + (package + (name "rust-der") + (version "0.7.5") + (source (origin + (method url-fetch) + (uri (crate-uri "der" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "06f2clallhpjc51s3dc7mpcw5ms3jak727qc5yrfg3ncrpzqvr85")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-arbitrary" ,rust-arbitrary-1) + ("rust-const-oid" ,rust-const-oid-0.9) + ("rust-der-derive" ,rust-der-derive-0.7) + ("rust-flagset" ,rust-flagset-0.4) + ("rust-pem-rfc7468" ,rust-pem-rfc7468-0.7) + ("rust-time" ,rust-time-0.3) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.4) + ("rust-proptest" ,rust-proptest-1)))) + (home-page "https://github.com/RustCrypto/formats/tree/master/der") + (synopsis + "Implementation of the Distinguished Encoding Rules (DER)") + (description + "This package provides a pure Rust embedded-friendly implementation of +the Distinguished Encoding Rules (DER) for Abstract Syntax Notation One +(ASN.1) as described in ITU X.690 with full support for heapless no_std +targets") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-der-0.6 + (package + (inherit rust-der-0.7) + (name "rust-der") + (version "0.6.1") + (source (origin + (method url-fetch) + (uri (crate-uri "der" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1pnl3y52m1s6srxpfrfbazf6qilzq8fgksk5dv79nxaybjk6g97i")))) + (arguments + `(#:cargo-inputs + (("rust-const-oid" ,rust-const-oid-0.9) + ("rust-der-derive" ,rust-der-derive-0.6) + ("rust-flagset" ,rust-flagset-0.4) + ("rust-pem-rfc7468" ,rust-pem-rfc7468-0.6) + ("rust-time" ,rust-time-0.3) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-proptest" ,rust-proptest-1)))))) + +(define-public rust-der-0.5 + (package + (inherit rust-der-0.7) + (name "rust-der") + (version "0.5.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "der" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0p3h7nszn7jhjacpmkjrcyx5g8p3ma1qhxfy3397m7l3fdfq26b9")))) + (arguments + `(#:cargo-inputs (("rust-const-oid" ,rust-const-oid-0.7) + ("rust-crypto-bigint" ,rust-crypto-bigint-0.3) + ("rust-der-derive" ,rust-der-derive-0.5) + ("rust-pem-rfc7468" ,rust-pem-rfc7468-0.3) + ("rust-time" ,rust-time-0.3)) + #:cargo-development-inputs (("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-proptest" ,rust-proptest-1)))))) + +(define-public rust-der-0.4 + (package + (inherit rust-der-0.7) + (name "rust-der") + (version "0.4.5") + (source + (origin + (method url-fetch) + (uri (crate-uri "der" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1x4k0jln8va1657cghl40l6p7hyvr1ixz71v9cd6imwmgp51rdvr")))) + (arguments + `(#:skip-build? + #t ; FIXME + #:cargo-inputs + (("rust-const-oid" ,rust-const-oid-0.6) + ("rust-crypto-bigint" ,rust-crypto-bigint-0.2) + ("rust-der-derive" ,rust-der-derive-0.4)))))) + +(define-public rust-der-derive-0.7 + (package + (name "rust-der-derive") + (version "0.7.1") + (source (origin + (method url-fetch) + (uri (crate-uri "der_derive" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0cmyza28s52wfb67ymydjmvsc4m3sfp98dv9vprx6ibmdfx94iqi")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-proc-macro-error" ,rust-proc-macro-error-1) + ("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-2)))) + (home-page "https://github.com/RustCrypto/formats/tree/master/der/derive") + (synopsis + "Custom derive support for the `der` crate's `Choice` and `Sequence` traits") + (description + "This package provides a custom derive support for the `der` crate's +`Choice` and `Sequence` traits.") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-der-derive-0.6 + (package + (inherit rust-der-derive-0.7) + (name "rust-der-derive") + (version "0.6.1") + (source (origin + (method url-fetch) + (uri (crate-uri "der_derive" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1fg3dv4cjjwd4a6dh62ch2gb477s1pvwh5s8wbg567rsbgdivxwf")))) + (arguments + `(#:cargo-inputs + (("rust-proc-macro-error" ,rust-proc-macro-error-1) + ("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-1)))))) + +(define-public rust-der-derive-0.5 + (package + (inherit rust-der-derive-0.7) + (name "rust-der-derive") + (version "0.5.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "der_derive" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1zw4p6yqklv4i76ms2a0gcmna648337r379d5ljgpbir5cyqylrs")))) + (arguments + `(#:cargo-inputs (("rust-proc-macro-error" ,rust-proc-macro-error-1) + ("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-1)))))) + +(define-public rust-der-derive-0.4 + (package + (inherit rust-der-derive-0.7) + (name "rust-der-derive") + (version "0.4.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "der_derive" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0snv85yfy9iln05qsgbhwr1159gd0jfrgzj5dkrnricdc0y3pvca")))) + (arguments + `(#:skip-build? + #t ; FIXME + #:cargo-inputs + (("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-1) + ("rust-synstructure" ,rust-synstructure-0.12)))))) + +(define-public rust-der-oid-macro-0.5 + (package + (name "rust-der-oid-macro") + (version "0.5.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "der-oid-macro" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0dply8g2p72hfhyymkrkr7fjqy844drj19xbrfkqrp55nq4z4fn7")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-num-bigint" ,rust-num-bigint-0.4) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-syn" ,rust-syn-1)))) + (home-page "https://github.com/rusticata/der-parser") + (synopsis "Macro to encode DER oids at compile time") + (description + "This crate provides a macro to encode DER oids at compile time.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-der-parser-8 + (package + (name "rust-der-parser") + (version "8.2.0") + (source (origin + (method url-fetch) + (uri (crate-uri "der-parser" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "07mnz9y395zyxwj7nam2dbzkqdngfraxp2i7y2714dxmpbxpdmnv")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-asn1-rs" ,rust-asn1-rs-0.5) + ("rust-cookie-factory" ,rust-cookie-factory-0.3) + ("rust-displaydoc" ,rust-displaydoc-0.2) + ("rust-nom" ,rust-nom-7) + ("rust-num-bigint" ,rust-num-bigint-0.4) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-rusticata-macros" ,rust-rusticata-macros-4)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-pretty-assertions" ,rust-pretty-assertions-1) + ("rust-test-case" ,rust-test-case-3)))) + (home-page "https://github.com/rusticata/der-parser") + (synopsis "BER/DER parser written in pure Rust") + (description "This crate provides a parser for Basic Encoding Rules (BER +[X.690]) and Distinguished Encoding Rules(DER [X.690]), implemented with the +@code{nom} parser combinator framework.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-der-parser-7 + (package + (inherit rust-der-parser-8) + (name "rust-der-parser") + (version "7.0.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "der-parser" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "10kfa2gzl3x20mwgrd43cyi79xgkqxyzcyrh0xylv4apa33qlfgy")))) + (arguments + `(#:cargo-inputs (("rust-asn1-rs" ,rust-asn1-rs-0.3) + ("rust-cookie-factory" ,rust-cookie-factory-0.3) + ("rust-displaydoc" ,rust-displaydoc-0.2) + ("rust-nom" ,rust-nom-7) + ("rust-num-bigint" ,rust-num-bigint-0.4) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-rusticata-macros" ,rust-rusticata-macros-4)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-pretty-assertions" ,rust-pretty-assertions-1) + ("rust-test-case" ,rust-test-case-1)))))) + +(define-public rust-der-parser-6 + (package + (inherit rust-der-parser-8) + (name "rust-der-parser") + (version "6.0.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "der-parser" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0gn465dncghmj52k8dlkl71wkmlz5zc6jfjgj9ra2knf22ryy1wq")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-bitvec" ,rust-bitvec-0.22) + ("rust-cookie-factory" ,rust-cookie-factory-0.3) + ("rust-der-oid-macro" ,rust-der-oid-macro-0.5) + ("rust-nom" ,rust-nom-7) + ("rust-num-bigint" ,rust-num-bigint-0.4) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-rusticata-macros" ,rust-rusticata-macros-4)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-pretty-assertions" ,rust-pretty-assertions-0.7) + ("rust-test-case" ,rust-test-case-1)))))) + (define-public rust-native-tls-0.2 (package (name "rust-native-tls") -- cgit v1.2.3 From c49fae5372412009abc81153bd5810451c352940 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 22 Jan 2024 21:20:43 +0200 Subject: gnu: Remove rust-sha2-0.7. * gnu/packages/crates-crypto.scm (rust-sha2-0.7): Delete variable. Change-Id: I841619e89f09c20903ffdc3280a503ee35417ee4 --- gnu/packages/crates-crypto.scm | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index b750a97817..4014db174c 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -5298,27 +5298,6 @@ function family including SHA-224, SHA-256, SHA-384, and SHA-512.") (("rust-digest" ,rust-digest-0.8) ("rust-hex-literal" ,rust-hex-literal-0.1)))))) -(define-public rust-sha2-0.7 - (package - (inherit rust-sha2-0.9) - (name "rust-sha2") - (version "0.7.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "sha2" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "183yhkj16i7yzdp8i7aavpy329vz5xrd502233bq8fn2whjbxdly")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-block-buffer" ,rust-block-buffer-0.3) - ("rust-byte-tools" ,rust-byte-tools-0.2) - ("rust-digest" ,rust-digest-0.7) - ("rust-fake-simd" ,rust-fake-simd-0.1) - ("rust-sha2-asm" ,rust-sha2-asm-0.5)))))) - (define-public rust-sha2-asm-0.6 (package (name "rust-sha2-asm") -- cgit v1.2.3 From ab3bde8f45101befb2a851106dd204532947355a Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 22 Jan 2024 21:20:43 +0200 Subject: gnu: Remove rust-pbkdf2-0.6. * gnu/packages/crates-crypto.scm (rust-pbkdf2-0.6): Delete variable. Change-Id: I4ce346774e68fd29bbd83e2697113c16481a2bf7 --- gnu/packages/crates-crypto.scm | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 4014db174c..ad0a26c54d 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -3078,33 +3078,6 @@ in pure Rust.") ("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-pkcs1-0.7 (package (name "rust-pkcs1") -- cgit v1.2.3 From 53c596754177bd3bae939ba850adf73efa99a43e Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 22 Jan 2024 21:20:43 +0200 Subject: gnu: Remove rust-digest-0.7. * gnu/packages/crates-crypto.scm (rust-digest-0.7): Delete variable. Change-Id: I260fba2d1b590c2b14f30a3884e1e27d04e23e42 --- gnu/packages/crates-crypto.scm | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index ad0a26c54d..6505934e89 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1905,23 +1905,6 @@ ciphers implementations.") (("rust-blobby" ,rust-blobby-0.1) ("rust-generic-array" ,rust-generic-array-0.12)))))) -(define-public rust-digest-0.7 - (package - (inherit rust-digest-0.9) - (name "rust-digest") - (version "0.7.6") - (source - (origin - (method url-fetch) - (uri (crate-uri "digest" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "142vdpvkqlqk9s1dcgpqb2wz76n5a39gjnk68p0zkflc58j75c03")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-generic-array" ,rust-generic-array-0.9)))))) - (define-public rust-digest-0.6 (package (name "rust-digest") -- cgit v1.2.3 From 41a327c179407a87a9bcf825ce8380a527089990 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 22 Jan 2024 21:21:54 +0200 Subject: gnu: Remove rust-crypto-mac-0.5. * gnu/packages/crates-crypto.scm (rust-crypto-mac-0.5): Delete variable. Change-Id: I134e9c1fb5a25e82f3dcad6f925b07b99a172ddb --- gnu/packages/crates-crypto.scm | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 6505934e89..c7a3302823 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1552,24 +1552,6 @@ Code} (MAC) algorithms.") ("rust-generic-array" ,rust-generic-array-0.12) ("rust-subtle" ,rust-subtle-1)))))) -(define-public rust-crypto-mac-0.5 - (package - (inherit rust-crypto-mac-0.10) - (name "rust-crypto-mac") - (version "0.5.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "crypto-mac" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0n6r10zlnfv9gbjj0380sxfffxhq1khfjqwsn7fx8iil9pzv9689")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-constant-time-eq" ,rust-constant-time-eq-0.1) - ("rust-generic-array" ,rust-generic-array-0.9)))))) - (define-public rust-crypto-mac-0.4 (package (name "rust-crypto-mac") -- cgit v1.2.3 From cc4d653801499b05cd1e015468793ad82393ebbd Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 22 Jan 2024 21:22:15 +0200 Subject: gnu: rust-crypto-mac-0.4: Inherit from rust-crypto-mac-0.11. * gnu/packages/crates-crypto.scm (rust-crypto-mac-0.4): Inherit from rust-crypto-mac-0.11. Change-Id: I31f99172a8010487b265074b6c8dd94fb59b26d1 --- gnu/packages/crates-crypto.scm | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'gnu/packages/crates-crypto.scm') diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index c7a3302823..d4205f7d70 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1554,27 +1554,20 @@ Code} (MAC) algorithms.") (define-public rust-crypto-mac-0.4 (package + (inherit rust-crypto-mac-0.11) (name "rust-crypto-mac") (version "0.4.0") (source (origin (method url-fetch) (uri (crate-uri "crypto-mac" version)) - (file-name - (string-append name "-" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) (sha256 - (base32 - "160ixpghhz5kz16f38kzcyv6lx8wmi4cgbhlhq4nazf678iib43p")))) - (build-system cargo-build-system) + (base32 "160ixpghhz5kz16f38kzcyv6lx8wmi4cgbhlhq4nazf678iib43p")))) (arguments `(#:cargo-inputs (("rust-constant-time-eq" ,rust-constant-time-eq-0.1) - ("rust-generic-array" ,rust-generic-array-0.8)))) - (home-page "https://github.com/RustCrypto/traits") - (synopsis "Trait for Message Authentication Code (MAC) algorithms") - (description "This package provides traits for Message Authentication -Code (MAC) algorithms.") - (license (list license:expat license:asl2.0)))) + ("rust-generic-array" ,rust-generic-array-0.8)))))) (define-public rust-crypto-tests-0.5 (package -- cgit v1.2.3