From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yEgwKEU/CmG/kwAAgWs5BA (envelope-from ) for ; Wed, 04 Aug 2021 09:18:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GF7oI0U/CmFLDQAA1q6Kng (envelope-from ) for ; Wed, 04 Aug 2021 07:18:29 +0000 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 4B2262F3F3 for ; Wed, 4 Aug 2021 09:18:29 +0200 (CEST) Received: from localhost ([::1]:56764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBBAa-0004p3-Cm for larch@yhetil.org; Wed, 04 Aug 2021 03:18:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBB9R-0002m5-6t for guix-patches@gnu.org; Wed, 04 Aug 2021 03:17:17 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59143) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBB9Q-0004xv-Rh for guix-patches@gnu.org; Wed, 04 Aug 2021 03:17:16 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mBB9Q-0002pc-Nc for guix-patches@gnu.org; Wed, 04 Aug 2021 03:17:16 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49867] [PATCH 19/29] gnu: Add ocaml-mirage-crypto-ec. Resent-From: pukkamustard Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 04 Aug 2021 07:17:16 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49867 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49867@debbugs.gnu.org Cc: pukkamustard Received: via spool by 49867-submit@debbugs.gnu.org id=B49867.162806143410847 (code B ref 49867); Wed, 04 Aug 2021 07:17:16 +0000 Received: (at 49867) by debbugs.gnu.org; 4 Aug 2021 07:17:14 +0000 Received: from localhost ([127.0.0.1]:42447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBB9O-0002oh-8Z for submit@debbugs.gnu.org; Wed, 04 Aug 2021 03:17:14 -0400 Received: from mout01.posteo.de ([185.67.36.65]:59945) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBB9D-0002ij-NQ for 49867@debbugs.gnu.org; Wed, 04 Aug 2021 03:17:06 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 30193240027 for <49867@debbugs.gnu.org>; Wed, 4 Aug 2021 09:16:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1628061418; bh=ZDZI8++yTPoR3fKrFoyfdHGcQIfMBpnOnJ0xjyJtvaA=; h=From:To:Cc:Subject:Date:From; b=riWITG/c4CkhrQtvcVT6qSFbSMqacGc8I6bcBb9Vxkw3XpvoxzOk74Ym3eAl04P+O dMXD/y/ymfbSAYVavMidkbXeFZl27VWFlWYOVtI/1SgQPlRyK56q8DS00goklMsNTU HAaJME4D9DfU5cPLkFxCYguZMJdMJdsh6oM1onW5DHR/eWCMnvJc7ZffJlHX0hM8GT eO2OsCXKuBPockTE2k2Z7jiMNLpKjfYHOdbaSRSx0tZ36pGjgeeeu1kJ4VTyujejM9 4N5UK7WI67yYp7CA5ZGeU/m5silTUhpCA9HhO7QLl9z8lwOd76Zh9bSk0G7YWP2vbW HAfWB/+2/5reg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GfjjP4wBDz6tmF; Wed, 4 Aug 2021 09:16:57 +0200 (CEST) From: pukkamustard Date: Wed, 4 Aug 2021 07:15:35 +0000 Message-Id: <20210804071545.21181-19-pukkamustard@posteo.net> In-Reply-To: <20210804071545.21181-1-pukkamustard@posteo.net> References: <20210804071545.21181-1-pukkamustard@posteo.net> 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628061509; h=from:from:sender:sender: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=E+RrlVuKDkV6yYEpn6fdhcnUdQ+Z/CBDk3lIR7QfoBo=; b=rGGo5hW/mLIsqUOtsFCyngs96fNNNAKzWIS0C2DRnh/5K0VmEiH4ZCpxr4AEF4iA/tZvFj ONkXOZ9wAfBuiou3F9fsZBHGGsi54Mol2iKbWpa7ZgyZEkSFyhVAw5vB+3p41yqJq5xDS4 qMMRKlwCVfk15ZreKX8tRw+aRz4/G13zgmZpFjJowKETcMneOwQqzgZPCx3IwedCoX5XmO AkT5qk59btTwiLrdzwlulxCJxIu+SZ2k92HiUlu9Vi1RLS0PDEjszCap9u0VcWD6Y4K36A 6E3oCQpvRuVUWpn6qnTdLS0Nz/hhNuai0UUYChN76YH09crP2qOcbKGWM9l2TQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628061509; a=rsa-sha256; cv=none; b=TYAbKz0v9zn0zsgr2PloBQXnSKitkp1I0yiDnYcGZUkx/kET5/y3oMWJin6h/fg3ilNGaL BBow90PdgzrEGmTphRaZf3lE8bw5v9Q/4m/biegPcQqBKifd6TBm4QkVySQxz9bVxVizqz D4o/DnWFaVdc9FxzZLLQ9bBikvKmV1NjEcbAALZjmzEw2qMGha7IkNKcf3uzxbpgRuTjMu 7w+nVEtJcZuoH4SErP6uIfyBemb7rgJPIiL5DhTtfihcSUIMq0PpEBRLEnTLMcTTu8CaiJ KrCbrh/UjXaE8Y6hfx1O4Gf4k/V67vlrZmwJASDD8Pg56GBlrTnf3mszS3hB+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b="riWITG/c"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.68 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b="riWITG/c"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 4B2262F3F3 X-Spam-Score: 3.68 X-Migadu-Scanner: scn1.migadu.com X-TUID: iJ2dluMNirzz * gnu/packages/ocaml.scm (ocaml-mirage-crypto-ec): New variable. --- gnu/packages/ocaml.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 2cc91ea2c0..8463682e79 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -7624,6 +7624,40 @@ representations can be used for parsing, serialization, or random testing. The only ASN.1 encodings currently supported are BER and DER.") (license license:isc))) +(define-public ocaml-mirage-crypto-ec + ;; FIXME: This package contains generated code (see + ;; https://github.com/mirage/mirage-crypto/blob/main/ec/native/README.md). These + ;; should be re-generated during the build process. + (package + (inherit ocaml-mirage-crypto) + (name "ocaml-mirage-crypto-ec") + (arguments `(#:package "mirage-crypto-ec" + #:test-target ".")) + (propagated-inputs + `(("ocaml-cstruct" ,ocaml-cstruct) + ("ocaml-eqaf" ,ocaml-eqaf) + ("ocaml-mirage-crypto" ,ocaml-mirage-crypto) + ("ocaml-mirage-crypto-rng" ,ocaml-mirage-crypto-rng) + ("gmp" ,gmp))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("ocaml-randomconv" ,ocaml-randomconv) + ("ocaml-ounit" ,ocaml-ounit) + ("ocaml-mirage-crypto-pk" ,ocaml-mirage-crypto-pk) + ("ocaml-hex" ,ocaml-hex) + ("ocaml-alcotest" ,ocaml-alcotest) + ("ocaml-asn1-combinators" ,ocaml-asn1-combinators) + ("ocaml-ppx-deriving-yojson" ,ocaml-ppx-deriving-yojson) + ("ocaml-ppx-deriving" ,ocaml-ppx-deriving) + ("ocaml-yojson" ,ocaml-yojson))) + (synopsis "OCaml library providing Elliptic Curve Cryptography") + (description "This OCaml library provides an implementation of key exchange +(ECDH) and digital signature (ECDSA/EdDSA) algorithms. The curves P224 +(SECP224R1), P256 (SECP256R1), P384 (SECP384R1),P521 (SECP521R1), and 25519 +(X25519, Ed25519) are implemented by this package.") + ;; See https://github.com/mirage/mirage-crypto/blob/main/ec/LICENSE.md + (license license:expat))) + (define-public js-of-ocaml (package (name "js-of-ocaml") -- 2.32.0