Struct i2p_elgamal::Decryptor [−][src]
pub struct Decryptor(_);
ElGamal decryption, as specified in section 8.4.1 of the Handbook of Applied Cryptography.
Methods
impl Decryptor
[src]
impl Decryptor
pub fn decrypt(&self, ct: &[u8]) -> Result<Vec<u8>, ()>
[src]
pub fn decrypt(&self, ct: &[u8]) -> Result<Vec<u8>, ()>
ElGamal decryption using I2P's message and ciphertext encoding schemes.
Trait Implementations
impl<'a> From<&'a PrivateKey> for Decryptor
[src]
impl<'a> From<&'a PrivateKey> for Decryptor
fn from(priv_key: &PrivateKey) -> Self
[src]
fn from(priv_key: &PrivateKey) -> Self
Performs the conversion.