From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id uIQ7GQSD0mXIdAAAe85BDQ:P1 (envelope-from ) for ; Sun, 18 Feb 2024 23:21:56 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id uIQ7GQSD0mXIdAAAe85BDQ (envelope-from ) for ; Sun, 18 Feb 2024 23:21:56 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rimm.ee header.s=herman header.b=aZhbOT61; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708294916; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=JXauuSv9AAVqy66qY8vKSryyrrVBYg2oj4rlqS7+yZE=; b=mawp+lUFLO0xNMf19edjanrrfJmRnCEMj57gXJSueb2LeBYy7UhuYM62m3Q4N6zOYKFDQb whcyFmxhWHN2Kz5mMZ+dxYWpeD7ZPNfoiYivYA7TdvD5MpUG6wDh1Thv9GsWL6unnHnE+h YyO47gn2cjm+TzIoa8fYsxXAVW1ml3qEuesJZ2UA7a66G2UZ6subDRjq+sph0WxLYsEdtf +sPghtcqCfzHVrKA729vFlf3I3GOb/sXBqVPdpBipJTNGt/ud4+88slLZIGdZLyuFuo6eK gCB9lXMK6V94zK7rsubFSSAs1lVmtUXElegvIyKmj9u2TFeIyEslJ5418VQ8Mw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rimm.ee header.s=herman header.b=aZhbOT61; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708294916; a=rsa-sha256; cv=none; b=ilUX0Ar2GSWOuKSeL+nvQEvedHfjQNpWI6x6HoB45bjOhtUV9mMNp2OgAg/YdGsUZ4kTEg r2LyJGkHmri17FFtVjg2pzRrRIyIm2XzPqeWxqyOlCr42udDcPQU5jQYeDzs3FefAiWgND LIXPjQVoqvyR07AX9YUy+FUKwwKIPqeIV/7I8LbDU/n3u6BABjj6H9/T7qC11QvZ/Q7Alu bfQAxcX/mRrNAsJqd0YmX+kycVHJc0EEDnFxIztVzMGHd4uTwVPYE6G/FxZY5fohusYivQ OXedUWzDxrE2RvALUqdMjU9Onn7/fHl1880WxL+sw74SQjis2LB3jOxUJrPhDA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2C78624035 for ; Sun, 18 Feb 2024 23:21:56 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rboT1-0007HZ-57; Sun, 18 Feb 2024 16:12:55 -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 1rboSz-0007EH-HR for guix-patches@gnu.org; Sun, 18 Feb 2024 16:12:53 -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 1rboSz-0007TY-8R for guix-patches@gnu.org; Sun, 18 Feb 2024 16:12:53 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rboTJ-0003Ws-TT; Sun, 18 Feb 2024 16:13:13 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69257] [PATCH 165/228] gnu: Add rust-ed25519-2. 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:13:13 +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.170829075813256 (code B ref 69257); Sun, 18 Feb 2024 21:13:13 +0000 Received: (at 69257) by debbugs.gnu.org; 18 Feb 2024 21:12:38 +0000 Received: from localhost ([127.0.0.1]:39133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rboSj-0003Rf-Jj for submit@debbugs.gnu.org; Sun, 18 Feb 2024 16:12:37 -0500 Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:51711 helo=email.rimm.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rboRo-0003H0-G1 for 69257@debbugs.gnu.org; Sun, 18 Feb 2024 16:11:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman; t=1708290675; 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=JXauuSv9AAVqy66qY8vKSryyrrVBYg2oj4rlqS7+yZE=; b=aZhbOT61hePyrykYkF9YyNAh0Dy/hT4O+FX3BtQE6nkQV7J69OwtuRpPgqBlI5sDSGTp3U boS08ni9F1emEx+WlEZewWKio5DTRvzgDRU3w+YQRNlLrxUkuqkOuaoTGF7WX+PVb+NLeo 3494uZMSKasxl9Dyy+QK5GA4jZ6pggQyRF8wRZqme8Z3doTaSZ1ro18T5VjassQs3qG/Vg 3x4x/2HrG8B5lMveadswEKwHIsl4bZwNf07U9NpESP1mEFPUEwL4IEmmhk22yv+ai29ZA8 d67ma/T/rS4uLoqZPU/xFbq4+ivk02Vyx8mkSslLgpQe2HBgLO0ptSUmymx6Iw== Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id a247e19b (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sun, 18 Feb 2024 21:11:15 +0000 (UTC) Date: Sun, 18 Feb 2024 22:08:55 +0100 Message-ID: <1ea582aa7eb3bd186c58dc1075abc8c03d19e37a.1708288188.git.herman@rimm.ee> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 From: Herman Rimm via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.48 X-Spam-Score: -6.48 X-Migadu-Queue-Id: 2C78624035 X-TUID: RdSA1+JrzL0/ * gnu/packages/crates-io.scm (rust-ed25519-2): Add variable. (rust-ed25519-1): Inherit from rust-ed25519-2. Change-Id: I444a61ce5b2e8643d3a9949ce97a1d165a1c6c21 --- gnu/packages/crates-crypto.scm | 54 +++++++++++++++++++++++++--------- 1 file changed, 40 insertions(+), 14 deletions(-) diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 0c45722177..108553a5eb 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -2102,8 +2102,47 @@ (define-public rust-ecies-ed25519-0.5 "ECIES on Twisted Edwards Curve25519 using AES-GCM and HKDF-SHA256.") (license (list license:expat license:asl2.0)))) +(define-public rust-ed25519-2 + (package + (name "rust-ed25519") + (version "2.2.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "ed25519" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0lydzdf26zbn82g7xfczcac9d7mzm3qgx934ijjrd5hjpjx32m8i")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-pkcs8" ,rust-pkcs8-0.10) + ("rust-serde" ,rust-serde-1) + ("rust-serde-bytes" ,rust-serde-bytes-0.11) + ("rust-signature" ,rust-signature-2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-bincode" ,rust-bincode-1) + ("rust-ed25519-dalek" ,rust-ed25519-dalek-2) + ("rust-hex-literal" ,rust-hex-literal-0.4) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-ring-compat" ,rust-ring-compat-0.8)))) + (home-page "https://github.com/RustCrypto/signatures/tree/master/ed25519") + (synopsis "Edwards Digital Signature Algorithm over Curve25519") + (description + "EdDSA over Curve25519 is specified in RFC 8032. This package +contains an ed25519::Signature type which other packages can use in +conjunction with the signature::Signer and signature::Verifier traits. +It doesn't contain an implementation of Ed25519. + +These traits allow packages which produce and consume Ed25519 signatures +to be written abstractly in such a way that different signer/verifier +providers can be plugged in, enabling support for using different Ed25519 +implementations, including HSMs or Cloud KMS services.") + (license (list license:asl2.0 license:expat)))) + (define-public rust-ed25519-1 (package + (inherit rust-ed25519-2) (name "rust-ed25519") (version "1.5.3") (source (origin @@ -2125,20 +2164,7 @@ (define-public rust-ed25519-1 (("rust-bincode" ,rust-bincode-1) ("rust-ed25519-dalek" ,rust-ed25519-dalek-1) ("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-rand-core" ,rust-rand-core-0.5)))) - (home-page "https://github.com/RustCrypto/signatures/tree/master/ed25519") - (synopsis "Edwards Digital Signature Algorithm (EdDSA) over Curve25519") - (description - "EdDSA over Curve25519 is specified in RFC 8032. This package contains -an ed25519::Signature type which other packages can use in conjunction with -the signature::Signer and signature::Verifier traits It doesn't contain an -implementation of Ed25519. - -These traits allow packages which produce and consume Ed25519 signatures to be -written abstractly in such a way that different signer/verifier providers can -be plugged in, enabling support for using different Ed25519 implementations, -including HSMs or Cloud KMS services.") - (license (list license:asl2.0 license:expat)))) + ("rust-rand-core" ,rust-rand-core-0.5)))))) (define-public rust-ed25519-compact-2 (package -- 2.41.0