[][src]Function concrete_lib::operators::crypto::cross::get_bootstrapping_key_size

#[no_mangle]pub fn get_bootstrapping_key_size(
    dimension: usize,
    polynomial_size: usize,
    level: usize,
    lwe_sk_n_bits: usize
) -> usize

Computes the size of a bootstrapping key

Arguments

  • dimension - size of the mask
  • polynomial_size - number of coefficients of the polynomial
  • level - number of blocks of the gadget matrix
  • lwe_sk_n_bits - size of the LWE secret key

Output

  • the size

Example

use concrete_lib::operators::crypto::cross;

// settings
let polynomial_size = 512;
let dimension: usize = 1;
let level: usize = 4;
let lwe_dimension: usize = 10;

let size = cross::get_bootstrapping_key_size(dimension, polynomial_size, level, lwe_dimension);