Commit Graph

319 Commits

Author SHA1 Message Date
Jean-Philippe Bossuat
56dbd29c59 Ref. + AVX code & generic tests + benches (#85) 2025-09-15 16:16:11 +02:00
Pro7ech
99b9e3e10e updated README 2025-08-25 12:33:53 +02:00
Pro7ech
39062462bc Merge branch 'dev_cleanup' 2025-08-25 11:59:30 +02:00
Pro7ech
a1b865709d renamed vmp API closer to spqlios 2025-08-25 11:58:57 +02:00
Pro7ech
1551f7a6f0 rename raw dft ops 2025-08-25 09:08:27 +02:00
Pro7ech
62448e0293 Move znx layouts traits to layouts 2025-08-24 17:21:05 +02:00
Pro7ech
bf513dc555 Add Zn type 2025-08-21 12:17:10 +02:00
Jean-Philippe Bossuat
ccd94e36cc Update READMEs & add SECURITY.md (#78) 2025-08-20 20:52:59 +02:00
Pro7ech
3b94ab047e update README 2025-08-18 11:32:39 +02:00
Jean-Philippe Bossuat
a1de248567 Crates io (#76)
* crates re-organisation

* fixed typo in layout & added test for vmp_apply

* updated dependencies
2025-08-18 11:16:27 +02:00
Pro7ech
dce4d82706 cleaned dependencies 2025-08-17 15:17:37 +02:00
Jean-Philippe Bossuat
62eb87cc07 updated repo for publishing (#74) 2025-08-17 14:57:39 +02:00
Jean-Philippe Bossuat
0be569eca0 Clippy check & update CI (#73)
* updated CI workflow with clippy & fmt
2025-08-17 13:02:47 +02:00
Jean-Philippe Bossuat
3a828740cc Traits cleaning, CBT example & bug fixes (#72)
* Some cleaning, CBT example, fix mod switch and add LUT correctness test to BR test

* finished trait cleaning

* removed trait aliastoutside of backend
2025-08-16 18:23:22 +02:00
Jean-Philippe Bossuat
c7219c35e9 Add schemes (#71)
* Move br + cbt to schemes/tfhe

* refactor blind rotation

* refactor circuit bootstrapping

* renamed exec -> prepared
2025-08-15 15:06:26 +02:00
Jean-Philippe Bossuat
8d9897b88b core refactoring (#69) 2025-08-14 17:20:28 +02:00
Pro7ech
6303346eef More serialization tests & compressed structs 2025-08-13 20:01:44 +02:00
Jean-Philippe Bossuat
504cb72f82 Add CBT prototype (#68) 2025-08-13 15:56:09 +02:00
Pro7ech
940742ce6c Added more serialization tests + generalize methods to any n 2025-08-13 15:28:52 +02:00
Jean-Philippe Bossuat
068470783e Fix compressed encryptions & add GGSW compressed encryption (#67)
* Added decompress test

* updated encryption sampling & fixed bug in glwe -> lwe test

* Added GGSW compressed encryption
2025-08-13 09:45:44 +02:00
Jean-Philippe Bossuat
9aa4b1f1e2 Dev serialization (#64)
* Added compressed serialization for GLWECiphertext + Ciphertext decompression

* Added compressed serialization for GGLWECiphertext & GLWESwitchingkey

* generalized automorphism test

* Removed ops on scalar_znx, replaced by as_vec_znx/as_vec_znx_mut and then call op on vec_znx

* Added tests for automorphism key encryption

* Added tensorkey compressed

* added ggsw compressed
2025-08-12 17:43:28 +02:00
Jean-Philippe Bossuat
4c59733566 Add & fix CI (#60) 2025-08-08 19:59:29 +02:00
Pro7ech
5d0d545f6a added back logo 2025-08-08 19:24:08 +02:00
Jean-Philippe Bossuat
0e0745065e Add Hardware Abstraction Layer (#56) 2025-08-08 19:22:42 +02:00
Jean-Philippe Bossuat
833520b163 Merge pull request #54 from phantomzone-org/jay/fhe-vm-fixes
Jay/fhe vm fixes
2025-07-15 20:19:22 +02:00
Jean-Philippe Bossuat
07a1d7227e More fixes 2025-07-15 20:18:45 +02:00
Jean-Philippe Bossuat
a8e8743b50 Various fixes 2025-07-15 20:09:37 +02:00
Jean-Philippe Bossuat
ff84e7e859 Revert "Fix glwe/test_fft64/encrypt_sk for case k_pt < basek"
This reverts commit 30b5edc536.
2025-07-15 19:51:21 +02:00
Jean-Philippe Bossuat
90bb0ba60f Merge remote-tracking branch 'origin/main' into jay/fhe-vm-fixes 2025-07-15 17:46:56 +02:00
Jean-Philippe Bossuat
6902addd94 Merge pull request #51 from phantomzone-org/dev_blind_rotate
Add CGGI blind rotation
2025-07-15 17:40:14 +02:00
Jean-Philippe Bossuat
52a6a130a5 Fixes after meeting 2025-07-11 13:03:11 +02:00
Janmajaya Mall
790b2c2d91 Merge branch 'dev_blind_rotate' into jay/fhe-vm-fixes 2025-07-09 16:54:00 +05:30
Janmajaya Mall
64edc869d0 Two changes:
- Fix setting `k` in `GlweOps`
- Improve GLWEPacker API avoid accumulating beyond limit (#50)
2025-07-09 16:23:56 +05:30
Jean-Philippe Bossuat
38df06f7ab Fixed lut generation 2025-07-08 18:50:04 +02:00
Jean-Philippe Bossuat
0e65df9795 export blind rotation 2025-07-08 17:00:50 +02:00
Jean-Philippe Bossuat
2e0e7e11b4 Enforce extension factor to be a power of two 2025-07-08 13:54:20 +02:00
Jean-Philippe Bossuat
af5bbbb55d fixed modulus switching rounding 2025-07-08 13:48:51 +02:00
Jean-Philippe Bossuat
f7c94cd84a fixed standard binary cggi blind rotation & fixed GLWECiphertext::external_product_scratch_space returning too small values 2025-07-08 13:37:35 +02:00
Jean-Philippe Bossuat
992cb3fa37 Added missing tests for CGGI & added standard blind rotation 2025-07-08 13:23:38 +02:00
Jean-Philippe Bossuat
5234c3fc63 Added LWE-GLWE conversion & LWE Keyswitch, improved LUT generation 2025-07-08 12:49:24 +02:00
Janmajaya Mall
b99f43aa0f Make GLWECiphertextToRef/{ToMut} implement Infos 2025-07-08 13:53:43 +05:30
Janmajaya Mall
463731948d Bug fixes
- fixed `encoding.rs/decode_coeff_i64` for the case `k < basek2`
- `glwe/external_product.rs/external_product_scratch_space` did not allocate enough space for [`a_dft`](829b8be610/core/src/glwe/external_product.rs (L83)) when `k_out < k_ggsw`. Fixed by replacing `in_size` with `ggsw_size`.
- `glwe/ops.rs/add` sets `basek` and `k`of `self` GLWECiphertext whic is invalid because the `size` which depends on `inner` data remains unchanged.
- (not a fix) expose `backend` from `core`.
2025-07-06 12:40:08 +05:30
Janmajaya Mall
2a5e0e7dc3 remove OsRng from sample/src/source.rs 2025-07-04 17:56:30 +05:30
Janmajaya Mall
30b5edc536 Fix glwe/test_fft64/encrypt_sk for case k_pt < basek 2025-07-04 17:32:19 +05:30
Janmajaya Mall
c4a517e9c3 Fix decode_vec_i64 to handle the case k < basek 2025-07-04 16:03:46 +05:30
Jean-Philippe Bossuat
e8454cd5f1 small fix on scratch space size 2025-07-03 11:39:46 +02:00
Jean-Philippe Bossuat
81fb710165 wip on extended br + bug fixing 2025-07-03 11:38:43 +02:00
Jean-Philippe Bossuat
c98bf75b61 Fixed lut & added test for lut 2025-07-02 12:25:22 +02:00
Jean-Philippe Bossuat
52154d6f8a wip CGGI BR for extended LUT 2025-06-20 11:00:04 +02:00
Jean-Philippe Bossuat
4c1a84d702 Added support for arbitrary extended LUT 2025-06-19 16:33:47 +02:00