From d4f6ea25251a5cf38e945278b790eda414c241b1 Mon Sep 17 00:00:00 2001 From: Allan Adair Date: Fri, 4 Mar 2022 12:01:42 +0100 Subject: gnu: Add libxcrypt. * gnu/packages/crypto.scm (libxcrypt): New variable. Signed-off-by: Nicolas Goaziou --- gnu/packages/crypto.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'gnu/packages/crypto.scm') diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index f07be01c97..0a7e401d54 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -22,6 +22,7 @@ ;;; Copyright © 2021 Ellis Kenyő ;;; Copyright © 2021 Maxime Devos ;;; Copyright © 2021 Brendan Tildesley +;;; Copyright © 2022 Allan Adair ;;; ;;; This file is part of GNU Guix. ;;; @@ -73,6 +74,7 @@ (define-module (gnu packages crypto) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) #:use-module (gnu packages python-check) + #:use-module (gnu packages python-crypto) #:use-module (gnu packages readline) #:use-module (gnu packages search) #:use-module (gnu packages serialization) @@ -1607,3 +1609,37 @@ (define-public b3sum ;; Users may choose between these two licenses when redistributing the ;; program provided by this package. (license (list license:cc0 license:asl2.0)))) + +(define-public libxcrypt + (package + (name "libxcrypt") + (version "4.4.28") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/besser82/libxcrypt") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0pacj0s1hlv22iz0k2bkysjslc6rbrgmvmsr02qq17lp4d2gw5rs")))) + (build-system gnu-build-system) + (native-inputs + (list autoconf + automake + libtool + perl + pkg-config + python-3 + python-passlib)) + (synopsis + "Extended crypt library for descrypt, md5crypt, bcrypt, and others") + (description + "libxcrypt is a modern library for one-way hashing of +passwords. It supports a wide variety of both modern and historical +hashing methods: yescrypt, gost-yescrypt, scrypt, bcrypt, sha512crypt, +sha256crypt, md5crypt, SunMD5, sha1crypt, NT, bsdicrypt, bigcrypt, and +descrypt.") + (home-page "https://github.com/besser82/libxcrypt") + (license license:lgpl2.1))) -- cgit v1.2.3 From 57fe92dded637b4f3530acfaa33083ddb040f843 Mon Sep 17 00:00:00 2001 From: Brendan Tildesley Date: Fri, 11 Mar 2022 16:56:19 +1100 Subject: gnu: crypto++: Update to 8.6.0. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/crypto.scm (crypto++): Update to 8.6.0. Note: This release includes a fix for a bug where code using AVX2 instructions produced incorrect encrypted files: https://github.com/weidai11/cryptopp/issues/1069 Signed-off-by: Ludovic Courtès --- gnu/packages/crypto.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gnu/packages/crypto.scm') diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index 0a7e401d54..d8e7941903 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -21,7 +21,7 @@ ;;; Copyright © 2020 pukkamustard ;;; Copyright © 2021 Ellis Kenyő ;;; Copyright © 2021 Maxime Devos -;;; Copyright © 2021 Brendan Tildesley +;;; Copyright © 2021, 2022 Brendan Tildesley ;;; Copyright © 2022 Allan Adair ;;; ;;; This file is part of GNU Guix. @@ -733,7 +733,7 @@ (define-public perl-math-random-secure (define-public crypto++ (package (name "crypto++") - (version "8.5.0") + (version "8.6.0") (source (origin (method git-fetch) (uri @@ -745,7 +745,7 @@ (define-public crypto++ (file-name (git-file-name name version)) (sha256 (base32 - "0in7rlazq91vfi519g9wr7bh87hii47cimxv7fmj0f88vhjaidq3")))) + "1vm821wpx59ccz6gr4xplqpxj3f1qq3jijyybj2g4npqmmldhx3b")))) (build-system gnu-build-system) (arguments `(#:make-flags -- cgit v1.2.3 From 5d4af22ef21b71556e0f9a2ddc2d33366858813b Mon Sep 17 00:00:00 2001 From: Brendan Tildesley Date: Thu, 10 Mar 2022 20:49:44 +1100 Subject: gnu: cryfs: Update to 0.11.2. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/crypto.scm (cryfs): Update to 0.11.2. [arguments]: Fix build with boost 1.77 Signed-off-by: Ludovic Courtès --- gnu/packages/crypto.scm | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'gnu/packages/crypto.scm') diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index d8e7941903..cf8bc111e1 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -1461,7 +1461,7 @@ (define-public transcrypt (define-public cryfs (package (name "cryfs") - (version "0.11.0") + (version "0.11.2") (source (origin (method url-fetch) @@ -1469,7 +1469,7 @@ (define-public cryfs "https://github.com/cryfs/cryfs/releases/download/" version "/cryfs-" version ".tar.xz")) (sha256 - (base32 "0dxphbj5sssm82rkkdb71algrcki16qlpzlvrjyvvm6b7x7zi0sm")))) + (base32 "1ggizlacm4fccsw9syy2763ihxnby6cdh3mhhraxy8bmsdjza7lm")))) (build-system cmake-build-system) (arguments '(#:modules ((guix build cmake-build-system) @@ -1485,7 +1485,7 @@ (define-public cryfs "/cmake-utils/DependenciesFromLocalSystem.cmake")) #:phases (modify-phases %standard-phases - (add-before 'configure 'fix-configure + (add-before 'configure 'fix-up (lambda* (#:key tests? #:allow-other-keys) ;; Remove junk directory that breaks the build (chdir "..") (delete-file-recursively ".circleci") @@ -1496,7 +1496,14 @@ (define-public cryfs (when tests? (substitute* "CMakeLists.txt" (("option.BUILD_TESTING .build test cases. OFF.") - "option(BUILD_TESTING \"build test cases\" ON)"))))) + "option(BUILD_TESTING \"build test cases\" ON)"))) + ;; work around a missing import fixed upstream in boost 1.78 + ;; See https://github.com/boostorg/process/issues/213 + (substitute* (find-files "." "subprocess.cpp$") + (("#include .*" line) + (string-append + "#include \n" + line))))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? -- cgit v1.2.3 From 386adb6df0e00e7170df0cdfaf0e04c38d0f3e11 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Fri, 18 Mar 2022 12:56:28 -0400 Subject: gnu: b2sum: Produce generic binaries and enable tuning. * gnu/packages/crypto.scm (b2sum)[arguments]: Add 'de-tune' phase. [properties]: Mark the package as tunable. --- gnu/packages/crypto.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'gnu/packages/crypto.scm') diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index cf8bc111e1..63be51f86a 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -873,6 +873,11 @@ (define-public b2sum (add-before 'build 'change-directory (lambda _ (chdir "b2sum"))) + ;; Produce generic binaries + (add-after 'change-directory 'de-tune + (lambda _ + (substitute* "makefile" + ((" -march=native") "")))) (delete 'configure)))) ; No ./configure script (home-page "https://www.blake2.net/") (synopsis "BLAKE2 checksum tool") @@ -880,7 +885,11 @@ (define-public b2sum SHA-1, SHA-2, and SHA-3, yet is at least as secure as SHA-3.") ;; You may also choose to redistribute this program as Apache 2.0 or the ;; OpenSSL license. See 'b2sum/b2sum.c' in the source distribution. - (license license:cc0)))) + (license license:cc0) + ;; There is a significant speedup when the compiler generates + ;; instructions tuned to the CPU of the running machine: + ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51198#22 + (properties '((tunable? . #true)))))) (define-public rhash (package -- cgit v1.2.3