From d2b5a5a4b83482dfae4b1f670e4b63a8783b837c Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 17 Sep 2024 22:47:10 +0200 Subject: [PATCH] Update to version 0.3.1; Fixes RHBZ#2308070 --- .gitignore | 1 + constant_time_eq-fix-metadata.diff | 15 ++++++++++++--- rust-constant_time_eq.spec | 4 ++-- sources | 2 +- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 53bb292..3863e5f 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /constant_time_eq-0.2.5.crate /constant_time_eq-0.2.6.crate /constant_time_eq-0.3.0.crate +/constant_time_eq-0.3.1.crate diff --git a/constant_time_eq-fix-metadata.diff b/constant_time_eq-fix-metadata.diff index 8d7d813..2d77ecd 100644 --- a/constant_time_eq-fix-metadata.diff +++ b/constant_time_eq-fix-metadata.diff @@ -1,15 +1,24 @@ ---- constant_time_eq-0.3.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ constant_time_eq-0.3.0/Cargo.toml 2024-01-19T16:39:19.285130+00:00 -@@ -23,22 +23,5 @@ +--- constant_time_eq-0.3.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ constant_time_eq-0.3.1/Cargo.toml 2024-09-17T20:45:39.486573+00:00 +@@ -28,31 +28,9 @@ "cryptography", "no-std", ] -license = "CC0-1.0 OR MIT-0 OR Apache-2.0" +license = "MIT-0 OR Apache-2.0" repository = "https://github.com/cesarb/constant_time_eq" + + [lib] + name = "constant_time_eq" + path = "src/lib.rs" +- +-[[test]] +-name = "count_instructions" +-path = "tests/count_instructions.rs" - -[[bench]] -name = "bench" +-path = "benches/bench.rs" -harness = false - -[dev-dependencies.count_instructions] diff --git a/rust-constant_time_eq.spec b/rust-constant_time_eq.spec index 009336e..b8c1e6a 100644 --- a/rust-constant_time_eq.spec +++ b/rust-constant_time_eq.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 25 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate constant_time_eq Name: rust-constant_time_eq -Version: 0.3.0 +Version: 0.3.1 Release: %autorelease Summary: Compares two equal-sized byte strings in constant time diff --git a/sources b/sources index 93b4309..dd774a6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (constant_time_eq-0.3.0.crate) = 77bf6817c521daa45c0df7721418b4aa367531adde46b1db97316d52ffb46fc4ee2d3e6f62ff91ca6292db5e1d3e040f0f5287c3936f12a595b2c8c5928bf5e6 +SHA512 (constant_time_eq-0.3.1.crate) = 2b6b0d7572c02606b7c3780013fb1d1773b999a0d9934e4b140dd82f94e6c91d2ef82f6daaa1bda94f95bdf6b5997b2f0ea0c8eba8ca7e28a07d1e06b1071b50