mirror of
https://github.com/arnaucube/phantom-zone.git
synced 2026-01-11 16:41:29 +01:00
clean rgsw/runtime
This commit is contained in:
@@ -25,8 +25,8 @@ use crate::{
|
||||
RandomFillUniformInModulus, RandomGaussianElementInModulus,
|
||||
},
|
||||
rgsw::{
|
||||
decrypt_rlwe, galois_auto, generate_auto_map, public_key_encrypt_rgsw,
|
||||
rgsw_by_rgsw_inplace, secret_key_encrypt_rgsw, seeded_auto_key_gen,
|
||||
decrypt_rlwe, generate_auto_map, public_key_encrypt_rgsw, rgsw_by_rgsw_inplace, rlwe_auto,
|
||||
secret_key_encrypt_rgsw, seeded_auto_key_gen,
|
||||
},
|
||||
utils::{
|
||||
encode_x_pow_si_with_emebedding_factor, fill_random_ternary_secret_with_hamming_weight,
|
||||
|
||||
@@ -178,7 +178,7 @@ mod impl_enc_dec {
|
||||
bool::{evaluator::BoolEncoding, keys::NonInteractiveMultiPartyClientKey},
|
||||
pbs::{sample_extract, PbsInfo, WithShoupRepr},
|
||||
random::{NewWithSeed, RandomFillUniformInModulus},
|
||||
rgsw::{key_switch, seeded_secret_key_encrypt_rlwe},
|
||||
rgsw::{rlwe_key_switch, seeded_secret_key_encrypt_rlwe},
|
||||
utils::TryConvertFrom1,
|
||||
Encryptor, KeySwitchWithId, Matrix, MatrixEntity, MatrixMut, RowEntity, RowMut,
|
||||
};
|
||||
@@ -324,7 +324,7 @@ mod impl_enc_dec {
|
||||
let decomposer = e.ni_ui_to_s_ks_decomposer().as_ref().unwrap();
|
||||
|
||||
// perform key switch
|
||||
key_switch(
|
||||
rlwe_key_switch(
|
||||
self,
|
||||
ksk.as_ref(),
|
||||
ksk.shoup_repr(),
|
||||
|
||||
@@ -10,7 +10,7 @@ use crate::{
|
||||
lwe::{decrypt_lwe, lwe_key_switch},
|
||||
parameters::{BoolParameters, CiphertextModulus},
|
||||
random::{DefaultSecureRng, RandomFillUniformInModulus},
|
||||
rgsw::{decrypt_rlwe, galois_auto, IsTrivial, RlweCiphertext},
|
||||
rgsw::{decrypt_rlwe, rlwe_auto, IsTrivial, RlweCiphertext},
|
||||
utils::{encode_x_pow_si_with_emebedding_factor, tests::Stats, TryConvertFrom1},
|
||||
ArithmeticOps, ClientKey, Decomposer, MatrixEntity, MatrixMut, ModInit, Ntt, NttInit,
|
||||
RowEntity, RowMut, VectorOps,
|
||||
@@ -283,7 +283,7 @@ where
|
||||
rlwe.data.get_row_mut(0).copy_from_slice(m.as_ref());
|
||||
rlwe.set_not_trivial();
|
||||
|
||||
galois_auto(
|
||||
rlwe_auto(
|
||||
&mut rlwe,
|
||||
server_key.galois_key_for_auto(*k),
|
||||
&mut scratch_matrix,
|
||||
|
||||
Reference in New Issue
Block a user