Commit Graph

12 Commits

Author SHA1 Message Date
74878e6928 upgrade rand,rand_distr deps 2026-01-16 10:33:36 +00:00
fb1fb6b4e9 Rm const generics (#2)
* arith: get rid of constant generics. Reason:

using constant generics was great for allocating the arrays in the
stack, which is faster, but when started to use bigger parameter values,
in some cases it was overflowing the stack. This commit removes all the
constant generics in all of the `arith` crate, which in some cases slows
a bit the performance, but allows for bigger parameter values (on the
ones that affect lengths, like N and K).

* bfv: get rid of constant generics (reason in previous commit)

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

* group ring params under a single struct

* gfhe: get rid of constant generics

* tfhe: get rid of constant generics

* polish & clean a bit

* add methods for encoding constants for ct-pt-multiplication
2025-08-14 18:32:43 +02:00
d60eb1dff1 add discretized torus & 𝕋_<N,q>[X]; organize a bit arith crate 2025-07-22 06:22:06 +00:00
17b1e9ed43 add Ring trait, adapt R & Rq to it; add TR (tuple_ring) 2025-07-09 16:44:39 +02:00
6090116a8b add ckks encrypt & decrypt 2025-07-05 16:25:46 +02:00
a8117140fc implement CKKS encoder & decoder 2025-07-04 19:48:17 +02:00
b968310ce1 polish, tensor & mul with relinearization works for some parameters choice 2025-06-22 23:04:28 +02:00
19457c98dd mv arithmetic arith 2025-06-22 19:15:14 +02:00
7740a3ef3e work on tensor, fix mul by constant(plaintext) 2025-06-22 18:42:50 +02:00
d2fc32ac0c add wip version of tensor & relinearization 2025-06-22 15:51:20 +02:00
f3a368ab6a add ciphertext-by-const (plaintext) addition & mult 2025-06-22 13:24:35 +02:00
9a7fcb08d0 add BFV newkey, encrypt, decrypt, and homomorphic addition impl 2025-06-21 22:13:11 +02:00