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 @@ (define-public rust-c2-chacha-0.2 "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 @@ (define-public rust-claxon-0.4 (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 @@ (define-module (gnu packages crates-windows) #: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