Function ntru::decrypt [] [src]

pub fn decrypt(enc: &[u8], kp: &NtruEncKeyPair, params: &NtruEncParams) -> Result<Box<[u8]>, NtruError>

Decrypts a message.

See P1363.1 section 9.2.3. The parameters needed are the following: * enc: The message to decrypt as an u8 slice. * kp: A key pair that contains the public key the message was encrypted with, and the corresponding private key. * params: Parameters the message was encrypted with