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.