From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8Ls1Hi/3bmExaAAAgWs5BA (envelope-from ) for ; Tue, 19 Oct 2021 18:49:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id gEa2GS/3bmFqXwAAbx9fmQ (envelope-from ) for ; Tue, 19 Oct 2021 16:49:51 +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 28A0F2C587 for ; Tue, 19 Oct 2021 18:49:51 +0200 (CEST) Received: from localhost ([::1]:39096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcsJB-0007Dy-PW for larch@yhetil.org; Tue, 19 Oct 2021 12:49:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcrmW-0007iq-L5 for guix-patches@gnu.org; Tue, 19 Oct 2021 12:16:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40245) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mcrmW-0006b7-6W for guix-patches@gnu.org; Tue, 19 Oct 2021 12:16:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mcrmW-0005Ll-1f for guix-patches@gnu.org; Tue, 19 Oct 2021 12:16:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51289] [PATCH 3/4] gnu: Add BLAKE3 Rust implementation. Resent-From: Leo Famulari Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Oct 2021 16:16:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51289 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 51289@debbugs.gnu.org Received: via spool by 51289-submit@debbugs.gnu.org id=B51289.163466015720516 (code B ref 51289); Tue, 19 Oct 2021 16:16:03 +0000 Received: (at 51289) by debbugs.gnu.org; 19 Oct 2021 16:15:57 +0000 Received: from localhost ([127.0.0.1]:51787 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcrmP-0005Kl-Ch for submit@debbugs.gnu.org; Tue, 19 Oct 2021 12:15:57 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:60395) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcrmD-0005Jd-Qv for 51289@debbugs.gnu.org; Tue, 19 Oct 2021 12:15:50 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id C9A875C0207; Tue, 19 Oct 2021 12:15:40 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 19 Oct 2021 12:15:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=from:to:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mesmtp; bh=iudTJG/MdS5gTVZ9Ah2Akvy7QTNtuiQyNAXYEH8oqaI=; b=OEfpOX6087xk zpjXnIDWsA11dub+aRq9kJZbAqRi7076zpzc3CiB43/heBbR/cDDGQgbdMVsTrTC rlC+paamQ++Yw6Vc2OvniqS7+fIkRv0dcPdPPp2+EaMJV2ldvD8VC1akL5FjUCdH u7uXyEwI2KNprNGaq7BZH1KBeBYfkQ0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=iudTJG/MdS5gTVZ9Ah2Akvy7QTNtuiQyNAXYEH8oq aI=; b=memzadSgT5z/NsMHqnh6tts1mAp8HmAcGcxhg/jl7AYJXc54MooJy2Y1t DEEzq65fBk7TpJezKeW+DU6iXs3p/2kwzhCKC2xnNT3/p/tB5K4TQZuk33w8Wt05 +mjLXjaTBp7Ef95FRA7DQGof2WINfPSd+Ggn61xqQcA15niE/xoeoC3n1ANMlthA RVgm57Q/l7dQ3w1MYSNXriH9cXNfae4bL1fIlKlVAKOXE0kSfY7L26BUsGEa4OmK dGk/2tqBvNZSnMaBjBQrWHlhirnkvfXCsGX3w/pKrBrWgEeG4zZee94uDmm5Oci5 r3U09091+GknriAYhCmM9yvjR/9Ug== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddvvddgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhggtgfgsehtke ertdertdejnecuhfhrohhmpefnvghoucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhl rghrihdrnhgrmhgvqeenucggtffrrghtthgvrhhnpefhgfefuddtfeduuefhtdelgeeite efueeuheduhfeggfffgfevheeufedvgeejvdenucffohhmrghinhepghhithhhuhgsrdgt ohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplh gvohesfhgrmhhulhgrrhhirdhnrghmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for <51289@debbugs.gnu.org>; Tue, 19 Oct 2021 12:15:40 -0400 (EDT) From: Leo Famulari Date: Tue, 19 Oct 2021 12:15:34 -0400 Message-Id: X-Mailer: git-send-email 2.33.1 In-Reply-To: References: 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: , 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=1634662191; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=iudTJG/MdS5gTVZ9Ah2Akvy7QTNtuiQyNAXYEH8oqaI=; b=J8PSNhxuByAWxTHuGp653LYkw436axYe/xrpDU80ZMnVRR04ijtW/DnHffPKVOJLB3RHfq Pu+IiZwZINRrITXt5gJONiJNyDnWVwrieZpZjbiHu0veRwIIbPHlBmEf/R419MXM0TEdzF i2DogENtPYQUXBsGn+3VIVFCvxe93guezpf6/5YZLV/XTTLSJGjjFpTg6Ly72HQdWR9ENE uZxMmHpPTLyWwXOVNeGOCBzqDLpL3SnDP8370LvQMscJierQKxN3DWmeYbhOUhV/Ruh9zw BMQCbH3bXZiEte+mSpHhxyf6XBeAZLYbQ06MtP+l83kdz2/k9ygvWlcZjmHgGg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634662191; a=rsa-sha256; cv=none; b=rRGYEKO5gmQt0QV6sglOKIEff6S6WnhIo6U6oZ8uvBBXL7J6PBnfqI25FmqPQEjfXpO8eE jmULfsp8y3LuPi8NvvUdzHznqwhQcLu3vZxbqZlGpDWUNFMTAvGiWD45OlNC9Ph6F0JRzX Yhnq/zsgqs+Oq09TWYsgDF+4SNIK7kpAvM9SfIw7HC0wr44gihw2Rdqig3x/naez0ZWhCV sfoCL+nxeUvnsAUzt4Mh7skJ7+yW9HHCG0MtqpSCoLHYPxEWPuFMgCuDbIdO0y0lOnq2OO i6kBEUFLMz/kvsDbnahgSRAl3aHlx9Jkizr7b6Fc1xtjSCJO9SfamMwSfctGqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=OEfpOX60; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=memzadSg; dmarc=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: -0.93 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=OEfpOX60; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=memzadSg; dmarc=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: 28A0F2C587 X-Spam-Score: -0.93 X-Migadu-Scanner: scn1.migadu.com X-TUID: Rbm5wFl+lFbX * gnu/packages/crypto.scm (rust-blake3-0.3): New variable. --- gnu/packages/crypto.scm | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index 823b888b82..3b5957ef23 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -1,7 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2014 David Thompson ;;; Copyright © 2015, 2017, 2018, 2019 Ricardo Wurmus -;;; Copyright © 2016, 2017, 2018, 2019 Leo Famulari +;;; Copyright © 2016, 2017, 2018, 2019, 2021 Leo Famulari ;;; Copyright © 2016 Lukas Gradl ;;; Copyright © 2016–2021 Tobias Geerinckx-Rice ;;; Copyright © 2016, 2017 Nikita @@ -1500,3 +1500,37 @@ (define-public cryfs additional security and privacy measures such as hiding file sizes and directory structure. However CryFS is not considered stable yet by the developers.") (license license:lgpl3+))) + +(define-public rust-blake3-0.3 + (package + (name "rust-blake3") + ;; Version 1 requires Rust >= 1.51. + ;; + (version "0.3.8") + (source + (origin + (method url-fetch) + (uri (crate-uri "blake3" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1cr5l5szgxm632px41kavl6cgils8h6yhdfkm6jsc5jgiivqai5n")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-arrayref" ,rust-arrayref-0.3) + ("rust-arrayvec" ,rust-arrayvec-0.5) + ("rust-cc" ,rust-cc-1) + ("rust-cfg-if" ,rust-cfg-if-0.1) + ("rust-constant-time-eq" ,rust-constant-time-eq-0.1) + ("rust-crypto-mac" ,rust-crypto-mac-0.8) + ("rust-digest" ,rust-digest-0.9) + ("rust-rayon" ,rust-rayon-1)))) + (home-page "https://github.com/BLAKE3-team/BLAKE3") + (synopsis "BLAKE3 hash function Rust implementation") + (description "This crate provides the official Rust implementation of the +BLAKE3 cryptographic hash function. BLAKE3 is faster than MD5, SHA-1, SHA-2, +SHA-3, and BLAKE2.") + ;; Users may choose between these two licenses when redistributing the + ;; program provided by this package. + (license (list license:cc0 license:asl2.0)))) -- 2.33.1