John M. Schanck
97968b3768
ntru: Match sample_fixed_weight to spec. Changes KATs. (c.f. Simone Dutto pqcforum 20200731)
2021-03-24 21:02:48 +00:00
John M. Schanck
b5dab8de93
Update NTRU
...
Oussama Danba caught a bug in how we were handing a test related to
ciphertext encoding. Not a security issue as far as we can tell, but
certainly not the correct behavior.
More detail here: e0ab9525f1
This commit also switches ntruhrss701/avx2/poly_S3_inv to the
Bernstein--Yang code, also slightly simplifies the poly_Rq_to_S3
routine.
2021-03-24 21:02:48 +00:00
John M. Schanck
f80ed6dce2
ntru: sort includes
2021-03-24 21:02:48 +00:00
John M. Schanck
61e52f8004
ntru: fix narrowing warning
2021-03-24 21:02:48 +00:00
John M. Schanck
4267e51253
ntru: packaging script update. resolves #331
2021-03-24 21:02:48 +00:00
John M. Schanck
97e0aad338
NTRU: Move crypto_sort_int32.h include to top of sample.c
2021-03-24 21:02:46 +00:00
John M. Schanck
2f56d17d67
NTRU: more explicit casts for MS compiler
2021-03-24 21:02:46 +00:00
John M. Schanck
f772093fd4
NTRU: add explicit cast for MS compiler
2021-03-24 21:02:46 +00:00
John M. Schanck
f37f0f3e85
Update NTRU and add AVX2 NTRU implementations
2021-03-24 21:02:46 +00:00
John Schanck
0d7743d576
Update NTRU ( #311 )
...
* Update NTRU
version: https://github.com/jschanck/ntru/tree/485dde03
* Fixed ntruhrss701/clean/Makefile.Microsoft_nmake
2021-03-24 21:02:46 +00:00
Thom Wiggers
f792b925b4
Enable optimizers on Windows ( #244 )
2019-10-21 14:23:59 +02:00
Thom Wiggers
199adb8072
Add -Wredundant-decls
2019-05-20 16:12:01 +02:00
Douglas Stebila
e568dd09c0
Copy ntru fixes from recent commits
2019-04-29 09:41:17 -04:00
Joost Rijneveld
68b12866ce
Use more standard Wvla
2019-04-24 13:52:02 +02:00
Joost Rijneveld
e32666a0ab
Throw errors when using variable-length arrays
...
Windows already complains about this in CI, but this will
let us catch these issues on Linux as well.
2019-04-24 12:35:17 +02:00
Thom Wiggers
b5d4e93478
Add -O3 to CFLAGS
2019-04-17 11:56:16 +02:00
Thom Wiggers
48bae57f24
Fix NTRU implementation according to c7fa0b98bc
2019-04-16 15:25:18 +02:00
Thom Wiggers
e711d6e3b9
Fix hash length in NTRU
2019-04-16 13:37:50 +02:00
Thom Wiggers
873216c702
Fix integer overflow problems in NTRU
2019-04-16 13:37:50 +02:00
Thom Wiggers
3431dd2e0a
No reason for C source files to be executable
2019-04-16 13:28:44 +02:00
Douglas Stebila
e72fd489ba
Add ntruhps2048509 ( #105 )
...
* Initial ntruhps2048509 implementation
* Turn compile-time #if's into runtime if's
* Test vector hash
* Resolve linter complaints
* Apply astyle
* Address Windows compiler complaints
* Address more Windows compiler complaints
* More Windows compiler complaints
* Apply astyle
* Add -Wmissing-prototypes
Co-Authored-By: dstebila <dstebila@users.noreply.github.com>
* Fix -Wmissing-prototypes errors, update LICENSE
2019-04-13 13:08:07 -04:00