Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Aug 11, 2024
1 parent f61ed75 commit 74d3197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/algorithms/rsa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ pub fn recover_primes(
return Err(Error::InvalidArguments);
}

let bits = std::cmp::max(b.bits_precision(), y.bits_precision());
let bits = core::cmp::max(b.bits_precision(), y.bits_precision());
let two = NonZero::new(BoxedUint::from(2u64)).unwrap().widen(bits);
let p = (&b + &y) / &two;
let q = (b - y) / two;
Expand Down

0 comments on commit 74d3197

Please sign in to comment.