keygen_string

Function keygen_string 

Source
pub fn keygen_string(
    params: &Parameters,
    seed: Option<u64>,
) -> HashMap<String, String>
Expand description

Generate public and secret keys for the ring-LWE cryptosystem and return them as a HashMap They are serialized and base64 encoded

§Arguments

  • params - Parameters for the ring-LWE cryptosystem
  • seed - random seed

§Returns

  • keys - HashMap containing the public and secret keys as base64 encoded strings

§Example

let params = module_lwe::utils::Parameters::default();
let keys = module_lwe::keygen::keygen_string(&params, None);