Function tfhe::core_crypto::algorithms::lwe_keyswitch_key_generation::allocate_and_generate_new_seeded_lwe_keyswitch_key
source · pub fn allocate_and_generate_new_seeded_lwe_keyswitch_key<Scalar, NoiseDistribution, InputKeyCont, OutputKeyCont, NoiseSeeder>(
input_lwe_sk: &LweSecretKey<InputKeyCont>,
output_lwe_sk: &LweSecretKey<OutputKeyCont>,
decomp_base_log: DecompositionBaseLog,
decomp_level_count: DecompositionLevelCount,
noise_distribution: NoiseDistribution,
ciphertext_modulus: CiphertextModulus<Scalar>,
noise_seeder: &mut NoiseSeeder
) -> SeededLweKeyswitchKeyOwned<Scalar>where
Scalar: Encryptable<Uniform, NoiseDistribution>,
NoiseDistribution: Distribution,
InputKeyCont: Container<Element = Scalar>,
OutputKeyCont: Container<Element = Scalar>,
NoiseSeeder: Seeder + ?Sized,
Expand description
Allocate a new seeded LWE keyswitch key
and fill it with an actual
keyswitching key constructed from an input and an output key
LWE secret key
.