Struct paillier::Keypair[][src]

pub struct Keypair {
    pub p: BigInt,
    pub q: BigInt,
}

Keypair from which encryption and decryption keys can be derived.

Fields

Methods

impl Keypair
[src]

Generate default encryption and decryption keys.

Trait Implementations

impl<'p, 'q> From<(&'p BigInt, &'q BigInt)> for Keypair
[src]

Performs the conversion.

impl<'kp> From<&'kp Keypair> for MinimalEncryptionKey
[src]

Performs the conversion.

impl<'kp> From<&'kp Keypair> for EncryptionKey
[src]

Performs the conversion.

impl<'kp> From<&'kp Keypair> for MinimalDecryptionKey
[src]

Performs the conversion.

impl<'kp> From<&'kp Keypair> for DecryptionKey
[src]

Performs the conversion.

impl KeyGeneration<Keypair> for Paillier
[src]

Generate fresh key pair with security level specified as the bit_length of the modulus. Read more

Generate fresh key pair with currently recommended security level (2048 bit modulus).

impl Clone for Keypair
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Keypair
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Keypair
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Keypair

impl Sync for Keypair