Struct paillier::Keypair [−][src]
Keypair from which encryption and decryption keys can be derived.
Fields
p: BigInt
q: BigInt
Methods
impl Keypair
[src]
impl Keypair
pub fn keys(&self) -> (EncryptionKey, DecryptionKey)
[src]
pub fn keys(&self) -> (EncryptionKey, DecryptionKey)
Generate default encryption and decryption keys.
Trait Implementations
impl<'p, 'q> From<(&'p BigInt, &'q BigInt)> for Keypair
[src]
impl<'p, 'q> From<(&'p BigInt, &'q BigInt)> for Keypair
impl<'kp> From<&'kp Keypair> for MinimalEncryptionKey
[src]
impl<'kp> From<&'kp Keypair> for MinimalEncryptionKey
impl<'kp> From<&'kp Keypair> for EncryptionKey
[src]
impl<'kp> From<&'kp Keypair> for EncryptionKey
impl<'kp> From<&'kp Keypair> for MinimalDecryptionKey
[src]
impl<'kp> From<&'kp Keypair> for MinimalDecryptionKey
impl<'kp> From<&'kp Keypair> for DecryptionKey
[src]
impl<'kp> From<&'kp Keypair> for DecryptionKey
fn from(keypair: &'kp Keypair) -> DecryptionKey
[src]
fn from(keypair: &'kp Keypair) -> DecryptionKey
Performs the conversion.
impl KeyGeneration<Keypair> for Paillier
[src]
impl KeyGeneration<Keypair> for Paillier
fn keypair_with_modulus_size(bit_length: usize) -> Keypair
[src]
fn keypair_with_modulus_size(bit_length: usize) -> Keypair
Generate fresh key pair with security level specified as the bit_length
of the modulus. Read more
fn keypair() -> KP
[src]
fn keypair() -> KP
Generate fresh key pair with currently recommended security level (2048 bit modulus).
impl Clone for Keypair
[src]
impl Clone for Keypair
fn clone(&self) -> Keypair
[src]
fn clone(&self) -> Keypair
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Keypair
[src]
impl Debug for Keypair
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Keypair
[src]
impl PartialEq for Keypair