From 5c3da17a7b31f60d18a1a32a97565dd03f35503f Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Sun, 17 Dec 2023 22:11:13 +0100 Subject: [PATCH] remove dbg --- src/algorithms/rsa.rs | 3 --- src/key.rs | 1 - 2 files changed, 4 deletions(-) diff --git a/src/algorithms/rsa.rs b/src/algorithms/rsa.rs index d758ca22..66eb7d8b 100644 --- a/src/algorithms/rsa.rs +++ b/src/algorithms/rsa.rs @@ -85,16 +85,13 @@ pub fn rsa_decrypt( // 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()); diff --git a/src/key.rs b/src/key.rs index f4d28140..6c8dac54 100644 --- a/src/key.rs +++ b/src/key.rs @@ -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() }