From 57a557e68238595ebc84c08870a3fec2da092f30 Mon Sep 17 00:00:00 2001 From: Nanak Nihal Singh Khalsa Date: Fri, 3 Feb 2023 16:48:49 -0500 Subject: [PATCH] removed println --- src/lib.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 6c24b2f..f36be71 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -418,9 +418,7 @@ impl PrivateKey { pub fn decrypt_elgamal(&self, encrypted_point: ElGamalEncryption) -> Point { // Make sure inputs aren't bad (i imagine this check could be skipped for performance reasons, but it seems a sanity check here would be helpful) assert!(encrypted_point.c1.on_curve() && encrypted_point.c2.on_curve()); - let shared_secret = encrypted_point.c1.mul_scalar(&self.scalar_key()); - println!("Shared Secret {:?}", shared_secret); // Subtract the shared secret encrypted_point.c2.projective().add( &shared_secret.inverse().projective()