Struct i2p_elgamal::Encryptor [−][src]
pub struct Encryptor(_);
ElGamal encryption, as specified in section 8.4.1 of the Handbook of Applied Cryptography.
Methods
impl Encryptor
[src]
impl Encryptor
pub fn encrypt(&self, msg: &[u8]) -> Result<[u8; 514], ()>
[src]
pub fn encrypt(&self, msg: &[u8]) -> Result<[u8; 514], ()>
ElGamal encryption using I2P's message and ciphertext encoding schemes.