From 261f09e362f524fe68635fc777066aead3102021 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 3 Dec 2024 20:26:52 +0200 Subject: [PATCH] gnu: Add rust-ssh-cipher-0.2. * gnu/packages/crates-crypto.scm (rust-ssh-cipher-0.2): New variable. Change-Id: Ic3edab2c53a25a680e18cac294541d8dd8689606 --- gnu/packages/crates-crypto.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 3c42e2e98f..96c1c9c662 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -6212,6 +6212,38 @@ OIDs)") (base32 "0ckgkcg6db5y94dqhmyikgn8yrsah6pyf4j197hv1c51bp0s00aw")))) (arguments `(#:skip-build? #t #:cargo-inputs (("rust-der" ,rust-der-0.4)))))) +(define-public rust-ssh-cipher-0.2 + (package + (name "rust-ssh-cipher") + (version "0.2.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "ssh-cipher" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0kvq113x9fcy2jcxp00xk472zxm8d9zxxz2vyqx3rlzh88ki7b6a")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-aes" ,rust-aes-0.8) + ("rust-aes-gcm" ,rust-aes-gcm-0.10) + ("rust-cbc" ,rust-cbc-0.1) + ("rust-chacha20" ,rust-chacha20-0.9) + ("rust-cipher" ,rust-cipher-0.4) + ("rust-ctr" ,rust-ctr-0.9) + ("rust-des" ,rust-des-0.8) + ("rust-poly1305" ,rust-poly1305-0.8) + ("rust-ssh-encoding" ,rust-ssh-encoding-0.2) + ("rust-subtle" ,rust-subtle-2)))) + (home-page "https://github.com/RustCrypto/SSH/tree/master/ssh-cipher") + (synopsis "Pure Rust implementation of SSH symmetric encryption") + (description + "This package provides Pure Rust implementation of SSH symmetric encryption +including support for the modern aes128-gcm@@openssh.com/aes256-gcm@@openssh.com +and chacha20-poly1305@@openssh.com algorithms as well as legacy support for +older ciphers.") + (license (list license:asl2.0 license:expat)))) + (define-public rust-ssh-encoding-0.2 (package (name "rust-ssh-encoding")