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)