tfhe: add blind_rotation & lookup table computation

This commit is contained in:
2025-08-03 19:12:47 +00:00
parent 7bfcf6f7c1
commit 2c20a2ed0e
5 changed files with 101 additions and 23 deletions

View File

@@ -33,6 +33,9 @@ impl<R: Ring, const K: usize> GLWE<R, K> {
pub fn zero() -> Self {
Self(TR::zero(), R::zero())
}
pub fn from_plaintext(p: R) -> Self {
Self(TR::zero(), p)
}
pub fn new_key(mut rng: impl Rng) -> Result<(SecretKey<R, K>, PublicKey<R, K>)> {
let Xi_key = Uniform::new(0_f64, 2_f64);