From da3bc0b930be8f0d296f0f13827a5a3ae770b7a3 Mon Sep 17 00:00:00 2001 From: Andreas Fackler Date: Mon, 23 Jul 2018 18:11:45 +0200 Subject: [PATCH] Remove output and message queue from HoneyBadger. --- mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mod.rs b/mod.rs index 0eebc9a..bd7708d 100644 --- a/mod.rs +++ b/mod.rs @@ -253,7 +253,12 @@ impl SecretKeyShare { if !ct.verify() { return None; } - Some(DecryptionShare(ct.0.into_affine().mul((self.0).0))) + Some(self.decrypt_share_no_verify(ct)) + } + + /// Returns a decryption share, without validating the ciphertext. + pub fn decrypt_share_no_verify(&self, ct: &Ciphertext) -> DecryptionShare { + DecryptionShare(ct.0.into_affine().mul((self.0).0)) } }