Function ntru::generate_key_pair [] [src]

pub fn generate_key_pair(params: &NtruEncParams, rand_context: &NtruRandContext) -> Result<NtruEncKeyPairNtruError>

Key generation

Generates a NtruEncrypt key pair. If a deterministic RNG is used, the key pair will be deterministic for a given random seed; otherwise, the key pair will be completely random.