fix blind rotation

This commit is contained in:
Pro7ech
2025-10-21 14:26:53 +02:00
parent fef2a2fc27
commit 0926913001
37 changed files with 1106 additions and 961 deletions

View File

@@ -4,6 +4,7 @@ use poulpy_hal::{
};
use crate::{
GetDistribution,
dist::Distribution,
layouts::{Base2K, Degree, LWEInfos, TorusPrecision},
};
@@ -22,6 +23,12 @@ impl LWESecret<Vec<u8>> {
}
}
impl<D: DataRef> GetDistribution for LWESecret<D> {
fn dist(&self) -> &Distribution {
&self.dist
}
}
impl<D: DataRef> LWESecret<D> {
pub fn raw(&self) -> &[i64] {
self.data.at(0, 0)

View File

@@ -23,9 +23,8 @@ pub use external_product::*;
pub use glwe_packing::*;
pub use keyswitching::*;
pub use noise::*;
pub use scratch::*;
pub use encryption::SIGMA;
pub use scratch::*;
pub mod tests;

View File

@@ -217,6 +217,8 @@ where
}
}
impl<BE: Backend> GLWEMulXpMinusOne<BE> for Module<BE> where Self: ModuleN + VecZnxMulXpMinusOne + VecZnxMulXpMinusOneInplace<BE> {}
pub trait GLWEMulXpMinusOne<BE: Backend>
where
Self: ModuleN + VecZnxMulXpMinusOne + VecZnxMulXpMinusOneInplace<BE>,