Skip to content

Commit

Permalink
PROD-9297 review changes 7
Browse files Browse the repository at this point in the history
  • Loading branch information
mridul-manohar committed Nov 12, 2024
1 parent 3b9e988 commit 432a86a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mbedtls/src/bignum/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* option. This file may not be copied, modified, or distributed except
* according to those terms. */

#[cfg(feature = "std")]
use crate::error::Error;
use crate::error::{codes, IntoResult, Result};
use mbedtls_sys::*;
Expand Down Expand Up @@ -430,7 +429,7 @@ impl Mpi {
}
}

pub fn mpi_inner_eq_const_time(x: &mpi, y: &mpi) -> core::prelude::v1::Result<bool, Error> {
pub(super) fn mpi_inner_eq_const_time(x: &mpi, y: &mpi) -> core::prelude::v1::Result<bool, Error> {
match mpi_inner_cmp_const_time(x, y) {
Ok(order) => Ok(order == Ordering::Equal),
Err(e) if e == codes::MpiBadInputData.into() => Ok(false),
Expand Down

0 comments on commit 432a86a

Please sign in to comment.