Commit Graph

483 Commits

Author SHA1 Message Date
Jean-Philippe Bossuat
9e007c988f Backend refactor (#120)
* remove spqlios, split cpu_ref and cpu_avx into different crates

* remove spqlios submodule

* update crate naming & add avx tests
2025-11-19 15:34:31 +01:00
Jean-Philippe Bossuat
84598e42fe Merge pull request #116 from phantomzone-org/dev_cross_base2k
Add cross-base2k ops
2025-11-19 10:22:22 +01:00
Pro7ech
43fc5119f4 Added glwe rank switch before glwe -> lwe 2025-11-19 10:15:30 +01:00
Pro7ech
c23cf7803b Working schemes 2025-11-19 09:31:50 +01:00
Pro7ech
48757fac7c working cross-base2k circuit bootstrapping 2025-11-19 09:23:51 +01:00
Pro7ech
59a1b6616a Fix seeded glwe encryption 2025-11-18 23:57:24 +01:00
Pro7ech
2fb1627613 fixed many test noise check + update noise retrieval (not passing) 2025-11-18 17:38:16 +01:00
Pro7ech
0d4f7ed424 Add cross-base2k GGSW product 2025-11-18 09:30:54 +01:00
Pro7ech
f39e3e2865 Remove Zn (replaced by VecZnx), add more cross-base2k ops & tests 2025-11-18 01:08:20 +01:00
Pro7ech
a3264b8851 Update cross-base2k keyswitch routine & tests, + add GLWE cross base2k conversion test 2025-11-17 16:48:52 +01:00
Pro7ech
923db5e715 Add updated noise equation for glwe keyswitch 2025-11-17 16:48:00 +01:00
Pro7ech
84adaa4a83 small variables naming consistency change 2025-11-17 16:47:47 +01:00
Pro7ech
bd80e8eadb re-enable disable test 2025-11-17 16:47:14 +01:00
Pro7ech
b29ba4fbdb remove problematic assertion 2025-11-17 16:46:56 +01:00
Pro7ech
6c03542599 fix .max_k() returning wrong value 2025-11-17 16:46:33 +01:00
Pro7ech
08d3f55af9 fix cross-base2k vec_znx_normalize wrong early carry 2025-11-17 16:46:33 +01:00
Pro7ech
2613bf1450 Add identity BDD 2025-11-16 16:02:59 +01:00
Pro7ech
f9dcddcce1 Add offset to blind retrieval 2025-11-16 13:55:40 +01:00
Pro7ech
b062c722a0 Add support for blind retrieval 2025-11-15 22:41:11 +01:00
Pro7ech
28102b684f improve glwe_trace noise 2025-11-14 21:04:57 +01:00
Pro7ech
1ad54f53a8 Add bddkey encrypt sk tmp_bytes 2025-11-14 16:47:14 +01:00
Pro7ech
efdadb9592 Add circuit bootstrapping encrypt sk tmp_bytes 2025-11-14 16:44:12 +01:00
Pro7ech
b11213c454 Add glwe_normalize_tmp_bytes & update assertion error 2025-11-12 22:49:12 +01:00
Pro7ech
b034ea8253 fix multithread bdd 2025-11-12 20:25:19 +01:00
Jean-Philippe Bossuat
10d1780aaa Merge pull request #112 from phantomzone-org/bdd_multi_thread
Bdd multi thread
2025-11-12 15:41:55 +01:00
Pro7ech
33e1656368 Remove T from GetBitCircuit 2025-11-12 15:08:21 +01:00
Pro7ech
1423de1c46 Add multi-thread bdd eval 2025-11-12 11:04:32 +01:00
Pro7ech
6924ffd94a Add prepare multi thread 2025-11-11 23:30:20 +01:00
Pro7ech
af45595848 Improve noise stats functionality 2025-11-11 11:19:17 +01:00
Jean-Philippe Bossuat
e7bf8e9307 fix sext 2025-11-08 18:14:58 +01:00
Pro7ech
8f7cb9fbc5 Add decrypt on fhe_uint_prepared 2025-11-08 12:14:05 +01:00
Pro7ech
75842cd80a Improve cmux speed 2025-11-07 17:56:33 +01:00
Pro7ech
836df871fe Add normalize in cmux & uint_prepared to uint 2025-11-07 16:30:47 +01:00
Pro7ech
f13d61443c fix api inconsistency 2025-11-07 08:53:53 +01:00
Pro7ech
c99bc86120 Merge branch 'dev-phantom_features' 2025-11-07 08:49:41 +01:00
Pro7ech
1d23dfc078 Update to custom fheuint prepare 2025-11-07 08:49:32 +01:00
Rasoul Akhavan Mahdavi
5cf184d950 partial fheuint preparation 2025-11-07 00:47:29 -05:00
Pro7ech
c32db7d963 add take ggsw slice 2025-11-06 19:01:21 +01:00
Pro7ech
785bb46df2 fix decoding to use rounded division instead of arithmetic right shift 2025-11-06 11:20:53 +01:00
Rasoul Akhavan Mahdavi
dc2d399602 avoid warnings 2025-11-05 20:38:20 -05:00
Pro7ech
18652da7e0 fix gglwe to ggsw key layout type 2025-11-05 22:21:26 +01:00
Pro7ech
be6483df75 Add bit/byte extraction to glwe 2025-11-05 15:17:55 +01:00
Pro7ech
92cfef5b60 add zero_byte for fhe_uint & fix test for glwe blind selection 2025-11-05 10:21:55 +01:00
Pro7ech
6cf571c0b0 add sext for fheuint 2025-11-05 09:25:05 +01:00
Pro7ech
f84bb02bc9 Fix API consistency 2025-11-04 15:55:43 +01:00
Pro7ech
5f30168cb5 Add glwe blind selection 2025-11-04 14:07:18 +01:00
Pro7ech
5e1f72402a Add helper trait for BDDKey 2025-11-03 14:22:11 +01:00
Jean-Philippe Bossuat
2feda14b63 removed unused field in macro + fixed BDD circuit eval for bits with 0 nodes 2025-10-31 10:35:23 +01:00
Jean-Philippe Bossuat
578ed45b9a Enables external circuits to be called 2025-10-31 10:01:02 +01:00
Pro7ech
f6170d01d3 update doc 2025-10-30 16:48:24 +01:00