From patchwork Sun Feb 18 21:07:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herman Rimm X-Patchwork-Id: 60583 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5C44227BBE9; Sun, 18 Feb 2024 21:12:06 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B204227BBE2 for ; Sun, 18 Feb 2024 21:12:04 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rboRt-0006Q8-LN; Sun, 18 Feb 2024 16:11:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rboRs-0006PR-JR for guix-patches@gnu.org; Sun, 18 Feb 2024 16:11:44 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rboRs-0007EN-BH for guix-patches@gnu.org; Sun, 18 Feb 2024 16:11:44 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rboSD-0003My-0M; Sun, 18 Feb 2024 16:12:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69257] [PATCH 108/228] gnu: Add rust-chacha20poly1305-0.10. Resent-From: Herman Rimm Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Sun, 18 Feb 2024 21:12:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69257 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69257@debbugs.gnu.org Cc: Herman Rimm , Efraim Flashner X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by 69257-submit@debbugs.gnu.org id=B69257.170829068912657 (code B ref 69257); Sun, 18 Feb 2024 21:12:04 +0000 Received: (at 69257) by debbugs.gnu.org; 18 Feb 2024 21:11:29 +0000 Received: from localhost ([127.0.0.1]:38958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rboRb-0003Ho-RJ for submit@debbugs.gnu.org; Sun, 18 Feb 2024 16:11:29 -0500 Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:43013 helo=email.rimm.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rboRT-0003Ez-O4 for 69257@debbugs.gnu.org; Sun, 18 Feb 2024 16:11:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman; t=1708290649; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Vg4MrrwQ8V8exdg8lm8sLC8yK5i89SC4shO3nuRB42Y=; b=EaocZrTMD+nyfttN05XwzHHP5aJv+Jy6WTFZ5tUUfgyxwJHMTxdaMOcgNTYD7LXyrvp7cU vWNvZLs43A4Z8jwWXTsCeDsbrFzdmEhGeRTryH7gN9vMScQDE+Q3hMwmy2IDgoGocmL/hF bHS7p5hnOEG/M31EdLiWkAM1t5ubcwBbS/Hplg4MsFX7LlQ+BLhYxT+wxfD5wJFAek+u3T nzXz5qJVpJqBHWUf/iaUKfbv3beNEvlnA4inKcyVU5cYznxYu3qkaaO25OmVUi4bAplxO3 QEY+R5ea6IDZTeBXX5MqJvRz9SuKaabfR/C6z1lQTssDkjfi5J6M9RRKS4P3IQ== Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id 29b2178f (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sun, 18 Feb 2024 21:10:49 +0000 (UTC) Date: Sun, 18 Feb 2024 22:07:58 +0100 Message-ID: <72e4d9a1657e447225f4d8967af9b751fa161f7c.1708288186.git.herman@rimm.ee> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Herman Rimm X-ACL-Warn: , Herman Rimm via Guix-patches X-Patchwork-Original-From: Herman Rimm via Guix-patches via From: Herman Rimm Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/crates-crypto.scm (rust-chacha20poly1305-0.10): Add variable. (rust-chacha20poly1305-0.9): Inherit from rust-chacha20poly1305-0.10. Change-Id: I8e3d9270bb06baa051bb9eff8a7a507c5ac4a9ad --- gnu/packages/crates-crypto.scm | 46 +++++++++++++++++++++++++--------- 1 file changed, 34 insertions(+), 12 deletions(-) diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 599fdd3a8c..0a01c18536 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1169,8 +1169,41 @@ (define-public rust-chacha20-0.8 (("rust-cipher" ,rust-cipher-0.3) ("rust-hex-literal" ,rust-hex-literal-0.2)))))) +(define-public rust-chacha20poly1305-0.10 + (package + (name "rust-chacha20poly1305") + (version "0.10.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "chacha20poly1305" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0dfwq9ag7x7lnd0znafpcn8h7k4nfr9gkzm0w7sc1lcj451pkk8h")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-aead" ,rust-aead-0.5) + ("rust-chacha20" ,rust-chacha20-0.9) + ("rust-cipher" ,rust-cipher-0.4) + ("rust-poly1305" ,rust-poly1305-0.8) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs (("rust-aead" ,rust-aead-0.5)))) + (home-page + "https://github.com/RustCrypto/AEADs/tree/master/chacha20poly1305") + (synopsis + "Rust implementation of ChaCha20Poly1305 Authenticated Encryption") + (description + "Pure Rust implementation of the ChaCha20Poly1305 Authenticated +Encryption with Additional Data Cipher (RFC 8439) with optional +architecture-specific hardware acceleration. Also contains +implementations of the XChaCha20Poly1305 extended nonce variant of +ChaCha20Poly1305, and the reduced-round ChaCha8Poly1305 and +ChaCha12Poly1305 lightweight variants.") + (license (list license:asl2.0 license:expat)))) + (define-public rust-chacha20poly1305-0.9 (package + (inherit rust-chacha20poly1305-0.10) (name "rust-chacha20poly1305") (version "0.9.1") (source @@ -1185,7 +1218,6 @@ (define-public rust-chacha20poly1305-0.9 '(begin (substitute* "Cargo.toml" (("version = \">=1, <1.5\"") "version = \"^1\"")))))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-aead" ,rust-aead-0.4) @@ -1194,17 +1226,7 @@ (define-public rust-chacha20poly1305-0.9 ("rust-poly1305" ,rust-poly1305-0.7) ("rust-zeroize" ,rust-zeroize-1)) #:cargo-development-inputs - (("rust-aead" ,rust-aead-0.4)))) - (home-page "https://github.com/RustCrypto/AEADs/tree/master/chacha20poly1305") - (synopsis - "Pure Rust implementation of ChaCha20Poly1305 Authenticated Encryption") - (description - "Pure Rust implementation of the ChaCha20Poly1305 Authenticated -Encryption with Additional Data Cipher (RFC 8439) with optional -architecture-specific hardware acceleration. Also contains implementations of -the XChaCha20Poly1305 extended nonce variant of ChaCha20Poly1305, and the -reduced-round ChaCha8Poly1305 and ChaCha12Poly1305 lightweight variants.") - (license (list license:asl2.0 license:expat)))) + (("rust-aead" ,rust-aead-0.4)))))) (define-public rust-cipher-0.4 (package