From b5ab9a8902af3aaabb951e726e754895c95e22d4 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Fri, 27 Feb 2026 08:23:28 -0700 Subject: [PATCH] universal-hash: replace `subtle` with `ctutils` See #2275 --- Cargo.lock | 2 +- universal-hash/Cargo.toml | 2 +- universal-hash/src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 103c1337b..9c8e7871f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -736,7 +736,7 @@ name = "universal-hash" version = "0.6.0" dependencies = [ "crypto-common", - "subtle", + "ctutils", ] [[package]] diff --git a/universal-hash/Cargo.toml b/universal-hash/Cargo.toml index ccf7c1e1e..f04729ed0 100644 --- a/universal-hash/Cargo.toml +++ b/universal-hash/Cargo.toml @@ -13,8 +13,8 @@ categories = ["cryptography", "no-std"] description = "Traits which describe the functionality of universal hash functions (UHFs)" [dependencies] +ctutils = "0.4" common = { version = "0.2", package = "crypto-common" } -subtle = { version = "2.4", default-features = false } [lints] workspace = true diff --git a/universal-hash/src/lib.rs b/universal-hash/src/lib.rs index 5de418770..02c27b053 100644 --- a/universal-hash/src/lib.rs +++ b/universal-hash/src/lib.rs @@ -18,7 +18,7 @@ use common::{ array::{Array, ArraySize}, }; use core::slice; -use subtle::ConstantTimeEq; +use ctutils::CtEq; use typenum::Unsigned; /// Trait implemented by UHF backends.