Subject: [PATCH 03/42] gnu: Add rust-bcrypt-pbkdf-0.10.

From: Wilko Meyer <[email-masked]>
Date: Tue, 2 Apr 2024 18:22:20 +0200

* gnu/packages/crates-crypto.scm (rust-bcrypt-pbkdf-0.10): New variable.

Change-Id: I7ef31019981cf4b6d9f6fda4054e1a0fae7180a5
---
 gnu/packages/crates-crypto.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm
index e2f8adbbbd..fb54bd89f2 100644
--- a/gnu/packages/crates-crypto.scm
+++ b/gnu/packages/crates-crypto.scm
@@ -745,6 +745,30 @@ (define-public rust-base64ct-1.0.1
         (base32 "0sx4a44c2n450lsmi0q1mgfbjhkw1sx57462cv77p0mmy9mgscla"))))
     (arguments '())))
 
+(define-public rust-bcrypt-pbkdf-0.10
+  (package
+    (name "rust-bcrypt-pbkdf")
+    (version "0.10.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "bcrypt-pbkdf" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "18pjhsy3m2v0silsp4mjzz8i92zrpqxk9b059zrnk1w8zvhw5ska"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-blowfish" ,rust-blowfish-0.9)
+                       ("rust-pbkdf2" ,rust-pbkdf2-0.12)
+                       ("rust-sha2" ,rust-sha2-0.10)
+                       ("rust-zeroize" ,rust-zeroize-1))))
+    (home-page
+     "https://github.com/RustCrypto/password-hashes/tree/master/bcrypt-pbkdf")
+    (synopsis "bcrypt-pbkdf password-based key derivation function")
+    (description "This crate provides bcrypt-pbkdf, a password-based key
+derivation function.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-blake2-0.10
   (package
     (name "rust-blake2")
-- 
2.41.0