ckks: get rid of constant generics (reason in two commits ago)

This commit is contained in:
2025-08-11 21:40:58 +00:00
parent 78324a3a8d
commit 0c7e078aeb
3 changed files with 113 additions and 100 deletions

View File

@@ -16,6 +16,14 @@ use arith::{Ring, Rq, R};
// sigma=3.2 from: https://eprint.iacr.org/2022/162.pdf page 5
const ERR_SIGMA: f64 = 3.2;
#[derive(Clone, Copy, Debug)]
pub struct Params {
q: u64,
n: usize,
t: u64,
p: u64,
}
#[derive(Clone, Debug)]
pub struct SecretKey(Rq);
@@ -92,12 +100,6 @@ impl ops::Add<&Rq> for &RLWE {
}
}
pub struct Params {
q: u64,
n: usize,
t: u64,
p: u64,
}
pub struct BFV {}
impl BFV {