gnu: Add rust-sha1collisiondetection-0.3.

* gnu/packages/crates-crypto.scm (rust-sha1collisiondetection-0.3): New
variable.
(rust-sha1collisiondetection-0.2): Inherit from
rust-sha1collisiondetection-0.3.

Change-Id: I782dc66839b573959a3e172e28e3fa78cd8276df
This commit is contained in:
Efraim Flashner 2024-03-31 16:52:32 +03:00
parent bc62910bdd
commit 1e18ee210e
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -5613,8 +5613,41 @@ (define-public rust-sha1-smol-1
SHA1 for Rust.")
(license license:bsd-3)))
(define-public rust-sha1collisiondetection-0.3
(package
(name "rust-sha1collisiondetection")
(version "0.3.4")
(source
(origin
(method url-fetch)
(uri (crate-uri "sha1collisiondetection" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0jwnwrk1x78v9r16jnac2s4v1m2f5a19khwkx1vjh0d6whhn8q0z"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-clap" ,rust-clap-4)
("rust-clap" ,rust-clap-4)
("rust-clap-mangen" ,rust-clap-mangen-0.2)
("rust-clap-mangen" ,rust-clap-mangen-0.2)
("rust-const-oid" ,rust-const-oid-0.9)
("rust-digest" ,rust-digest-0.10)
("rust-generic-array" ,rust-generic-array-0.12))
#:cargo-development-inputs (("rust-getrandom" ,rust-getrandom-0.2)
("rust-hex-literal" ,rust-hex-literal-0.4)
("rust-sha1" ,rust-sha1-0.10))))
(home-page "https://gitlab.com/sequoia-pgp/sha1collisiondetection")
(synopsis "SHA-1 hash function with collision detection and mitigation")
(description
"This package implementation of the SHA-1 cryptographic hash algorithm.
This is a port of Marc Stevens' sha1collisiondetection algorithm to Rust. The
code is translated from C to Rust using c2rust.")
(license license:expat)))
(define-public rust-sha1collisiondetection-0.2
(package
(inherit rust-sha1collisiondetection-0.3)
(name "rust-sha1collisiondetection")
(version "0.2.3")
(source
@ -5625,7 +5658,6 @@ (define-public rust-sha1collisiondetection-0.2
(string-append name "-" version ".tar.gz"))
(sha256
(base32 "10nh7s3d02136kkz93pxyfv628ls5xz8ndg27pkb6na0ghccz9np"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
@ -5633,15 +5665,7 @@ (define-public rust-sha1collisiondetection-0.2
("rust-generic-array" ,rust-generic-array-0.14)
("rust-libc" ,rust-libc-0.2)
("rust-sha-1" ,rust-sha-1-0.9)
("rust-structopt" ,rust-structopt-0.3))))
(home-page "https://docs.rs/sha1collisiondetection")
(synopsis "SHA-1 hash function with collision detection and mitigation")
(description
"This package implementation of the SHA-1 cryptographic hash algorithm.
This is a port of Marc Stevens' sha1collisiondetection algorithm to Rust. The
code is translated from C to Rust using c2rust.")
(license license:expat)))
("rust-structopt" ,rust-structopt-0.3))))))
(define-public rust-sha2-0.10
(package