Struct libpaillier::DecryptionKey [−][src]
pub struct DecryptionKey { /* fields omitted */ }Expand description
A Paillier decryption key
Implementations
Create a new key from two safe primes.
p and q are checked if prime
Create a new key from two safe primes,
p and q are not checked to see if they are safe primes
Get this key’s byte representation.
This measures about (n * 4) + 4 bytes or i.e. for a 2048 bit modulus == 1032 bytes.
Convert a byte representation to a decryption key
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for DecryptionKeyimpl Send for DecryptionKeyimpl Sync for DecryptionKeyimpl Unpin for DecryptionKeyimpl UnwindSafe for DecryptionKeyBlanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V