From 4b481835f2092358993e29ca73a434890b4fa27d Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Sat, 18 Sep 2021 17:03:27 +0000 Subject: [PATCH] gnu: Add rust-aes-soft-0.6. * gnu/packages/crates-io.scm (rust-aes-soft-0.6): New variable. (rust-aes-soft-0.4): Inherit from above. Signed-off-by: Nicolas Goaziou --- gnu/packages/crates-io.scm | 37 ++++++++++++++++++++++++++++++------- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 2edd596a4f..ad47029488 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -1274,8 +1274,37 @@ (define-public rust-aes-gcm-0.5 ("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 @@ -1286,19 +1315,13 @@ (define-public rust-aes-soft-0.4 (sha256 (base32 "19szsg0qqxq42k7bj5p3svb147n8wxy9a20n4g7mcl2fwrz689a9")))) - (build-system cargo-build-system) (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)))) - (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.") - (license (list license:expat license:asl2.0)))) + (("rust-block-cipher" ,rust-block-cipher-0.7)))))) (define-public rust-aes-soft-0.3 (package