Commit Graph

31 Commits

Author SHA1 Message Date
lehugueni
9ebcc9aa0f style: apply feedback from pr 2025-06-20 16:36:48 +02:00
lehugueni
056040ac4c Merge branch 'uint64-syncpool' into ts-sampling 2025-02-20 16:20:36 +01:00
lehugueni
48cc4a596f style: clean up 2025-02-20 15:37:01 +01:00
lehugueni
2da1be7e15 refactor: make keyedprng thread-safe, restrict usage + add warning 2025-02-20 15:07:30 +01:00
lehugueni
89af606619 feat: make samplers thread-safe + thread safe prng in encryptor 2025-01-27 13:35:28 +01:00
Jean-Philippe Bossuat
952047663d Cleared all instances of G115 2025-01-21 09:15:17 +01:00
Romain Bouyé
e9e04b1445 applying lattigo-e patch
CHANGELOG:
- Update of `PrecisionStats` in `ckks/precision.go`:
  - precision/error stats computed as log2 of min/max/average/...
  - fields renamed (`MinPrecision` -> `MINLog2Prec`, `MaxPrecision` -> `MAXLog2Prec`, ...)
  - `rlwe.Scale` has a `.Log2()` method
- Update of `mod1.Parameters` fields (made public, some removed)
- Improvement of the relinearization key-generation protocol (reduce the degree of the shares)
- Serialisation of bootstrapping keys
- Lower noise incurred by `ModUp`
- Evaluation keys can be compressed (public element `a` can be generated from a seed)
- More doc formatting
- Fix various bugs:
  - `ShallowCopy` of the CKKS bootstrapping evaluator and BFV evaluator not deep enough.
  - PSI example failing
  - Incorrect reset of pointer in uniform sampler
  - Error when doing inverse NTT with small degree
  - Mod1Evaluator changes the input ciphertext

Co-authored-by: Andrea Caforio <andrea.caforio@protonmail.com>
Co-authored-by: Jean-Philippe Bossuat <jean-philippe@tuneinsight.com>
2024-10-07 11:46:55 +02:00
Andrea Caforio
f8b84f5165 Merge pull request #492 from tuneinsight/he-collapse
v6.0.0
2024-08-06 14:46:08 +02:00
Andrea Caforio
d91c463005 correctly share buffer pointer across sampling instances 2024-06-11 16:32:00 +02:00
Jean-Philippe Bossuat
c031b14be1 updated imports to v5 2023-11-14 19:15:38 +01:00
Jean-Philippe
523a09070f some panic doc 2023-10-24 11:32:57 +02:00
Jean-Philippe Bossuat
358d04eacb Update ring/sampler_gaussian.go
Co-authored-by: Adrien Prost <amprost@protonmail.ch>
2023-10-20 11:04:56 +02:00
Jean-Philippe Bossuat
b752829f01 Update ring/sampler_gaussian.go
Co-authored-by: Adrien Prost <amprost@protonmail.ch>
2023-10-20 11:04:25 +02:00
Jean-Philippe Bossuat
8f776469dc [ring]: updated normFloat64 readability 2023-10-20 10:40:32 +02:00
Jean-Philippe Bossuat
8a085efeea [ring]: small code improvement 2023-10-13 16:36:19 +02:00
Jean-Philippe Bossuat
908664f27e [all]: dereferencing pass 2023-06-27 16:44:21 +02:00
Christian Mouchet
aff591c3a8 simplified distribution parameter interface and re-enabled parameters marshalling
The distribtion interface was too complicated for what it provided. To achieve its
intended functionality, larger changes needed to occure such as including the base ring
in the Distribution interface and probably moving the samplers to the rlwe package.
Since this is not the envision goal of this PR, I simplified the distribution
parameterization so that it meets these goals.
2023-06-15 12:52:36 +02:00
Jean-Philippe
64c6428f3f rebased on #309 2023-05-22 09:58:57 +02:00
Jean-Philippe Bossuat
62a2f998b2 [ckks]: arbitrary precision 2023-05-22 09:47:49 +02:00
Jean-Philippe Bossuat
789b1cc113 rebased on #306 2023-05-22 09:21:55 +02:00
Jean-Philippe Bossuat
6c7ec9b124 [ring]: added large std normal sampling 2023-05-22 09:21:37 +02:00
Jean-Philippe Bossuat
6b7997a2c2 rebased on #306
-


-
2023-05-22 09:21:37 +02:00
Christian
2710480d15 added first draft for JSON-marshallable paramaters revamp
working but incomplete parameter revamp
2023-05-22 09:21:37 +02:00
Jean-Philippe Bossuat
5e23a4170c 1st attempt at adding sec check and rework sampler & distributions
rebased on #306 


Fixed all tests
2023-05-22 09:21:37 +02:00
Jean-Philippe Bossuat
e8a2746ac8 gosec 2023-03-30 12:33:49 +02:00
Jean-Philippe Bossuat
cb20936495 [utils]: added subpacakges and updated Write/Read API 2023-03-21 10:44:10 +01:00
Jean-Philippe Bossuat
221e83d2e3 godoc 2023-02-16 21:17:30 +01:00
Jean-Philippe Bossuat
39001922c6 review changes 2023-01-06 23:10:31 +01:00
Jean-Philippe Bossuat
432ebbb749 wip 2022-12-09 19:32:03 +01:00
Jean-Philippe Bossuat
8d0b294c00 [ring]: refactor 2022-12-06 17:55:11 +01:00
Christian Mouchet
f79f0ef1bb standardized .go file names 2022-11-03 10:21:41 +01:00