diff options
author | Giacomo Leidi <goodoldpaul@autistici.org> | 2019-09-03 01:06:40 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2019-09-03 11:23:01 +0300 |
commit | 655ac50d3cf7e3276b28f989e25e40323663faf6 (patch) | |
tree | 3c64eca628c24e0d4d97a8f5015954f57daba851 | |
parent | 7b90155443fd2bf6368d0cc8a4f8055696e4a294 (diff) | |
download | patches-655ac50d3cf7e3276b28f989e25e40323663faf6.tar patches-655ac50d3cf7e3276b28f989e25e40323663faf6.tar.gz |
gnu: Add rust-constant-time-eq.
* gnu/packages/crates-io.scm (rust-constant-time-eq): New variable.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
-rw-r--r-- | gnu/packages/crates-io.scm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 6f2a002a2f..27596cee02 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2019 Ivan Petkov <ivanppetkov@gmail.com> ;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr> +;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -251,6 +252,27 @@ colorization.") "Low level interface to CloudABI. Contains all syscalls and related types.") (license license:bsd-2))) +(define-public rust-constant-time-eq + (package + (name "rust-constant-time-eq") + (version "0.1.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "constant_time_eq" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "083icpr9xb72rrdxw3p4068dcspn6ai22jy7rhl2a8grfz448nlr")))) + (build-system cargo-build-system) + (home-page "https://crates.io/crates/constant_time_eq") + (synopsis + "Compares two equal-sized byte strings in constant time") + (description + "This package compares two equal-sized byte strings in constant time. +It is inspired by the Linux kernel's @code{crypto_memneq}.") + (license license:cc0))) + (define-public rust-core-foundation-sys (package (name "rust-core-foundation-sys") |