Skip to content

Commit

Permalink
remove dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Dec 17, 2023
1 parent a84995f commit 5c3da17
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/algorithms/rsa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,13 @@ pub fn rsa_decrypt<R: CryptoRngCore + ?Sized>(
// precomputed: dQ = (1/e) mod (q-1) = d mod (q-1)

// m1 = c^dP mod p
std::dbg!(c.bits_precision(), p_params.bits_precision());
// reduce c first
// TODO: constant time
// TODO: store NonZero?
let c = c
.rem_vartime(&NonZero::new(p.clone()).unwrap())
.widen(p_params.bits_precision());
std::dbg!(c.bits_precision(), p_params.bits_precision());
let cp = BoxedResidue::new(c.clone(), p_params.clone());
std::dbg!(cp.bits_precision(), dp.bits_precision());
let mut m1 = cp.pow(&dp);
// m2 = c^dQ mod q
let cq = BoxedResidue::new(c, q_params.clone());
Expand Down
1 change: 0 additions & 1 deletion src/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,6 @@ pub(crate) fn to_biguint(uint: &BoxedUint) -> BigUint {
}

pub(crate) fn to_uint_exact(big_uint: BigUint, nbits: u32) -> BoxedUint {
std::dbg!(big_uint.bits(), nbits);
BoxedUint::from_be_slice(&big_uint.to_bytes_be(), nbits).unwrap()
}

Expand Down

0 comments on commit 5c3da17

Please sign in to comment.