13 Commits

Author SHA1 Message Date
c6296ae545 function enc_ngs: Now FFT(msg) is computed before the loop instead of inside it 2022-04-06 14:35:23 +02:00
834d9f2ab9 Implemented function to encrypt polynomials into vector ciphertext
Several parts of the key generation were actually encrypting polynomials
and integers into vector ciphertexts, thus, now they just call the new
function enc_ngs. As a result, the key generation code is simpler to
understand. Morevoer, future applications may want to generate vector
ciphertexts, thus, the function enc_ngs is interesting on its own.
2022-04-06 14:35:23 +02:00
3e02733b2d Removed some blank lines 2022-03-11 13:58:18 +01:00
13bada8957 Fixed some comments on lwehe.h and ntruhe.h 2022-03-11 13:55:33 +01:00
fe261e2a1c Created ct_not_const to speed up SchemeNTRU::not_gate 2022-03-11 12:58:21 +01:00
de62bcd412 SchemeNTRU::not_gate implemented 2022-03-11 12:45:36 +01:00
60c01e16d8 SchemeLWE::not_gate implemented 2022-03-11 12:45:03 +01:00
a1665c2ddc NTRU scheme: homomorphic XOR gate implemented 2022-03-11 10:48:48 +01:00
b2aa2d2cda LWE scheme: homomorphic XOR gate implemented 2022-03-11 10:22:00 +01:00
3d7110d5d1 importint cassert in params.h to avoid compilation errors 2022-03-10 14:49:30 +01:00
3e273714b8 Refacto headers 2022-01-18 23:46:26 +01:00
bd0c6ed153 Refactor tests and source 2022-01-18 23:43:13 +01:00
f7c29bedb1 Add files via upload 2022-01-18 15:18:50 +01:00