b554fbbe54
if(gate == XOR) was appearing two times in a test. Just removed it.
2022-03-11 14:05:09 +01:00
3e02733b2d
Removed some blank lines
2022-03-11 13:58:18 +01:00
07fa6efac8
Fixed bug when on SchemeNTRU::not_gate
...
When the same variable was passed as the first and the second argument
of the not_gate, the result was always zero, i.e.,
after SchemeNTRU::not_gate(c, c), c was an encryption of 0
2022-03-11 13:50:59 +01:00
8b3ee51696
Created tests for not gates of both NTRU and LWE schemes
2022-03-11 12:59:05 +01:00
d9c77a45a7
Tests for NTRUScheme::xor_gate
2022-03-11 10:55:42 +01:00
f943091bf0
Tests for LWEScheme::xor_gate
2022-03-11 10:22:28 +01:00
8a44bab96d
NTRU scheme: tests for composition of gates (e.g. OR(OR(OR(a, b),c), d))
2022-03-10 15:38:50 +01:00
9dd4075e85
Improved print messages
2022-03-10 15:17:44 +01:00
0c7e15fc01
LWE scheme: tests for composition of gates (e.g. NAND(NAND(NAND(a, b), c), d))
2022-03-10 15:10:38 +01:00
24eceefae9
Refactor tests
2022-01-20 21:00:39 +01:00
305a6cc87d
Compile library and tests separately
2022-01-19 16:49:29 +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