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
f38ac3c833
HQC: updated packaging script. should resolve #327
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
Thom Wiggers
be7f11975d
Fix flags specified in HQC meta files
2021-03-24 21:02:48 +00:00
Thom Wiggers
12c99ff23a
Namespace global variable in HQC
2021-03-24 21:02:48 +00:00
John M. Schanck
6154c0d7d3
astyle
2021-03-24 21:02:48 +00:00
John M. Schanck
512adcc0db
frodo: satisfy test_boolean
2021-03-24 21:02:48 +00:00
John M. Schanck
798a7ba86b
mceliece, ntru, ntruprime: satisfy test_boolean (in int32_sort)"
2021-03-24 21:02:48 +00:00
John M. Schanck
629b89ba73
readability changes
2021-03-24 21:02:48 +00:00
John M. Schanck
35ba6edacc
trying to satisfy ms again
2021-03-24 21:02:48 +00:00
John M. Schanck
e49e512b06
ms compiler
2021-03-24 21:02:48 +00:00
John M. Schanck
5cddb24de4
typo and unary negation
2021-03-24 21:02:48 +00:00
John M. Schanck
42473fab3b
Revert "ms compiler changes for fft.c"
...
This reverts commit 99bed07f64
.
2021-03-24 21:02:48 +00:00
John M. Schanck
7c4859a159
ms compiler
2021-03-24 21:02:48 +00:00
John M. Schanck
3138c9c35f
uniform vect_compare implementations
2021-03-24 21:02:48 +00:00
John M. Schanck
d2415c6b09
ms compiler changes for reed_solomon.c
2021-03-24 21:02:48 +00:00
John M. Schanck
84005fd23a
negative return code
2021-03-24 21:02:47 +00:00
John M. Schanck
2f05de259d
ms compiler changes for fft.c
2021-03-24 21:02:47 +00:00
John M. Schanck
262e64168f
simplify clean/repetition.c and satisfy test_boolean
2021-03-24 21:02:47 +00:00
John M. Schanck
c254c2306d
Fix non-constant time FO test
2021-03-24 21:02:47 +00:00
John M. Schanck
d1a4fa5e68
uint8_t api for encode/decode in optimized rmrs
2021-03-24 21:02:47 +00:00
John M. Schanck
26e0aea3e2
more endianness fixes
2021-03-24 21:02:47 +00:00
John M. Schanck
646f9f4a05
satisfy MS compiler
2021-03-24 21:02:47 +00:00
John M. Schanck
eb120a6b24
narrowing warnings
2021-03-24 21:02:47 +00:00
John M. Schanck
59a1bed7d8
more endianness fixes
2021-03-24 21:02:47 +00:00
John M. Schanck
94e8ef48dc
remove unused function
2021-03-24 21:02:47 +00:00
John M. Schanck
bf7bd3650b
Rename log and exp to gf_log and gf_exp
2021-03-24 21:02:47 +00:00
John M. Schanck
a3c627fe6b
Some MS compiler fixes
2021-03-24 21:02:47 +00:00
John M. Schanck
9d35c7bb57
typo and more endianness fixes
2021-03-24 21:02:47 +00:00
John M. Schanck
90fbfa8a6b
remove spaces before semicolons
2021-03-24 21:02:47 +00:00
John M. Schanck
d73a713fd4
Fix endianness issues
2021-03-24 21:02:47 +00:00
John M. Schanck
1f4fa5ec3e
compiler warnings
2021-03-24 21:02:47 +00:00
John M. Schanck
63d033cf02
Initialize arrays in fft.c and fix a few compiler warnings
2021-03-24 21:02:47 +00:00
John M. Schanck
2767acd007
Fix left shift overflow for MASK_N2
2021-03-24 21:02:47 +00:00
John M. Schanck
6cf952a2ce
Remove BITMASK macro
2021-03-24 21:02:47 +00:00
John M. Schanck
1325ba6dff
Remove old HQC implementations
2021-03-24 21:02:47 +00:00
John M. Schanck
ae30e1f432
Avoid ==, !=, etc in arithmetic expressions. Some compilers will produce non-constant time code.
2021-03-24 21:02:47 +00:00
John M. Schanck
b16ce91595
Avoid using log(a) to check if a==0
2021-03-24 21:02:47 +00:00
John M. Schanck
f74c1e6ad2
Satisfy linter
2021-03-24 21:02:47 +00:00
John M. Schanck
6c4abb23ec
Simplify hqc-rmrs*/clean/reed_muller.c and fix potentially non-constant time behavior.
2021-03-24 21:02:47 +00:00
John M. Schanck
d5fd7d6d0c
Fix an avx2/gf2x.c buffer overflow
2021-03-24 21:02:47 +00:00
John M. Schanck
cb7675a9b6
Replace avx2 'reduce' in gf2x
2021-03-24 21:02:47 +00:00
John M. Schanck
b0afb62c0e
New HQC and HQC-RMRS from upstream
2021-03-24 21:02:47 +00:00
John M. Schanck
abd0178219
NTRU Prime: Get random bytes in one shot and use corresponding KATs
2021-03-24 21:02:47 +00:00
John M. Schanck
6047ae532a
NTRU Prime: avoid narrowing in loop iteration
2021-03-24 21:02:47 +00:00
John M. Schanck
4971f4a4b0
Revert "NTRU Prime: change prototype for clean/crypto_sort_int32"
...
This reverts commit 8a372ad2e8
.
2021-03-24 21:02:47 +00:00
John M. Schanck
fee8635c9f
NTRU Prime: change prototype for clean/crypto_sort_int32
2021-03-24 21:02:47 +00:00
John M. Schanck
162751e2e5
NTRU Prime: jump directly to crypto_sort_smallindices
2021-03-24 21:02:47 +00:00