From patchwork Fri Feb 22 23:55:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Famulari X-Patchwork-Id: 1221 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id E480316CA4; Fri, 22 Feb 2019 23:57:12 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 76F9E16C9F for ; Fri, 22 Feb 2019 23:57:12 +0000 (GMT) Received: from localhost ([127.0.0.1]:58591 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxKgp-0005BU-TF for patchwork@mira.cbaines.net; Fri, 22 Feb 2019 18:57:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxKgl-0005BP-J6 for guix-patches@gnu.org; Fri, 22 Feb 2019 18:57:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gxKgj-0001Zt-IY for guix-patches@gnu.org; Fri, 22 Feb 2019 18:57:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35139) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gxKgg-0001Xq-C9 for guix-patches@gnu.org; Fri, 22 Feb 2019 18:57:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gxKgg-0004as-6D for guix-patches@gnu.org; Fri, 22 Feb 2019 18:57:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34624] [PATCH] gnu: Add hpenc. Resent-From: Leo Famulari Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 22 Feb 2019 23:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34624 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34624@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155087978517601 (code B ref -1); Fri, 22 Feb 2019 23:57:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 Feb 2019 23:56:25 +0000 Received: from localhost ([127.0.0.1]:48683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxKg4-0004Zo-Pu for submit@debbugs.gnu.org; Fri, 22 Feb 2019 18:56:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxKg2-0004Zc-UA for submit@debbugs.gnu.org; Fri, 22 Feb 2019 18:56:23 -0500 Received: from lists.gnu.org ([209.51.188.17]:47884) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gxKfw-0000vX-Na for submit@debbugs.gnu.org; Fri, 22 Feb 2019 18:56:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxKfv-00056s-Pj for guix-patches@gnu.org; Fri, 22 Feb 2019 18:56:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gxKft-0000tb-D5 for guix-patches@gnu.org; Fri, 22 Feb 2019 18:56:15 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:38251) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gxKfr-0000h3-Er for guix-patches@gnu.org; Fri, 22 Feb 2019 18:56:11 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 7ECBE21347; Fri, 22 Feb 2019 18:55:58 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 22 Feb 2019 18:55:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; s=mesmtp; bh=8CoixxuHkXCLgIdmxol8fsY fRhvbhRK45DId6I9JZMc=; b=bOUawInMaEw2apk29wo/uUk3oB/Ex1ntMgEkrEH 0EkqUBS9kBc0rJhD+C4xW4+TZlJvszl3tNXyr3O5ddnYRnUrSc4JtY5rCxcL5Spw GKDXKBsTBCqzCjb5uXfp9kr3M1PTs1e+BHQNNrKrj1+8a1GKRpOCu1NAJ0j700QU ktww= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=8CoixxuHkXCLgIdmx ol8fsYfRhvbhRK45DId6I9JZMc=; b=TzB4IEE38LaisPBa7csuW+JBSiNFDjEUY QgJrSsdpbmQ9svGLRelHuX1/owSu1gSiiRtNtmvDON3IJB2wYt2Tp+qRGNl0VCdM U96ou6M5qVDEFv3+2L0aVbl0vzhh2OV1gW3Wg2i9hcISa5p3mrvznGBvBKwNJmvc 1fqc9ObwKa1h6ZP2ZKZ74diveo0GLVYJlz6Mqf6S4P/FMaIxGWuFiWExH9ooaWOf q/2Lxks8GMeApCJhcXgPT+mX52HMH9xgJgB+CPhwGibo/qNE66xYKNVovCid2YtX RxjenBgR3OTHoXtWnEb1AMFY/y/CjeZDhF8ZZaIIcUkP7R0rTOc1A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddruddugddtleculddtuddrgedtledrtddtmd cutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepnfgvohcuhfgrmhhulhgrrhhiuceolhgvohesfhgrmhhulhgrrhhi rdhnrghmvgeqnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepudejvddrhe ekrddvtddtrdejjeenucfrrghrrghmpehmrghilhhfrhhomheplhgvohesfhgrmhhulhgr rhhirdhnrghmvgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from jasmine.lan (unknown [172.58.200.77]) by mail.messagingengine.com (Postfix) with ESMTPA id E975F10319 for ; Fri, 22 Feb 2019 18:55:57 -0500 (EST) From: Leo Famulari Date: Fri, 22 Feb 2019 18:55:54 -0500 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/crypto.scm (hpenc): New variable. --- gnu/packages/crypto.scm | 48 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index 92333753be..270191ab1a 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -68,6 +68,7 @@ #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system perl) + #:use-module (guix build utils) #:use-module (srfi srfi-1) #:use-module (srfi srfi-26)) @@ -927,3 +928,50 @@ Features: that allows for importing token seeds, generating token codes, and various utility/testing functions.") (license license:lgpl2.1+))) + +(define-public hpenc + (package + (name "hpenc") + (version "3.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vstakhov/hpenc") + (commit version))) + (sha256 + (base32 + "1fb5yi3d2k8kd4zm7liiqagpz610y168xrr1cvn7cbq314jm2my1")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No test suite + #:make-flags + (list (string-append "PREFIX=" (assoc-ref %outputs "out")) + ;; Build the program and the docs. + "SUBDIRS=src doc") + #:phases + (modify-phases %standard-phases + (delete 'configure) ; No ./configure script + (add-after 'unpack 'patch-path + (lambda _ + (substitute* '("src/Makefile" "doc/Makefile") + (("/usr/bin/install") + "install")))) + (add-before 'install 'make-output-directories + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (man1 (string-append out "/share/man/man1"))) + (mkdir-p bin) + (mkdir-p man1) + #t)))))) + (inputs + `(("libsodium" ,libsodium) + ("openssl" ,openssl))) + (synopsis "High-performance command-line tool for stream encryption") + (description "Hpenc is a command-line tool for performing authenticated +encryption (AES-GCM and ChaCha20-Poly1305) of streaming data. It does not +perform an asymmetric key exchange, instead requiring the user to distribute +pre-shared keys out of band. It is designed to handle large amounts of data +quickly by using all your CPU cores and hardware acceleration.") + (home-page "https://github.com/vstakhov/hpenc") + (license license:bsd-3)))