mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 05:06:44 +01:00
renamed crate & files
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
[workspace]
|
[workspace]
|
||||||
members = ["base2k", "rlwe", "sampling", "utils"]
|
members = ["base2k", "core", "sampling", "utils"]
|
||||||
resolver = "3"
|
resolver = "3"
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ use base2k::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
elem_grlwe::GRLWECt,
|
grlwe::GRLWECt,
|
||||||
elem_rlwe::{RLWECt, RLWECtDft},
|
rlwe::{RLWECt, RLWECtDft},
|
||||||
utils::derive_size,
|
utils::derive_size,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -8,8 +8,8 @@ use sampling::source::Source;
|
|||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
elem::{GetRow, Infos, MatZnxDftProducts, SetRow},
|
elem::{GetRow, Infos, MatZnxDftProducts, SetRow},
|
||||||
elem_rlwe::{RLWECt, RLWECtDft, RLWEPt},
|
|
||||||
keys::SecretKeyDft,
|
keys::SecretKeyDft,
|
||||||
|
rlwe::{RLWECt, RLWECtDft, RLWEPt},
|
||||||
utils::derive_size,
|
utils::derive_size,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -5,7 +5,7 @@ use base2k::{
|
|||||||
};
|
};
|
||||||
use sampling::source::Source;
|
use sampling::source::Source;
|
||||||
|
|
||||||
use crate::{elem::Infos, elem_rlwe::RLWECtDft};
|
use crate::{elem::Infos, rlwe::RLWECtDft};
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug)]
|
#[derive(Clone, Copy, Debug)]
|
||||||
pub enum SecretDistribution {
|
pub enum SecretDistribution {
|
||||||
7
core/src/lib.rs
Normal file
7
core/src/lib.rs
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
pub mod elem;
|
||||||
|
pub mod grlwe;
|
||||||
|
pub mod keys;
|
||||||
|
pub mod rgsw;
|
||||||
|
pub mod rlwe;
|
||||||
|
mod test_fft64;
|
||||||
|
mod utils;
|
||||||
@@ -8,9 +8,9 @@ use sampling::source::Source;
|
|||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
elem::{GetRow, Infos, MatZnxDftProducts, SetRow},
|
elem::{GetRow, Infos, MatZnxDftProducts, SetRow},
|
||||||
elem_grlwe::GRLWECt,
|
grlwe::GRLWECt,
|
||||||
elem_rlwe::{RLWECt, RLWECtDft, RLWEPt, encrypt_rlwe_sk},
|
|
||||||
keys::SecretKeyDft,
|
keys::SecretKeyDft,
|
||||||
|
rlwe::{RLWECt, RLWECtDft, RLWEPt, encrypt_rlwe_sk},
|
||||||
utils::derive_size,
|
utils::derive_size,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@ use sampling::source::Source;
|
|||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
elem::Infos,
|
elem::Infos,
|
||||||
elem_grlwe::GRLWECt,
|
grlwe::GRLWECt,
|
||||||
keys::{PublicKey, SecretDistribution, SecretKeyDft},
|
keys::{PublicKey, SecretDistribution, SecretKeyDft},
|
||||||
utils::derive_size,
|
utils::derive_size,
|
||||||
};
|
};
|
||||||
@@ -1,15 +1,15 @@
|
|||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|
||||||
mod test {
|
mod tests {
|
||||||
use base2k::{FFT64, FillUniform, Module, ScalarZnx, ScalarZnxAlloc, ScratchOwned, Stats, VecZnxOps};
|
use base2k::{FFT64, FillUniform, Module, ScalarZnx, ScalarZnxAlloc, ScratchOwned, Stats, VecZnxOps};
|
||||||
use sampling::source::Source;
|
use sampling::source::Source;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
elem::Infos,
|
elem::Infos,
|
||||||
elem_grlwe::GRLWECt,
|
grlwe::GRLWECt,
|
||||||
elem_rlwe::{RLWECt, RLWECtDft, RLWEPt},
|
|
||||||
keys::{SecretKey, SecretKeyDft},
|
keys::{SecretKey, SecretKeyDft},
|
||||||
test_fft64::elem_grlwe::noise_grlwe_rlwe_product,
|
rlwe::{RLWECt, RLWECtDft, RLWEPt},
|
||||||
|
test_fft64::grlwe::noise_grlwe_rlwe_product,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
3
core/src/test_fft64/mod.rs
Normal file
3
core/src/test_fft64/mod.rs
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
mod grlwe;
|
||||||
|
mod rgsw;
|
||||||
|
mod rlwe;
|
||||||
@@ -8,10 +8,10 @@ mod tests {
|
|||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
elem::{GetRow, Infos},
|
elem::{GetRow, Infos},
|
||||||
elem_rgsw::RGSWCt,
|
|
||||||
elem_rlwe::{RLWECt, RLWECtDft, RLWEPt},
|
|
||||||
keys::{SecretKey, SecretKeyDft},
|
keys::{SecretKey, SecretKeyDft},
|
||||||
test_fft64::elem_rgsw::noise_rgsw_rlwe_product,
|
rgsw::RGSWCt,
|
||||||
|
rlwe::{RLWECt, RLWECtDft, RLWEPt},
|
||||||
|
test_fft64::rgsw::noise_rgsw_rlwe_product,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@@ -6,8 +6,8 @@ mod tests {
|
|||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
elem::Infos,
|
elem::Infos,
|
||||||
elem_rlwe::{RLWECt, RLWECtDft, RLWEPt},
|
|
||||||
keys::{PublicKey, SecretKey, SecretKeyDft},
|
keys::{PublicKey, SecretKey, SecretKeyDft},
|
||||||
|
rlwe::{RLWECt, RLWECtDft, RLWEPt},
|
||||||
};
|
};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
pub mod elem;
|
|
||||||
pub mod elem_grlwe;
|
|
||||||
pub mod elem_rgsw;
|
|
||||||
pub mod elem_rlwe;
|
|
||||||
pub mod keys;
|
|
||||||
mod test_fft64;
|
|
||||||
mod utils;
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
mod elem_grlwe;
|
|
||||||
mod elem_rgsw;
|
|
||||||
mod elem_rlwe;
|
|
||||||
Reference in New Issue
Block a user