From 781056928c1c12a34f2d403f6744b7886969798b Mon Sep 17 00:00:00 2001 From: Herman Rimm Date: Sun, 18 Feb 2024 22:09:09 +0100 Subject: [PATCH] gnu: Add rust-pkcs7-0.4. * gnu/packages/crates-crypto.scm (rust-pkcs7-0.4): Add variable. Change-Id: I35ff754d24ac50a25fa94149bdf50291ff3a46f5 Signed-off-by: Efraim Flashner --- gnu/packages/crates-crypto.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 9660b8430f..0631c44902 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -3616,6 +3616,34 @@ Standards (PKCS) #5: Password-Based Cryptography Specification Version ("rust-sha2" ,rust-sha2-0.9) ("rust-spki" ,rust-spki-0.4)))))) +(define-public rust-pkcs7-0.4 + (package + (name "rust-pkcs7") + (version "0.4.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "pkcs7" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1rvp9gm7vzcbbzz6vr6xz6ri2szgxm35j0zk5dhf01b40sz7i4fp")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-der" ,rust-der-0.7) + ("rust-spki" ,rust-spki-0.7) + ("rust-x509-cert" ,rust-x509-cert-0.2)) + #:cargo-development-inputs + (("rust-der" ,rust-der-0.7) + ("rust-hex-literal" ,rust-hex-literal-0.4) + ("rust-x509-cert" ,rust-x509-cert-0.2)))) + (home-page "https://github.com/RustCrypto/formats/tree/master/pkcs7") + (synopsis "Implementation of Public-Key Cryptography Standards (PKCS) #7") + (description + "This package is a pure Rust implementation of Public-Key +Cryptography Standards (PKCS) #7: Cryptographic Message Syntax +Specification (RFC 5652).") + (license (list license:asl2.0 license:expat)))) + (define-public rust-pkcs8-0.10 (package (name "rust-pkcs8")