Add zeroed default for ElGamalCiphertext (#22639)

This commit is contained in:
Tyera Eulberg 2022-01-21 12:52:36 -07:00 committed by GitHub
parent 95bbb70c91
commit 7be533a770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,12 @@ impl fmt::Debug for ElGamalCiphertext {
}
}
impl Default for ElGamalCiphertext {
fn default() -> Self {
Self::zeroed()
}
}
#[derive(Clone, Copy, Default, Pod, Zeroable, PartialEq)]
#[repr(transparent)]
pub struct ElGamalPubkey(pub [u8; 32]);