Struct scicrypt::threshold_cryptosystems::integer_el_gamal::NOfNIntegerElGamal[][src]

pub struct NOfNIntegerElGamal;
Expand description

N-out-of-N Threshold ElGamal cryptosystem over integers: Extension of ElGamal that requires n out of n parties to successfully decrypt. For this scheme there exists an efficient distributed key generation protocol.

Trait Implementations

The type of the plaintexts to be encrypted.

The type of the encrypted plaintexts.

Rich representation of a ciphertext that associates it with the corresponding public key. This allows for performing homomorphic operations using operator overloading, among others. Read more

The type of the encryption key.

The type of the partial key.

The type of a decryption share, which can be combined with $t - 1$ other shares to finish decryption. Read more

Generate a public and private key pair using a cryptographic RNG.

Encrypt the plaintext using the public key and a cryptographic RNG.

Partially decrypt the ciphertext using a partial key and its related public key.

Combine t decryption shares belonging to distinct partial keys to finish decryption. It is the responsibility of the programmer to supply the right number of decryption shares to this function. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Casts the value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Casts the value.

Performs the conversion.

Performs the conversion.

Casts the value.

Should always be Self

Casts the value.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Casts the value.

Casts the value.