Add zeroed default for ElGamalCiphertext (#22639)
This commit is contained in:
parent
95bbb70c91
commit
7be533a770
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue