Commit Graph

411 Commits

Author SHA1 Message Date
Jean-Philippe Bossuat
b80bcb8bbd fixed another buffer overflow of coefficient zeroing 2025-05-16 09:56:39 +02:00
Jean-Philippe Bossuat
49a08289db base2k: fixed buffer zeroing overflow 2025-05-16 09:47:04 +02:00
Jean-Philippe Bossuat
ccd7450c5f refactor of key-switching & external product 2025-05-15 18:24:56 +02:00
Jean-Philippe Bossuat
723a41acd0 fixed tests for ciphertext fourier 2025-05-15 10:45:06 +02:00
Jean-Philippe Bossuat
67594e2e3f fixed benchmarks 2025-05-15 10:07:36 +02:00
Jean-Philippe Bossuat
4c55a7df44 updated ggsw product noise prediction & added test for ggsw x glwe of rank > 1 2025-05-14 16:57:57 +02:00
Jean-Philippe Bossuat
f517a730a3 updated key-switch for rank switching & updated glwe key-switching test 2025-05-14 16:35:04 +02:00
Jean-Philippe Bossuat
cb1928802a Added noise based test for glwe pk enc 2025-05-14 14:57:04 +02:00
Jean-Philippe Bossuat
d489bef105 hard coded noise bound to 6 sigma 2025-05-14 09:18:46 +02:00
Jean-Philippe Bossuat
66188a12a6 added multiple rank glwe enc sk & fixed decryption for glwe 2025-05-14 09:10:05 +02:00
Jean-Philippe Bossuat
dee889dc0c working on adding rank to glwe (all test passing) 2025-05-14 08:42:45 +02:00
Jean-Philippe Bossuat
31b14ee585 rework for GLWE 2025-05-13 09:56:55 +02:00
Jean-Philippe Bossuat
d8a7d6cdaf Some traits updates + added missing tests for products on RGSWCt 2025-05-12 14:40:17 +02:00
Jean-Philippe Bossuat
e38ca404f9 Added tests for GRLWE x RGSW 2025-05-12 09:27:04 +02:00
Jean-Philippe Bossuat
73098af73a abstracted products for all cross types 2025-05-11 20:52:10 +02:00
Jean-Philippe Bossuat
54fab8e4f3 renamed crate & files 2025-05-11 11:16:30 +02:00
Jean-Philippe Bossuat
5d56d78d91 factorized out vmp ops into a common trait & implementation 2025-05-10 18:14:33 +02:00
Jean-Philippe Bossuat
4e5a8dba09 fixed rgsw mul rlwe test 2025-05-10 15:37:13 +02:00
Jean-Philippe Bossuat
912876807e wip: rgsw ops test 2025-05-10 11:39:16 +02:00
Jean-Philippe Bossuat
17e1678fb0 Added scratch space size for rgsw ops 2025-05-10 11:27:54 +02:00
Jean-Philippe Bossuat
ee7b5744e4 Added rgsw ops 2025-05-10 11:26:01 +02:00
Jean-Philippe Bossuat
9913040aa1 Added grlwe ops + tests 2025-05-09 18:24:08 +02:00
Jean-Philippe Bossuat
de3b34477d added rgsw encrypt + test 2025-05-08 18:32:19 +02:00
Jean-Philippe Bossuat
107e83c65c Added grlwe encrypt + test 2025-05-08 15:35:21 +02:00
Jean-Philippe Bossuat
1f384ce54d Added vec_znx_add/sub_scalar & available on Scratch 2025-05-08 15:21:24 +02:00
Jean-Philippe Bossuat
8b3b2e4b9c added grlwe sk encryption 2025-05-08 11:19:54 +02:00
Jean-Philippe Bossuat
398ad604d9 added GRLWE and RGSW 2025-05-08 10:24:35 +02:00
Jean-Philippe Bossuat
2ec905bbc3 added vec_znx_idft_consume 2025-05-08 10:16:20 +02:00
Jean-Philippe Bossuat
48ac28c4ce Added sk/pk encryption for rlwe/rlwedft with tests 2025-05-07 17:04:42 +02:00
Jean-Philippe Bossuat
6cbd2a6a93 Some fixes & QoL to Base2k 2025-05-07 16:47:58 +02:00
Jean-Philippe Bossuat
64874dbda8 multiples fixes to base2k, including svp to take into account column interleaving 2025-05-07 15:51:01 +02:00
Jean-Philippe Bossuat
6ce525e5a1 added sk encryption 2025-05-07 12:05:22 +02:00
Jean-Philippe Bossuat
240884db8d fixed wrong buffer size zeroing 2025-05-07 12:05:22 +02:00
Jean-Philippe Bossuat
a6224f7563 updated Scalar name 2025-05-07 12:05:22 +02:00
Jean-Philippe Bossuat
ccebb80660 wip 2025-05-07 12:05:22 +02:00
Jean-Philippe Bossuat
9afe9372bd wip, playing with base2k traits in rlwe crate to ensure inherent compatibility 2025-05-06 18:02:07 +02:00
Jean-Philippe Bossuat
fe6f99b9ce added rlwe basic sk encryption 2025-05-06 16:43:17 +02:00
Jean-Philippe Bossuat
e35924f44c small fix to base2k rlwe encryption example 2025-05-06 16:43:06 +02:00
Jean-Philippe Bossuat
f9b194cca1 Updated svp 2025-05-06 16:02:32 +02:00
Jean-Philippe Bossuat
669450c4f1 added encrypt_tmp_bytes 2025-05-06 14:46:26 +02:00
Jean-Philippe Bossuat
d2303aa29e small fix to generalize VecZnxBigAlloc 2025-05-06 14:46:11 +02:00
Jean-Philippe Bossuat
645f1a94ac scope shuffling for encryption of rlwe with sk 2025-05-06 14:40:57 +02:00
Jean-Philippe Bossuat
4efe22e723 Start of full rewrite of rlwe crate 2025-05-06 14:38:22 +02:00
Jean-Philippe Bossuat
08e81f50c9 updated sampling traits 2025-05-06 14:35:52 +02:00
Jean-Philippe Bossuat
ffa363804b rework as discussed 2025-05-05 17:35:35 +02:00
Janmajaya Mall
bd105497fd amend rlwe_encrypt example and minor changes at multiple places 2025-05-04 19:46:22 +05:30
Janmajaya Mall
b82a1ca1b4 wip 2025-05-04 18:39:28 +05:30
Janmajaya Mall
ff8370e023 everything compiles. Scratchpad not yet implemented 2025-05-03 16:37:20 +05:30
Janmajaya Mall
3ed6fa8ab5 wip 2025-05-02 20:49:04 +05:30
Jean-Philippe Bossuat
ca5e6d46c9 Applied discussed changes, everything working, but still to discuss 2025-05-01 23:29:32 +02:00