summaryrefslogtreecommitdiff
path: root/gnu/packages/crates-crypto.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/crates-crypto.scm')
-rw-r--r--gnu/packages/crates-crypto.scm58
1 files changed, 58 insertions, 0 deletions
diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm
index e728bf479c..1d14a14251 100644
--- a/gnu/packages/crates-crypto.scm
+++ b/gnu/packages/crates-crypto.scm
@@ -3396,3 +3396,61 @@ for additional details.")
("rust-quote" ,rust-quote-1)
("rust-syn" ,rust-syn-1)
("rust-synstructure" ,rust-synstructure-0.12))))))
+
+(define-public rust-subtle-2
+ (package
+ (name "rust-subtle")
+ (version "2.5.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "subtle" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1g2yjs7gffgmdvkkq0wrrh0pxds3q0dv6dhkw9cdpbib656xdkc1"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-development-inputs (("rust-rand" ,rust-rand-0.8))))
+ (home-page "https://dalek.rs/")
+ (synopsis
+ "Pure-Rust traits and utilities for cryptographic implementations")
+ (description
+ "This package provides Pure-Rust traits and utilities for constant-time
+cryptographic implementations.")
+ (license license:bsd-3)))
+
+(define-public rust-subtle-1
+ (package
+ (inherit rust-subtle-2)
+ (name "rust-subtle")
+ (version "1.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "subtle" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1vm80mxbwfj334izwm8x8l65v1xl9hr0kwrg36r1rq565fkaarrd"))))))
+
+(define-public rust-subtle-ng-2
+ (package
+ (name "rust-subtle-ng")
+ (version "2.5.0")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "subtle-ng" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0hj1wp8xl64bjhbvlfffmllqy7wdw2b505f32gn3qqic4vmpcikk"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-development-inputs (("rust-rand" ,rust-rand-0.7))))
+ (home-page "https://dalek.rs/")
+ (synopsis "Pure-Rust for constant-time cryptographic implementations")
+ (description
+ "This package provides pure-Rust traits and utilities for constant-time
+cryptographic implementations.")
+ (license license:bsd-3)))