From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IMxQBE/TEGFrQQAAgWs5BA (envelope-from ) for ; Mon, 09 Aug 2021 09:03:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8Nl8O07TEGG1SgAAB5/wlQ (envelope-from ) for ; Mon, 09 Aug 2021 07:03:42 +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 B30D5141D2 for ; Mon, 9 Aug 2021 09:03:42 +0200 (CEST) Received: from localhost ([::1]:45882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mCzK1-0006kz-PV for larch@yhetil.org; Mon, 09 Aug 2021 03:03:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56470) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCzIb-0004ao-1F for guix-patches@gnu.org; Mon, 09 Aug 2021 03:02:13 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43977) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mCzIa-0000LY-NG for guix-patches@gnu.org; Mon, 09 Aug 2021 03:02:12 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mCzIa-0003e7-Jw for guix-patches@gnu.org; Mon, 09 Aug 2021 03:02:12 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49867] [PATCH v2 22/31] gnu: Add ocaml-mirage-crypto-ec. Resent-From: pukkamustard Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 09 Aug 2021 07:02:12 +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.162849251913839 (code B ref 49867); Mon, 09 Aug 2021 07:02:12 +0000 Received: (at 49867) by debbugs.gnu.org; 9 Aug 2021 07:01:59 +0000 Received: from localhost ([127.0.0.1]:55495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCzIN-0003b4-8U for submit@debbugs.gnu.org; Mon, 09 Aug 2021 03:01:59 -0400 Received: from mout01.posteo.de ([185.67.36.65]:58705) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCzIF-0003XP-Uw for 49867@debbugs.gnu.org; Mon, 09 Aug 2021 03:01:52 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 191AF24002B for <49867@debbugs.gnu.org>; Mon, 9 Aug 2021 09:01:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1628492511; bh=Ed9tfPYogn3LmqykwggpXGL1GtJ1t0cQeXQJyQuQpkY=; h=From:To:Cc:Subject:Date:From; b=n0C4pSZ+EqESaFLz5rZ/2Zeyos6xTooDGMyHpU3xeoNHLd2NetHLHR+gjK2mYfEgh suM61m7egFFXa0SxFgdcI82XefsviVKGEAhd4mEmNvxVOTI5Bo0qTOAD2I64wvTA7m vGOWAA8XUJFIUNOaRzUPsssFDFKtcFVeUeeqJgrjOxhtiWAGhIRuT564v3bawGVN5Y BrDb4vslkhU70n1iRsqiOWPuLKbCwPJVmBddKzt2QC1Z6VZcqt6bGSr2WFxZKvKRus vbgFCQN2gA3qQBM0qHmLoRjPa8G6px85ouVaceSK2TPKNKKMlU0jpdIfk9xaRGERlE jDBH26bbgOFOQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Gjn7d5S14z6tmL; Mon, 9 Aug 2021 09:01:49 +0200 (CEST) From: pukkamustard Date: Mon, 9 Aug 2021 07:01:15 +0000 Message-Id: <20210809070124.25641-22-pukkamustard@posteo.net> In-Reply-To: <20210809070124.25641-1-pukkamustard@posteo.net> References: <86pmun5cp5.fsf@posteo.net> <20210809070124.25641-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=1628492622; 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=i14qIn4E+zo7UJVSFwIQ3BxoksEhBYW6gWsWvabpTpQ=; b=URFTe+6lr70b395g6iaNCBEsxb9yfuUh1/C1qMOTcz95hYMdDbuuIZ7Ki6lW5dzEo6UEId 2XNmUynTh5RwaoBWOu/PsPgOEHlS6wwAb3cAsdibaC479hjOQVdeDOIR8UANKni/aBauNA AT+WWtfpVGhGyfTQTypK7p/y5ID2tAaP403G0nLENFunh3iYxGY/A2UX9afGWSGNq+UUcI AR2d4xXo6a54jfE4TKzY3NlWSUS+l1VAJXbf+9ZYKlgxOZeuKRufPrgAp8CEeIzAdZmpfk tCj9Oyebl1p+FKwMXXK3PLLzIYrb1X4diy9ZjPABfLpD+TlDzZbiYm9MP/lV2g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628492622; a=rsa-sha256; cv=none; b=qZx3F+iR32qNE4Kg7NgaUWsO3+fDwreiRr6B+7plGBouKEDEgPuOmtJCY7W4nXh5W5p5js G7GTw0Fq6HMpO6Ct6uhtuJ1+TcCIKiiGehmivTwOPNV/bUb2ME7n/jt522PRlKjX0yAXG+ m+WYUbdWqb04lQJ7VkA3RltQTk0NLYzCBYNAzvQiqY7D8dlqslaVmwdKTprViiRdvLNkIb blrAWadehgEW3SPlfH7/+GIJxpy+yMM008J1LxFcYYqXbGDSVBnIHB3Th8VdC4a68ltztp J3qfjuOenPvImgBUnn2iNGtjhBHHVn1/EqJfJfYBcVhoyKXUdEyE9ncwSM4IqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=n0C4pSZ+; 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.69 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=n0C4pSZ+; 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: B30D5141D2 X-Spam-Score: 3.69 X-Migadu-Scanner: scn1.migadu.com X-TUID: Xz/6Wmvyvvy8 * 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 0a431b2563..7ef2468d9a 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -7853,6 +7853,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