Function unsafe_hacspec_examples::ntru_prime::ntru_prime::key_gen
source · [−]pub fn key_gen(
g: &Poly,
f: &Poly,
n_v: &Parameters
) -> Result<(Seq<i128>, (Seq<i128>, Seq<i128>)), &'static str>
Expand description
Generate a key from given polynomials f
and g
.
Generating the polynomials at random has to happen outside.