Trait scicrypt::cryptosystems::DecryptDirectly[][src]

pub trait DecryptDirectly {
    type Plaintext;
    type Ciphertext;
    type SecretKey;
    fn decrypt_direct(
        ciphertext: &Self::Ciphertext,
        secret_key: &Self::SecretKey
    ) -> Self::Plaintext; }
Expand description

Some cryptosystems do not require the public key to decrypt, as all the necessary information is stored within the ciphertext and the secret key. For example, ElGamal when its group is hard-coded.

Associated Types

The type of the plaintexts to be encrypted.

The type of the encrypted plaintexts.

The type of the decryption key.

Required methods

Decrypt a ciphertext using the secret key directly, without requiring a rich ciphertext.

Implementors