From patchwork Sat Jan 20 09:58:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 59194 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 73D3827BBEA; Sat, 20 Jan 2024 10:00:31 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4E41727BBE2 for ; Sat, 20 Jan 2024 10:00:30 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rR89D-0005g4-93; Sat, 20 Jan 2024 05:00:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rR891-0005Sn-Bl for guix-patches@gnu.org; Sat, 20 Jan 2024 05:00:07 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rR891-0002eN-2k for guix-patches@gnu.org; Sat, 20 Jan 2024 05:00:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rR893-0005Ni-Of; Sat, 20 Jan 2024 05:00:09 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68605] [PATCH 24/38] gnu: go-github-com-minio-sha256-simd: Move to (gnu packages golang-crypto). Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: cox.katherine.e+guix@gmail.com, sharlatanus@gmail.com, guix-patches@gnu.org Resent-Date: Sat, 20 Jan 2024 10:00:09 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68605 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68605@debbugs.gnu.org Cc: Sharlatan Hellseher , Katherine Cox-Buday , Sharlatan Hellseher X-Debbugs-Original-Xcc: Katherine Cox-Buday , Sharlatan Hellseher Received: via spool by 68605-submit@debbugs.gnu.org id=B68605.170574479019925 (code B ref 68605); Sat, 20 Jan 2024 10:00:09 +0000 Received: (at 68605) by debbugs.gnu.org; 20 Jan 2024 09:59:50 +0000 Received: from localhost ([127.0.0.1]:32802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR88j-0005BC-Ep for submit@debbugs.gnu.org; Sat, 20 Jan 2024 04:59:50 -0500 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:59614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR883-000546-3c for 68605@debbugs.gnu.org; Sat, 20 Jan 2024 04:59:09 -0500 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-40e884ac5c8so17961925e9.2 for <68605@debbugs.gnu.org>; Sat, 20 Jan 2024 01:59:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705744738; x=1706349538; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=M2M4EPzUow3kldlqiWdjgDz86ZmMRL6T2MhDIyUgufM=; b=Df9W7K+6Qy8NtaaelJI4rsfJfpxsn5zbyvIWQC8ko2iXA6Jbh4obg5wqc4Rhh8HznO 2S1KpQRpm3fuyyeS07UfumhfTYE4JsRY6r2ufICwBwHxu4u6P71P3HvWBtlEeLzIAlx4 UmBF0e7U+tR4pTLjnll7qT2XIbcsyxLq8Wu3UvUZBAZRgirP4u5QShHOGgcq+SK25GV+ i7+UT4RHadcf3CySLS/+QCDzZCwD738uJIqBECWofoBtVU7iG46Zyh8YcMUpRB2+0k5A vcL6Qr2in98M5Hxp7v0tYpMDjVbcr90xTzi7SiLojFGHnYffAXEIlGVyY8ErzN/iKSdC 2FWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705744738; x=1706349538; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=M2M4EPzUow3kldlqiWdjgDz86ZmMRL6T2MhDIyUgufM=; b=ci1V50z526ZOz0kt3JGpiYm2YWIDPHAz1njDiNdrj+WJNOhI1W84NuPQXFkWOs+N34 /nqN3p4ZuEn8cIlxQ/oKbhKqp9eXkLIw6hgCJZXOPzT0qWnLkmNhLbDR+2A+5d6mdTDi jNLRs8czndI4hNww/eC8wkBCZfLlHK5JpJnPQXpR419ggX/q50OdT3AG+iFuh5YwKsBT lxuVmh9QLvNao54ZBl4jpROrJm7tAip4scKdRlkg6LBwQFQtttDVJuLNbd5ck4yUYSIg KdcsseLjOpEkbG3yyItmnXMpCJfSvq7pQwH7GlMoui/ZtOpLsVsq07JehNvVSghyK/MB SVug== X-Gm-Message-State: AOJu0Ywhn6+5WnKVYzFp4D8Aixq0NhCu8az5Vkbek+KDDwItZDVTpjI+ YmgQNARourkm9aYf9gNRa5gnvAk7427FfGcr+sdlyEgVQVI9cZoDFoKnn7MmOY4= X-Google-Smtp-Source: AGHT+IHgwykLiD04LYC7Z0wTaxz7XGfmiM+QA5I/GYZQxeqraVwaYqSrOB0IXOrDynZLReh/LhvTFg== X-Received: by 2002:a05:600c:21c9:b0:40e:4561:d7af with SMTP id x9-20020a05600c21c900b0040e4561d7afmr312166wmj.286.1705744738568; Sat, 20 Jan 2024 01:58:58 -0800 (PST) Received: from localhost.localdomain (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id f6-20020a05600c4e8600b0040d6ffae526sm36066695wmq.39.2024.01.20.01.58.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 01:58:58 -0800 (PST) From: Sharlatan Hellseher Date: Sat, 20 Jan 2024 09:58:16 +0000 Message-ID: <1f8326aa79e9afa499010a7b17616c62aa717b7c.1705743628.git.sharlatanus@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/golang.scm (go-github-com-minio-sha256-simd): Move from here ... * gnu/packages/golang-crypto.scm: ... to here. * gnu/packages/backup.scm: Add (gnu packages golang-crypto) to used modules. Change-Id: I4e57a1bee0c7e19a9bb60ce5ff72ccd5e42deea5 --- gnu/packages/backup.scm | 1 + gnu/packages/golang-crypto.scm | 34 ++++++++++++++++++++++++++++++++++ gnu/packages/golang.scm | 34 ---------------------------------- 3 files changed, 35 insertions(+), 34 deletions(-) diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm index 3126464347..f160efd37d 100644 --- a/gnu/packages/backup.scm +++ b/gnu/packages/backup.scm @@ -71,6 +71,7 @@ (define-module (gnu packages backup) #:use-module (gnu packages glib) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) + #:use-module (gnu packages golang-crypto) #:use-module (gnu packages golang-web) #:use-module (gnu packages gperf) #:use-module (gnu packages gtk) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 23c47712a5..c57c525a49 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2018 Pierre Neidhardt +;;; Copyright © 2019 Ricardo Wurmus ;;; Copyright © 2019 Vagrant Cascadian ;;; Copyright © 2019, 2020 Leo Famulari ;;; Copyright © 2021 Arun Isaac @@ -379,6 +380,39 @@ (define-public go-github-com-marten-seemann-qtls the Go standard library's TLS 1.3 implementation.") (license license:bsd-3))) +(define-public go-github-com-minio-sha256-simd + (package + (name "go-github-com-minio-sha256-simd") + (version "0.1.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/minio/sha256-simd") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1j0iqsckm97g4l79vd4mc7apbmkdar23jpzqpnpdhwpfd834j8lp")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/minio/sha256-simd")) + (home-page "https://github.com/minio/sha256-simd") + (synopsis "Accelerate SHA256 computations in pure Go") + (description "Accelerate SHA256 computations in pure Go using AVX512 and +AVX2 for Intel and ARM64 for ARM. On AVX512 it provides an up to 8x +improvement (over 3 GB/s per core) in comparison to AVX2. + +This package is designed as a replacement for @command{crypto/sha256}. For +Intel CPUs it has two flavors for AVX512 and AVX2 (AVX/SSE are also +supported). For ARM CPUs with the Cryptography Extensions, advantage is taken +of the SHA2 instructions resulting in a massive performance improvement. + +This package uses Golang assembly. The AVX512 version is based on the Intel's +\"multi-buffer crypto library for IPSec\" whereas the other Intel +implementations are described in \"Fast SHA-256 Implementations on Intel +Architecture Processors\" by J. Guilford et al.") + (license license:asl2.0))) + (define-public go-github-com-multiformats-go-multihash (let ((commit "97cdb562a04c6ef66d8ed40cd62f8fbcddd396d6") (revision "0")) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 6eb14a8099..0ea028295f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5596,40 +5596,6 @@ (define-public go-github-com-btcsuite-btclog implementing the same interface.") (license license:isc)))) -(define-public go-github-com-minio-sha256-simd - (package - (name "go-github-com-minio-sha256-simd") - (version "0.1.1") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/minio/sha256-simd") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1j0iqsckm97g4l79vd4mc7apbmkdar23jpzqpnpdhwpfd834j8lp")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/minio/sha256-simd")) - (home-page "https://github.com/minio/sha256-simd") - (synopsis "Accelerate SHA256 computations in pure Go") - (description "Accelerate SHA256 computations in pure Go using AVX512 and -AVX2 for Intel and ARM64 for ARM. On AVX512 it provides an up to 8x -improvement (over 3 GB/s per core) in comparison to AVX2. - -This package is designed as a replacement for @command{crypto/sha256}. For -Intel CPUs it has two flavors for AVX512 and AVX2 (AVX/SSE are also -supported). For ARM CPUs with the Cryptography Extensions, advantage is taken -of the SHA2 instructions resulting in a massive performance improvement. - -This package uses Golang assembly. The AVX512 version is based on the Intel's -\"multi-buffer crypto library for IPSec\" whereas the other Intel -implementations are described in \"Fast SHA-256 Implementations on Intel -Architecture Processors\" by J. Guilford et al.") - (license license:asl2.0))) - (define-public go-github-com-mr-tron-base58 (let ((commit "d724c80ecac7b49e4e562d58b2b4f4ee4ed8c312") (revision "0"))