aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/crates-crypto.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-03-18 12:01:41 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-07-19 00:43:21 +0300
commitef6e0a38555625b6c0c2f7de0ec398794678f229 (patch)
treece16c4169efa0ac663b58fff17b48bf5bc7e8b50 /gnu/packages/crates-crypto.scm
parent33e7795243c466bb31426a94f039e9577eaee0f4 (diff)
downloadguix-ef6e0a38555625b6c0c2f7de0ec398794678f229.tar.gz
guix-ef6e0a38555625b6c0c2f7de0ec398794678f229.zip
gnu: Add rust-aes-gcm-0.9.
* gnu/packages/crates-crypto.scm (rust-aes-gcm-0.9): New variable. Change-Id: Idab2128d71ee39eb690f3c0d70edc06d8356b8d4
Diffstat (limited to 'gnu/packages/crates-crypto.scm')
-rw-r--r--gnu/packages/crates-crypto.scm30
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm
index 4af2184d52..e6beab8bba 100644
--- a/gnu/packages/crates-crypto.scm
+++ b/gnu/packages/crates-crypto.scm
@@ -319,6 +319,36 @@ Data (AEAD) Cipher with optional architecture-specific hardware
acceleration.")
(license (list license:asl2.0 license:expat))))
+(define-public rust-aes-gcm-0.9
+ (package
+ (inherit rust-aes-gcm-0.10)
+ (name "rust-aes-gcm")
+ (version "0.9.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "aes-gcm" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1xndncn1phjb7pjam63vl0yp7h8jh95m0yxanr1092vx7al8apyz"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin (substitute* "Cargo.toml"
+ (((string-append ">=([[:digit:]]+(\\.[[:digit:]]+)*),"
+ " <([[:digit:]]+(\\.[[:digit:]]+)*)")
+ _ version _)
+ (string-append ">=" version)))))))
+ (arguments
+ `(#:cargo-inputs (("rust-aead" ,rust-aead-0.4)
+ ("rust-aes" ,rust-aes-0.7)
+ ("rust-cipher" ,rust-cipher-0.3)
+ ("rust-ctr" ,rust-ctr-0.8)
+ ("rust-ghash" ,rust-ghash-0.4)
+ ("rust-subtle" ,rust-subtle-2)
+ ("rust-zeroize" ,rust-zeroize-1))
+ #:cargo-development-inputs (("rust-aead" ,rust-aead-0.4)
+ ("rust-hex-literal" ,rust-hex-literal-0.3))))))
+
(define-public rust-aes-gcm-0.8
(package
(inherit rust-aes-gcm-0.10)