mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 13:16:44 +01:00
rename to what it actually does
This commit is contained in:
@@ -3,19 +3,19 @@ use poulpy_backend::FFT64Ref;
|
||||
use crate::tfhe::{
|
||||
bdd_arithmetic::tests::test_suite::{
|
||||
test_bdd_add, test_bdd_and, test_bdd_or, test_bdd_prepare, test_bdd_sll, test_bdd_slt, test_bdd_sltu, test_bdd_sra,
|
||||
test_bdd_srl, test_bdd_sub, test_bdd_xor, test_ggsw_blind_rotation, test_glwe_blind_rotation,
|
||||
test_bdd_srl, test_bdd_sub, test_bdd_xor, test_scalar_to_ggsw_blind_rotation, test_glwe_to_glwe_blind_rotation,
|
||||
},
|
||||
blind_rotation::CGGI,
|
||||
};
|
||||
|
||||
#[test]
|
||||
fn test_glwe_blind_rotation_fft64_ref() {
|
||||
test_glwe_blind_rotation::<FFT64Ref>()
|
||||
fn test_glwe_to_glwe_blind_rotation_fft64_ref() {
|
||||
test_glwe_to_glwe_blind_rotation::<FFT64Ref>()
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_ggsw_blind_rotation_fft64_ref() {
|
||||
test_ggsw_blind_rotation::<FFT64Ref>()
|
||||
fn test_scalar_to_ggsw_blind_rotation_fft64_ref() {
|
||||
test_scalar_to_ggsw_blind_rotation::<FFT64Ref>()
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
@@ -14,7 +14,7 @@ use rand::RngCore;
|
||||
|
||||
use crate::tfhe::bdd_arithmetic::{FheUintBlocksPrepared, GGSWBlindRotation};
|
||||
|
||||
pub fn test_ggsw_blind_rotation<BE: Backend>()
|
||||
pub fn test_scalar_to_ggsw_blind_rotation<BE: Backend>()
|
||||
where
|
||||
Module<BE>: ModuleNew<BE>
|
||||
+ GLWESecretPreparedFactory<BE>
|
||||
@@ -117,7 +117,7 @@ where
|
||||
// How many bits to take
|
||||
let bit_size: usize = (32 - bit_start).min(digit);
|
||||
|
||||
module.ggsw_blind_rotate_from_scalar(
|
||||
module.scalar_to_ggsw_blind_rotation(
|
||||
&mut res,
|
||||
&scalar,
|
||||
&k_enc_prep,
|
||||
|
||||
@@ -14,7 +14,7 @@ use rand::RngCore;
|
||||
|
||||
use crate::tfhe::bdd_arithmetic::{FheUintBlocksPrepared, GLWEBlindRotation};
|
||||
|
||||
pub fn test_glwe_blind_rotation<BE: Backend>()
|
||||
pub fn test_glwe_to_glwe_blind_rotation<BE: Backend>()
|
||||
where
|
||||
Module<BE>: ModuleNew<BE>
|
||||
+ GLWESecretPreparedFactory<BE>
|
||||
@@ -106,7 +106,7 @@ where
|
||||
// How many bits to take
|
||||
let bit_size: usize = (32 - bit_start).min(digit);
|
||||
|
||||
module.glwe_blind_rotation(
|
||||
module.glwe_to_glwe_blind_rotation(
|
||||
&mut res,
|
||||
&test_glwe,
|
||||
&k_enc_prep,
|
||||
|
||||
Reference in New Issue
Block a user