mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 13:16:44 +01:00
fix blind rotation
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user