[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: gnu: Add rust-constant-time-eq.
From: |
guix-commits |
Subject: |
01/02: gnu: Add rust-constant-time-eq. |
Date: |
Tue, 3 Sep 2019 04:23:42 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 655ac50d3cf7e3276b28f989e25e40323663faf6
Author: Giacomo Leidi <address@hidden>
Date: Tue Sep 3 01:06:40 2019 +0200
gnu: Add rust-constant-time-eq.
* gnu/packages/crates-io.scm (rust-constant-time-eq): New variable.
Signed-off-by: Efraim Flashner <address@hidden>
---
gnu/packages/crates-io.scm | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 6f2a002..27596ce 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -2,6 +2,7 @@
;;; Copyright © 2019 Ivan Petkov <address@hidden>
;;; Copyright © 2019 Efraim Flashner <address@hidden>
;;; Copyright © 2019 Nicolas Goaziou <address@hidden>
+;;; Copyright © 2019 Giacomo Leidi <address@hidden>
;;;
;;; 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")