From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id AK/xDthJTWCHNwAA0tVLHw (envelope-from ) for ; Sat, 13 Mar 2021 23:25:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eB2hCthJTWAsXwAAbx9fmQ (envelope-from ) for ; Sat, 13 Mar 2021 23:25:12 +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 711229D9D for ; Sun, 14 Mar 2021 00:25:11 +0100 (CET) Received: from localhost ([::1]:48004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLDd8-0001h7-Gj for larch@yhetil.org; Sat, 13 Mar 2021 18:25:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLDd0-0001ge-On for guix-patches@gnu.org; Sat, 13 Mar 2021 18:25:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49348) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lLDd0-0004Vr-Gi for guix-patches@gnu.org; Sat, 13 Mar 2021 18:25:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lLDd0-00039y-9U for guix-patches@gnu.org; Sat, 13 Mar 2021 18:25:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#40263] LibDecaf References: <82283f5b8a03732fd615c0c8a63beaac@disroot.org> In-Reply-To: <82283f5b8a03732fd615c0c8a63beaac@disroot.org> Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 13 Mar 2021 23:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40263 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 40263@debbugs.gnu.org, kuba@kadziolka.net Received: via spool by 40263-submit@debbugs.gnu.org id=B40263.161567788612120 (code B ref 40263); Sat, 13 Mar 2021 23:25:02 +0000 Received: (at 40263) by debbugs.gnu.org; 13 Mar 2021 23:24:46 +0000 Received: from localhost ([127.0.0.1]:60894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLDck-00039Q-Gr for submit@debbugs.gnu.org; Sat, 13 Mar 2021 18:24:46 -0500 Received: from out1.migadu.com ([91.121.223.63]:63287) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLDch-00039G-RS for 40263@debbugs.gnu.org; Sat, 13 Mar 2021 18:24:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1615677882; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=Aw5/MbrlMqi8RzhsMOYIupVjrhG1gSDTmL4pDyD714k=; b=e4ql7CXmjNivcBAnn+XxwmGVkfe5+BFTuNG23GcjYVwcIlLmTgw/EDoHcSbv0C6WT3e5dq apLu8PSiM+8mIK4z4GjO/g2jV5MRC6FIdh3AhopMoYrADWfqUxrQFuuxHBYo+BK+YAYyD2 Q7qb/Mx+l3Yl18+BexgdBGPytinAiQz57xnLa+zPdVSXezBibn+BPwH1PbJieyEJfDfDMP AV4JNIrJb50EL7rz2tXrleBaXZ0IIPBB+VOTpt1hnl7StF/aYy7KXZWWUmKq2i6qKvocVY N7xv0uKxuGfqqQlSfL0c28J3pImRQ/Gl5gBNE8/MSRAMLGWV6r1aZDAGEKSmDg== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. Message-ID: <94313147-99b2-80ed-1d91-80353807c877@raghavgururajan.name> Date: Sat, 13 Mar 2021 18:24:39 -0500 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xxnph0PjUV620IGa3JJaix5vgl10ytlcu" X-Migadu-Auth-User: rg@raghavgururajan.name 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" Reply-to: Raghav Gururajan X-ACL-Warn: , Raghav Gururajan via Guix-patches From: Raghav Gururajan via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615677911; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: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=Aw5/MbrlMqi8RzhsMOYIupVjrhG1gSDTmL4pDyD714k=; b=XRPzTn0J3AhGzr6BnNOTfcOEcNTCy6AHc2AqVbiSwmIAIy/Q1hmqVw+TeXXeJmjQSk8aOr QwjM2CMyjphlsYkIvPFz4X7LTyWTfHU8I3pqp+GI9zXRsZtGDAYbGbcAoEdRgwtyI9YZ+V y66nkzy+emZFlk3JfDQcA0UdvKcc+i1/NXQ6xrRAVwrIeUVhymlJqGlaUXTX9B2Z+bwI81 QothtzXr3HGWEoG/gPm6TEJr28esJNOSr7Ux7dI3znY1Bqj67JsUD82HL5gie7e7wYXq02 oP3QyZKQ0IStzsOJr/w/Cj09KI7SvW0/SAuyah5nGDdPGUR6yU6WKX6heRU6tw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615677911; a=rsa-sha256; cv=none; b=CcYmNewW16bZD9pI/ItracTUokoXwhhPQFt/g2WdzrJI8UOrdyLewG3PhCI79NfSQxLe55 mRLf3aqlCrNdscEsYKbJf0wHYLjRln43T37oSX3/oQgJgNxSiFIYxTN82/niJvfdT2PmTZ VrHSWdVSDogtsrxuXk2kgHoKGeHhC8DRPMukb28Bpfh/MNa1M/pZBCTEkQqPecVGLTnVwY Z9FcmQknsxg/GMfnGDFEywO3hCVHAQ5ZmG74tv6XhylU9y4A3/Y0QDM4RQv/TLPOD34Xsr xC/n4AL0Qca0wAGBc5g0037VjT9MOx/uFP1+hc3mUEbBBLtnlrBIz9FjRtquXA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=raghavgururajan.name header.s=key1 header.b=e4ql7CXm; dmarc=pass (policy=none) header.from=gnu.org; 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: -5.00 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=raghavgururajan.name header.s=key1 header.b=e4ql7CXm; dmarc=pass (policy=none) header.from=gnu.org; 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: 711229D9D X-Spam-Score: -5.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: vfTuy7FAQ4gx This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --xxnph0PjUV620IGa3JJaix5vgl10ytlcu Content-Type: multipart/mixed; boundary="TMd1g4sVHNiig4omghEeo7ems4xrsX9z8"; protected-headers="v1" From: Raghav Gururajan To: 40263@debbugs.gnu.org, kuba@kadziolka.net Message-ID: <94313147-99b2-80ed-1d91-80353807c877@raghavgururajan.name> Subject: Re: LibDecaf --TMd1g4sVHNiig4omghEeo7ems4xrsX9z8 Content-Type: multipart/mixed; boundary="------------020B030264393EF423E2C458" Content-Language: en-US This is a multi-part message in MIME format. --------------020B030264393EF423E2C458 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi Jakub! So sorry, I never received the email. Just came across your response at=20 https://issues.guix.gnu.org. *** QUOTE *** Thanks for the patch! If I may ask, what is the point of dot and=20 doxygenin the native-inputs? They don't seem to affect the result of the = buildin any way. *** QUOTE *** They are for generating documentation. It was not enabled ,but it is now = (see below). I have revised the patch to involve the following: [1] Update to 1.0.1. [2] Enable documentation. [3] Enable python binding. Please find the attachment. Regards, RG. --------------020B030264393EF423E2C458 Content-Type: text/x-patch; charset=UTF-8; name="0001-gnu-Add-libdecaf.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-gnu-Add-libdecaf.patch" =46rom 8207939ae9d4a8a97db2b1ea2e7fd951e3bb676f Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sat, 13 Mar 2021 17:08:57 -0500 Subject: [PATCH] gnu: Add libdecaf. * gnu/packages/crypto.scm (libdecaf): New variable. --- gnu/packages/crypto.scm | 63 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index 0000e7fbf2..3959464d56 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -47,9 +47,11 @@ #:use-module (gnu packages compression) #:use-module (gnu packages crates-io) #:use-module (gnu packages cryptsetup) + #:use-module (gnu packages documentation) #:use-module (gnu packages gettext) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) + #:use-module (gnu packages graphviz) #:use-module (gnu packages image) #:use-module (gnu packages kerberos) #:use-module (gnu packages libbsd) @@ -88,6 +90,67 @@ #:use-module (srfi srfi-1) #:use-module (srfi srfi-26)) =20 +(define-public libdecaf + (package + (name "libdecaf") + (version "1.0.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "git://git.code.sf.net/p/ed448goldilocks/code")= + (commit + (string-append "v" version)))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "1ajgmyvc6a4m1h2hg1g4wz7ibx10x1xys9m6ancnmmf1f2sr= lfly")))) + (build-system cmake-build-system) + (outputs '("out" "python" "doc")) + (arguments + `(#:configure-flags '("-DENABLE_STATIC=3DOFF") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-python-binding + (lambda _ + (substitute* "python/setup.py" + (("gmake") + "make") + (("'\\.\\.', 'build', 'lib', 'libdecaf\\.so'") + "'..', '..', 'build', 'src', 'libdecaf.so'")) + #t)) + (add-after 'install 'install-python-binding + (lambda* (#:key outputs #:allow-other-keys) + (with-directory-excursion "../source/python" + (invoke "python" "setup.py" "install" + (string-append "--prefix=3D" (assoc-ref outputs "= python")) + "--root=3D/")) + #t)) + (add-after 'install-python-binding 'install-documentation + (lambda* (#:key outputs #:allow-other-keys) + (invoke "make" "doc") + (let* ((doc (assoc-ref outputs "doc")) + (dest (string-append doc "/share/doc"))) + (copy-recursively "doc" dest)) + #t))))) + (native-inputs + `(("dot" ,graphviz) + ("doxygen" ,doxygen) + ("python" ,python-wrapper))) + (inputs + `(("python2" ,python-2.7) + ("python3" ,python))) + (synopsis "Decaf Elliptic Curve Library") + (description "The libdecaf library is an implementation of elliptic = curve +cryptography using the Montgomery and Edwards curves Curve25519, Ed25519= , +Ed448-Goldilocks and Curve448, using the Decaf encoding.") + (home-page "http://ed448goldilocks.sourceforge.net/") + (license + (list + ;; Library. + license:expat + ;; Binding. + license:bsd-2)))) + (define-public libsodium (package (name "libsodium") --=20 2.30.2 --------------020B030264393EF423E2C458-- --TMd1g4sVHNiig4omghEeo7ems4xrsX9z8-- --xxnph0PjUV620IGa3JJaix5vgl10ytlcu Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYE1JtwUDAAAAAAAKCRBfWBZkf4vlUbu1 AQDlo1PDAXrKMNV3yFltu/3yHHhIbyQ8fpGRH/fxzw028AEAhMJsci230K1aW4gtdSTk/t8VYJQ+ GcY1s/KlT0yX/w8= =V1aH -----END PGP SIGNATURE----- --xxnph0PjUV620IGa3JJaix5vgl10ytlcu--