From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 7gYYIKLnxmTsHwEASxT56A (envelope-from ) for ; Mon, 31 Jul 2023 00:43:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sClXH6LnxmQ84wAA9RJhRA (envelope-from ) for ; Mon, 31 Jul 2023 00:43:46 +0200 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 3F20E51BE9 for ; Mon, 31 Jul 2023 00:43:46 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tobias.gr header.s=2018 header.b=gcyG3lMT; 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=1690757026; 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-type:content-type: 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=EA1D/HYBSAzJ7DO9NHUTIzW2I/Etx/e4J3AWtDYt0hk=; b=CVyiM+c3QhxK2X4LDFx8n7z0Z9PzCmBGWTIAtHI/G1T+yDi0Rped5+QHrWS1eYaHvLflLT phImuiweqOOYgJ8HqmiSxb/KRhmmtgPAH/yeIno2QgiRu6sQOoc+9O1nuJFJqCPft3NodN 1hzjxT7xgD9xzMkYQoTyvpoM+sw2xITarUV9nmxwj2hckspzWIuYAgioPHt9fgX37HLkAW CvM2RvXmzmUhanDRE0q/ZLCgw+7vgYb7MDXlF+vsVzi8m7OVhgcHu5tHYVBVeMuKU/GCFy /Ni62Io5UpbhvQIcwPelmOl2E2wSozqjBkARfrbAY36rPC/jlO/Ik/QcAY730A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690757026; a=rsa-sha256; cv=none; b=EMEoeYol0PJGssMSuLrkqzf48vwQiz+0mjURbUfQh86ezGpywirM9E4XpMSBRgKp5Sn96k 7byTM7BeFHBK8nlJvTVspMTG5ICRoNm1qTztiOq6XNxbUNw3GbekJiqnj0BfOL1bDvBFhy +VuNhARinnE5txSHa03BYm9x7hwvNHRFdaktpV08EedOYwFLWsNuTjqCdckj7QMl3MWqJ3 MUHC7SZ3K5kGMa6mo9wCshj1ep1IhA1kA6Ni87RkHLfUwh4FAfXkzsdaUzNP7MGlDoOcgq EXKqN8dKp/H4rYMFhICNqRWEtyovKYlVnsXAxQ+l4/TMOdtuyh+IX0MT4wQHvQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tobias.gr header.s=2018 header.b=gcyG3lMT; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQF7x-00042p-7p; Sun, 30 Jul 2023 18:43:05 -0400 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 1qQF7v-00041q-CW for guix-patches@gnu.org; Sun, 30 Jul 2023 18:43:03 -0400 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 1qQF7v-0005jX-4G for guix-patches@gnu.org; Sun, 30 Jul 2023 18:43:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qQF7t-00037v-R2; Sun, 30 Jul 2023 18:43:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64965] [PATCH 1/8] gnu: Add ghc-curve25519. References: <874jllqb0x.fsf@nckx> In-Reply-To: <874jllqb0x.fsf@nckx> Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, guix-patches@gnu.org Resent-Date: Sun, 30 Jul 2023 22:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64965 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 64965@debbugs.gnu.org Cc: Lars-Dominik Braun X-Debbugs-Original-Xcc: Lars-Dominik Braun Received: via spool by 64965-submit@debbugs.gnu.org id=B64965.169075694211910 (code B ref 64965); Sun, 30 Jul 2023 22:43:01 +0000 Received: (at 64965) by debbugs.gnu.org; 30 Jul 2023 22:42:22 +0000 Received: from localhost ([127.0.0.1]:51372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQF7F-00035r-D9 for submit@debbugs.gnu.org; Sun, 30 Jul 2023 18:42:22 -0400 Received: from tobias.gr ([80.241.217.52]:39032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQF7C-00035W-3l for 64965@debbugs.gnu.org; Sun, 30 Jul 2023 18:42:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=EA1D/HYBSAzJ7 DO9NHUTIzW2I/Etx/e4J3AWtDYt0hk=; h=date:subject:to:from; d=tobias.gr; b=gcyG3lMTyCyl1VuI32QS4MlCYGhrzqVXF2rIk8XXU7PePIcZXJ0wgrRy7wtsTIzRES9j CGrF6IXOoaye0+9gdlnSvuD6h9FDOfERWYLt04SzfSc8KwSVwSa11/WfLrngUqF9q2pmR0 o9/ijQgWjoeKN47W+e8H5kzJbD1Z+8Y5HNTuYc8gjKRjsoq8IXP6RfLJCIbBkv7Kzm2/dZ 3hZxYPKpLSk/vZKKXhY7qvb931VXm0AdF+8IYmxwN0oWE6LUeSPXMNWTSqQoflajohGus3 Q6u3Z3QkZjzFI3ewEDXqiFNNqtZn6FjQ9vbXaKcLdV0a67sW8osgYjnw6gZ7KKZg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 1f0fb9a4 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <64965@debbugs.gnu.org>; Sun, 30 Jul 2023 22:42:15 +0000 (UTC) Date: Sun, 30 Jul 2023 01:59:53 +0200 Message-ID: <020d302edff3fb5ea32ab5bc4c38abd19233992f.1690675200.git.me@tobias.gr> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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: Tobias Geerinckx-Rice X-ACL-Warn: , Tobias Geerinckx-Rice via Guix-patches From: Tobias Geerinckx-Rice 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: -5.13 X-Spam-Score: -5.13 X-Migadu-Queue-Id: 3F20E51BE9 X-TUID: TFnMrcRtczrR * gnu/packages/haskell-crypto.scm (ghc-curve25519): New public variable. --- gnu/packages/haskell-crypto.scm | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/gnu/packages/haskell-crypto.scm b/gnu/packages/haskell-crypto.scm index 42e2a15709..4314ad4937 100644 --- a/gnu/packages/haskell-crypto.scm +++ b/gnu/packages/haskell-crypto.scm @@ -3,7 +3,7 @@ ;;; Copyright © 2015, 2017, 2018, 2019 Ricardo Wurmus ;;; Copyright © 2016 Nikita ;;; Copyright © 2017 rsiddharth -;;; Copyright © 2017, 2019 Tobias Geerinckx-Rice +;;; Copyright © 2017, 2019, 2023 Tobias Geerinckx-Rice ;;; Copyright © 2020 Giacomo Leidi ;;; ;;; This file is part of GNU Guix. @@ -290,6 +290,37 @@ (define-public ghc-cryptonite generators, and more.") (license license:bsd-3))) +(define-public ghc-curve25519 + (package + (name "ghc-curve25519") + (version "0.2.7") + (source + (origin + (method url-fetch) + (uri (hackage-uri "curve25519" version)) + (sha256 + (base32 "1p8b1lppkvc19974hr43lcqdi4nj55j2nf7gsnp8dn7gyf23aayq")))) + (build-system haskell-build-system) + (native-inputs + (list ghc-hunit + ghc-quickcheck + ghc-tagged + ghc-test-framework + ghc-test-framework-hunit + ghc-test-framework-quickcheck2)) + (inputs + (list ghc-crypto-api)) + (properties '((upstream-name . "curve25519"))) + (home-page "https://github.com/acw/curve25519") + (synopsis "Fast implementations of the curve25519 elliptic curve primitives.") + (description + "This module provides Haskell bindings and extensions to the curve25519-donna +codebase. It's a pretty straightforward implementation of the basic +cryptographic routines you'd want from a project that uses curve25519: key +generation, and key agreement. For further functionality, you'll want to look +elsewhere.") + (license license:bsd-3))) + (define-public ghc-digest (package (name "ghc-digest") base-commit: 4a276d627bf83c4f6b080b169b6220d88fa10ddf prerequisite-patch-id: c4e28901b4995430a553284d4a8889172203ae65 prerequisite-patch-id: 5777f58093a15b55627389d2fc150df112aef771 prerequisite-patch-id: c04ee7e58fdfd57ec20dd6810a52f7650948a579 prerequisite-patch-id: e94ecd3c107e4c63c658a5fe56015b8bf3176c27 prerequisite-patch-id: 7e6e4ab87b52996e9bb6cd8595889f21ba87e9fe prerequisite-patch-id: 6f86f2a54f77c0e8841b6f22953c2f748e358107 prerequisite-patch-id: 7c88071ffd6af8c9de9a44ef2e745e3b111d28e7 prerequisite-patch-id: dacf336396c4f629906e4689dc2868d437179a37 prerequisite-patch-id: 35641348fcba881313d08cb85da3722ba0891264 prerequisite-patch-id: ea98f949fde81f63a309e36405b87463dc07ac50 prerequisite-patch-id: a299994eb9a52db942a5cc3a038b8bc34529c799 prerequisite-patch-id: 9ffc6d3a9be37af59ec29bfce0543cf8371edacb prerequisite-patch-id: c489fbc8af7d431f9372d0b8bc9e4c609703680e prerequisite-patch-id: 471c932817cc1044fd03f56e1a1f84e4ce4029a9 prerequisite-patch-id: 88f3a5981ea62ce654a48c258df09315f24ba73e prerequisite-patch-id: 62b7b8d8b26d642f524d45e910f7685a57345d76 prerequisite-patch-id: 6ad7cb518d3f48614c97e7ef851289a8f4375306 prerequisite-patch-id: b6630bfc6abc407afac53074820b61aa676c6f0a -- 2.41.0