From 3b9e98851cad5cbfbbef731794e71bade8d0cc7c Mon Sep 17 00:00:00 2001 From: mridul Date: Tue, 12 Nov 2024 21:34:58 +0530 Subject: [PATCH] PROD-9297 review changes 6 --- mbedtls/src/bignum/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mbedtls/src/bignum/mod.rs b/mbedtls/src/bignum/mod.rs index e15ad7aa..289ded0d 100644 --- a/mbedtls/src/bignum/mod.rs +++ b/mbedtls/src/bignum/mod.rs @@ -430,8 +430,7 @@ impl Mpi { } } -#[cfg(feature = "std")] -pub(super) fn mpi_inner_eq_const_time(x: &mpi, y: &mpi) -> core::prelude::v1::Result { +pub fn mpi_inner_eq_const_time(x: &mpi, y: &mpi) -> core::prelude::v1::Result { match mpi_inner_cmp_const_time(x, y) { Ok(order) => Ok(order == Ordering::Equal), Err(e) if e == codes::MpiBadInputData.into() => Ok(false),