Function ntru::generate_key_pair
[−]
[src]
pub fn generate_key_pair(
params: &EncParams,
rand_context: &RandContext
) -> Result<KeyPair, Error>
Key generation
Generates a NTRU encryption 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.