pub fn keygen(
params: &Parameters,
seed: Option<u64>,
) -> ((Vec<Vec<Polynomial<i64>>>, Vec<Polynomial<i64>>), Vec<Polynomial<i64>>)Expand description
Generate public and secret keys for the ring-LWE cryptosystem
§Arguments
params- Parameters for the ring-LWE cryptosystemseed- random seed
§Returns
((a, t), sk)- public key (a, t) and secret key (sk)
§Example
let params = module_lwe::utils::Parameters::default();
let (pk, sk) = module_lwe::keygen::keygen(¶ms, None);