renamed crate & files

This commit is contained in:
Jean-Philippe Bossuat
2025-05-11 11:13:53 +02:00
parent 5d56d78d91
commit 54fab8e4f3
15 changed files with 26 additions and 26 deletions

View File

@@ -1,5 +1,5 @@
[workspace]
members = ["base2k", "rlwe", "sampling", "utils"]
members = ["base2k", "core", "sampling", "utils"]
resolver = "3"
[workspace.dependencies]

View File

@@ -4,8 +4,8 @@ use base2k::{
};
use crate::{
elem_grlwe::GRLWECt,
elem_rlwe::{RLWECt, RLWECtDft},
grlwe::GRLWECt,
rlwe::{RLWECt, RLWECtDft},
utils::derive_size,
};

View File

@@ -8,8 +8,8 @@ use sampling::source::Source;
use crate::{
elem::{GetRow, Infos, MatZnxDftProducts, SetRow},
elem_rlwe::{RLWECt, RLWECtDft, RLWEPt},
keys::SecretKeyDft,
rlwe::{RLWECt, RLWECtDft, RLWEPt},
utils::derive_size,
};

View File

@@ -5,7 +5,7 @@ use base2k::{
};
use sampling::source::Source;
use crate::{elem::Infos, elem_rlwe::RLWECtDft};
use crate::{elem::Infos, rlwe::RLWECtDft};
#[derive(Clone, Copy, Debug)]
pub enum SecretDistribution {

7
core/src/lib.rs Normal file
View 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;

View File

@@ -8,9 +8,9 @@ use sampling::source::Source;
use crate::{
elem::{GetRow, Infos, MatZnxDftProducts, SetRow},
elem_grlwe::GRLWECt,
elem_rlwe::{RLWECt, RLWECtDft, RLWEPt, encrypt_rlwe_sk},
grlwe::GRLWECt,
keys::SecretKeyDft,
rlwe::{RLWECt, RLWECtDft, RLWEPt, encrypt_rlwe_sk},
utils::derive_size,
};

View File

@@ -7,7 +7,7 @@ use sampling::source::Source;
use crate::{
elem::Infos,
elem_grlwe::GRLWECt,
grlwe::GRLWECt,
keys::{PublicKey, SecretDistribution, SecretKeyDft},
utils::derive_size,
};

View File

@@ -1,15 +1,15 @@
#[cfg(test)]
mod test {
mod tests {
use base2k::{FFT64, FillUniform, Module, ScalarZnx, ScalarZnxAlloc, ScratchOwned, Stats, VecZnxOps};
use sampling::source::Source;
use crate::{
elem::Infos,
elem_grlwe::GRLWECt,
elem_rlwe::{RLWECt, RLWECtDft, RLWEPt},
grlwe::GRLWECt,
keys::{SecretKey, SecretKeyDft},
test_fft64::elem_grlwe::noise_grlwe_rlwe_product,
rlwe::{RLWECt, RLWECtDft, RLWEPt},
test_fft64::grlwe::noise_grlwe_rlwe_product,
};
#[test]

View File

@@ -0,0 +1,3 @@
mod grlwe;
mod rgsw;
mod rlwe;

View File

@@ -8,10 +8,10 @@ mod tests {
use crate::{
elem::{GetRow, Infos},
elem_rgsw::RGSWCt,
elem_rlwe::{RLWECt, RLWECtDft, RLWEPt},
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]

View File

@@ -6,8 +6,8 @@ mod tests {
use crate::{
elem::Infos,
elem_rlwe::{RLWECt, RLWECtDft, RLWEPt},
keys::{PublicKey, SecretKey, SecretKeyDft},
rlwe::{RLWECt, RLWECtDft, RLWEPt},
};
#[test]

View File

@@ -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;

View File

@@ -1,3 +0,0 @@
mod elem_grlwe;
mod elem_rgsw;
mod elem_rlwe;