Commit Graph

47 Commits

Author SHA1 Message Date
Christian M
1628ae0dbf changed the import path for v2 2020-10-09 12:30:31 +02:00
Juan R. Troncoso
258dd1538b Revised README and documentation of the examples 2020-10-07 01:59:22 +02:00
Jean-Philippe Bossuat
b00479b420 [bfv/ckks] : renamed "xxx"Element, ckks : made verifytestvector public (for the examples)
golint
2020-09-14 11:54:30 +02:00
Christian M
f4adb1a613 [bfv/ckks] unexporting the fields of bfv.Parameters 2020-09-03 14:21:43 +02:00
Elie Daou
823468ab1b [sampling] migrate all samplers off crypto/rand 2020-06-04 00:19:06 +02:00
Jean-Philippe Bossuat
4c1ad7c0ae Guidelines review BFV : 2/14 + params revamp 2020-03-30 14:52:08 +02:00
Christian Mouchet
17b8ba890f Merge branch 'dev_v1.3.0' into encryptor-interface 2019-12-18 14:28:10 +01:00
Jean-Philippe Bossuat
6d19e61e0e Fixes
BFV/CKKS : ciphertext marshaling now properly works when the target is a ciphertext that isnt a bfv or ckks element.

BFV/CKKS : API change on key-generator, Gen is now a prefix to indicate that there is sampling, while New is a prefixe to indicate the creation of an empty struct.
2019-12-17 15:54:38 +01:00
Christian Grigis
93705ce6b3 bfv: change Encryptor to an interface 2019-12-16 17:04:56 +01:00
Christian Mouchet
8ccdf34f3f CKKS: default parameter selection 2019-12-04 17:36:31 +01:00
Jean-Philippe Bossuat
cb1428acf9 CKKS : new interface for params 2019-12-03 15:55:19 +01:00
Christian Mouchet
85a604ab46 new interface for param 2019-12-03 11:00:23 +01:00
Jean-Philippe Bossuat
fdb48e734d new params 2019-12-02 22:54:16 +01:00
Jean-Philippe Bossuat
f5a874455e RING : fixed bug in miller rabin due to bad range sampling (false negatives) 2019-12-02 13:08:50 +01:00
Christian M
786fe99bdb unexported bfvContext and finished updating DBFV 2019-12-01 00:25:30 +01:00
Christian Grigis
46dfa274c0 Fix examples 2019-11-29 20:38:22 +01:00
Jean-Philippe Bossuat
4e88c53f80 BFV/CKKS : removed rescaling params. Simplified ModDown.
CKKS : reverted back Plaintext API to normal
Examples : fixed
2019-11-29 17:33:26 +01:00
Christian Grigis
6991072a2f Added keygen context for bfv 2019-11-28 18:27:03 +01:00
Christian Grigis
18d42fec5f Rename NewRingContext() as it applies to plain texts as well 2019-11-28 18:22:43 +01:00
Christian Grigis
a7668cbf7f Added decryptor context for bfv 2019-11-28 18:21:44 +01:00
Christian Grigis
00f64b06ba Added evaluator and encryptor contexts for bfv 2019-11-28 18:18:29 +01:00
Christian Grigis
e98353ecb5 Changed all NewEncoder()'s to receive params 2019-11-28 18:18:28 +01:00
Jean-Philippe Bossuat
f7b6eeb426 Ring : golint 2019-11-27 10:42:40 +01:00
Jean-Philippe Bossuat
d7b238771f examples 2019-11-26 17:35:36 +01:00
Jean-Philippe Bossuat
05c65154b7 GoDoc and Typos 2019-11-26 15:46:30 +01:00
Jean-Philippe Bossuat
e6c87a3447 BFV : marshalers
Others : bfvcontext and ckkscontext are now called context
2019-11-25 17:44:09 +01:00
Jean-Philippe Bossuat
135be7052d DBFV examples 2019-11-20 14:07:25 +01:00
Jean-Philippe Bossuat
3bac2027af bfv/ckks/dbfv/dckks error management 2019-11-19 10:56:43 +01:00
Jean-Philippe Bossuat
4a64c42587 ring, bfv : errors management
Errors that would previously induce a crash (ex. invalid parameters) are now handled with panic.
2019-11-18 17:31:06 +01:00
Jean-Philippe Bossuat
e43a55b557 BFV : new tests 2019-11-14 13:00:17 +01:00
Jean-Philippe Bossuat
2d1284661b fixed examples -> BFV 2019-11-12 10:51:54 +01:00
Juan Ramón Troncoso-Pastoriza
de21f02390 Revised examples for CKKS and BFV 2019-10-01 18:13:59 +02:00
Jean-Philippe Bossuat
9a95105277 Updated examples and readme 2019-10-01 09:36:21 +02:00
Jean-Philippe Bossuat
adcbec1d2e reduced the number of possible errors 2019-09-28 15:45:12 +02:00
Jean-Philippe Bossuat
589fcbec4a bfv/ckks keygen 2019-09-28 13:43:07 +02:00
Jean-Philippe Bossuat
b36d73f8b1 fixed dbfv, go fmt 2019-09-28 09:37:06 +02:00
Jean-Philippe Bossuat
2a4284f577 code cleaning 2019-09-27 15:23:42 +02:00
Christian Mouchet
ae7978b886 Merge branch 'master' into master_improvements 2019-09-25 18:48:00 +02:00
Joao Andre Gomes de Sa Sousa
fe7d2deb69 Changed the name of the organization in the and license (#10)
Our lab recently changed name for LDS (Laboratory for Data Security).
2019-09-24 18:39:04 +02:00
Christian Mouchet
8c84399938 evaluator operates over bfvElement struct (up to Mul) 2019-09-12 15:22:15 +02:00
Christian Mouchet
0b0617952b Created an Operand interface and reshaped the BigPoly class 2019-09-11 17:56:12 +02:00
Jean-Philippe Bossuat
2b30b2f708 Added Knuth-Yao Ternary sampler
Allows to sample within {-1, 0, -1} with pr =  [p/2, 1-p, p/2], for an arbitrary p. Faster than the current sampler.
go fmt
2019-09-06 10:56:36 +02:00
Jean-Philippe Bossuat
4c7651b9ea BFV : updated params, testing and example 2019-09-05 15:06:00 +02:00
Jean-Philippe Bossuat
2f2f1bae8a ring : context benchmark
others : switched some methods to private
2019-09-04 12:05:21 +02:00
Jean-Philippe Bossuat
3cfee9b4ad Ring : godoc, minor optimization, some code cleaning, removed unused functions. 2019-08-27 12:38:15 +02:00
ChristianMct
98730fd1af Fixed failing BFV relinearization test (closes #7)
* fixed complex scaling in ring that would return values above the expected bitsize, which fixed the BFV errors in relinearization.
2019-08-22 05:11:44 -07:00
Jean-Philippe Bossuat
4421f325b0 Initial commit 2019-08-12 21:15:01 +02:00