Subject: [bug#61958] [PATCH 01/32] gnu: Add rust-block-padding-0.3.

From: Arjan Adriaanse <[email-masked]>
Date: Sat, 4 Mar 2023 14:53:55 +0100

* gnu/packages/crates-io.scm (rust-block-padding-0.3): New variable.
(rust-block-padding-0.2): Inherit from above.
---
 gnu/packages/crates-io.scm | 22 +++++++++++++++++++---
 1 file changed, 19 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index df8ec29022..26ac0d295d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -7573,10 +7573,10 @@ (define-public rust-block-modes-0.7
        (("rust-aes" ,rust-aes-0.6)
         ("rust-hex-literal" ,rust-hex-literal-0.2))))))
 
-(define-public rust-block-padding-0.2
+(define-public rust-block-padding-0.3
   (package
     (name "rust-block-padding")
-    (version "0.2.0")
+    (version "0.3.2")
     (source
       (origin
         (method url-fetch)
@@ -7585,14 +7585,30 @@ (define-public rust-block-padding-0.2
          (string-append name "-" version ".tar.gz"))
         (sha256
          (base32
-          "0x6b2dgink7rc3755r8jl4kmndydy5563h3wz7z9jqrb25ygv2y9"))))
+          "0y5v92alqzn9ikmyqfl3a4j6va87j967ii2n3jh2h330z4nyr40a"))))
     (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-generic-array" ,rust-generic-array-0.14))))
     (home-page "https://github.com/RustCrypto/utils")
     (synopsis "Padding and unpadding of messages divided into blocks")
     (description
      "Padding and unpadding of messages divided into blocks.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-block-padding-0.2
+  (package
+    (inherit rust-block-padding-0.3)
+    (name "rust-block-padding")
+    (version "0.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "block-padding" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0x6b2dgink7rc3755r8jl4kmndydy5563h3wz7z9jqrb25ygv2y9"))))))
+
 (define-public rust-block-padding-0.1
   (package
     (inherit rust-block-padding-0.2)
-- 
2.39.1