Remove output and message queue from HoneyBadger.

This commit is contained in:
Andreas Fackler 2018-07-23 18:11:45 +02:00 committed by Vladimir Komendantskiy
parent ec16c801ac
commit da3bc0b930
1 changed files with 6 additions and 1 deletions

7
mod.rs
View File

@ -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))
}
}