summaryrefslogtreecommitdiff
path: root/gnu/packages/crypto.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/crypto.scm')
-rw-r--r--gnu/packages/crypto.scm116
1 files changed, 9 insertions, 107 deletions
diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index 4c45146bf8..e85017ee2d 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -58,8 +58,6 @@
#:use-module (gnu packages check)
#:use-module (gnu packages compression)
#:use-module (gnu packages cpp)
- #:use-module (gnu packages crates-crypto)
- #:use-module (gnu packages crates-io)
#:use-module (gnu packages cryptsetup)
#:use-module (gnu packages curl)
#:use-module (gnu packages documentation)
@@ -292,20 +290,18 @@ OpenBSD tool of the same name.")
(define-public rust-minisign
(package
(name "rust-minisign")
- (version "0.7.5")
+ (version "0.7.9")
(source
(origin
(method url-fetch)
(uri (crate-uri "minisign" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "1lmp83bxdg53c4n35fbwr3rkh6178y75fwsn25hf1kn62f2gbdnj"))))
+ (base32 "1rqdmnzzak7svsgcjnrb7rrbq4gv378alcnmynfq47js863i6m16"))))
(build-system cargo-build-system)
(arguments
- `(#:cargo-inputs
- (("rust-getrandom" ,rust-getrandom-0.2)
- ("rust-rpassword" ,rust-rpassword-7)
- ("rust-scrypt" ,rust-scrypt-0.11))))
+ `(#:install-source? #f))
+ (inputs (cargo-inputs 'rust-minisign))
(home-page "https://github.com/jedisct1/rust-minisign")
(synopsis "Crate to sign files and verify signatures")
(description
@@ -1541,121 +1537,27 @@ 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 "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))))
-
-(define-public rust-blake3-1
- (package
- (name "rust-blake3")
- (version "1.5.5")
- (source
- (origin
- (method url-fetch)
- (uri (crate-uri "blake3" version))
- (file-name (string-append name "-" version ".tar.gz"))
- (sha256
- (base32 "07k07q7f2m0hr6z944gf0wn1s15f3gwsydhpz2ssbpn44hc0rvmq"))))
- (build-system cargo-build-system)
- (arguments
- (list
- #:tests? #f ; use of undeclared crate or module `reference_impl`
- #:cargo-inputs
- `(("rust-arrayref" ,rust-arrayref-0.3)
- ("rust-arrayvec" ,rust-arrayvec-0.7)
- ("rust-cc" ,rust-cc-1)
- ("rust-cfg-if" ,rust-cfg-if-1)
- ("rust-constant-time-eq" ,rust-constant-time-eq-0.3)
- ("rust-digest" ,rust-digest-0.10)
- ("rust-memmap2" ,rust-memmap2-0.9)
- ("rust-rayon-core" ,rust-rayon-core-1)
- ("rust-serde" ,rust-serde-1)
- ("rust-zeroize" ,rust-zeroize-1))
- #:cargo-development-inputs
- `(("rust-ciborium" ,rust-ciborium-0.2)
- ("rust-hex" ,rust-hex-0.4)
- ("rust-hmac" ,rust-hmac-0.12)
- ("rust-page-size" ,rust-page-size-0.6)
- ("rust-rand" ,rust-rand-0.8)
- ("rust-rand-chacha" ,rust-rand-chacha-0.3)
- ("rust-serde-json" ,rust-serde-json-1)
- ("rust-tempfile" ,rust-tempfile-3))))
- (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))))
-
(define-public b3sum
(package
(name "b3sum")
- (version "1.5.0")
+ (version "1.8.1")
(source
(origin
(method url-fetch)
(uri (crate-uri "b3sum" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "05k0vn7gpbvjr925vjc5yzvhiyrmkw9pqmch5fr4ir7s8wiaq2fm"))))
+ (base32 "1zfyj3a8s1mg6w6l4j5hchrs8n5mfij92mg9m24pzxfi4da4543a"))))
(build-system cargo-build-system)
(arguments
- `(;; Install the source so that Cargo.toml is installed, because that is
- ;; the only reference to the license information.
- #:install-source? #t
+ `(#:install-source? #f
#:phases
(modify-phases %standard-phases
(add-before 'check 'patch-tests
(lambda _
(substitute* "tests/cli_tests.rs"
- (("/bin/sh") (which "sh")))))
- (add-after 'install 'install-doc
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (doc (string-append out "/share/doc/" ,name "-"
- ,(package-version this-package))))
- (install-file "README.md" doc)))))
- #:cargo-inputs
- (("rust-anyhow" ,rust-anyhow-1)
- ("rust-blake3" ,rust-blake3-1)
- ("rust-clap" ,rust-clap-4)
- ("rust-hex" ,rust-hex-0.4)
- ("rust-memmap2" ,rust-memmap2-0.7)
- ("rust-rayon" ,rust-rayon-1)
- ("rust-wild" ,rust-wild-2))
- #:cargo-development-inputs
- (("rust-duct" ,rust-duct-0.13)
- ("rust-tempfile" ,rust-tempfile-3))))
+ (("/bin/sh") (which "sh"))))))))
+ (inputs (cargo-inputs 'b3sum))
(home-page "https://github.com/BLAKE3-team/BLAKE3")
(synopsis "Command line BLAKE3 checksum tool")
(description "This package provides @code{b3sum}, a command line