From 9c56536f392a2145db2611aeecce1d06664f8f5a Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 12 Jun 2023 13:08:57 +0200 Subject: [PATCH] Update to version 0.2.6; Fixes RHBZ#2213980 --- .gitignore | 1 + constant_time_eq-fix-metadata.diff | 22 ++++++++++++++++------ rust-constant_time_eq.spec | 3 ++- sources | 2 +- 4 files changed, 20 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index e170bc0..4959d2d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /constant_time_eq-0.1.5.crate /constant_time_eq-0.2.4.crate /constant_time_eq-0.2.5.crate +/constant_time_eq-0.2.6.crate diff --git a/constant_time_eq-fix-metadata.diff b/constant_time_eq-fix-metadata.diff index 0d788df..38312f0 100644 --- a/constant_time_eq-fix-metadata.diff +++ b/constant_time_eq-fix-metadata.diff @@ -1,9 +1,16 @@ ---- constant_time_eq-0.2.5/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ constant_time_eq-0.2.5/Cargo.toml 2023-03-12T14:17:46.283883+00:00 -@@ -29,10 +29,3 @@ - [[bench]] - name = "bench" - harness = false +--- constant_time_eq-0.2.6/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ constant_time_eq-0.2.6/Cargo.toml 2023-06-12T10:34:17.622750+00:00 +@@ -25,20 +25,3 @@ + ] + license = "CC0-1.0 OR MIT-0 OR Apache-2.0" + repository = "https://github.com/cesarb/constant_time_eq" +- +-[[bench]] +-name = "bench" +-harness = false +- +-[dev-dependencies.count_instructions] +-version = "0.1.1" - -[dev-dependencies.criterion] -version = "0.4" @@ -11,3 +18,6 @@ - "cargo_bench_support", - "html_reports", -] +- +-[features] +-count_instructions_test = [] diff --git a/rust-constant_time_eq.spec b/rust-constant_time_eq.spec index d202dd4..ec60e37 100644 --- a/rust-constant_time_eq.spec +++ b/rust-constant_time_eq.spec @@ -5,7 +5,7 @@ %global crate constant_time_eq Name: rust-constant_time_eq -Version: 0.2.5 +Version: 0.2.6 Release: %autorelease Summary: Compares two equal-sized byte strings in constant time @@ -14,6 +14,7 @@ URL: https://crates.io/crates/constant_time_eq Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop unused, benchmark-only criterion dev-dependency to speed up builds +# * drop unused count_instructions dev-dependency and associated feature Patch: constant_time_eq-fix-metadata.diff BuildRequires: rust-packaging >= 21 diff --git a/sources b/sources index 5c98424..a056629 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (constant_time_eq-0.2.5.crate) = 34bcd1a2f29997ac65ed85c7a9570f7eceb4941f119cf1d7cc7ae5eeb9ece3d4cd5bc9dc86f35cc9facdf8aa9736fd736d38e7ab8aa8fd6e59cc102003d6bd49 +SHA512 (constant_time_eq-0.2.6.crate) = 3c8b61de0be32647be4c64d2d4856cf317964dfd682c32268046c6d4fb66af5b3fac32dc214e537ece9b3a879685b1d87c47757afd336630cacd5c8b9716f8f7