Thom Wiggers
560ac15334
Fix missed overflowing mul in FrodoKEM
...
It happened in another place
2021-03-24 21:02:49 +00:00
Thom Wiggers
af9b25b8fa
Fix more overflowing muls in Frodo
2021-03-24 21:02:49 +00:00
John M. Schanck
583423b2ee
hqc-rmrs-256: remove unused static vars
2021-03-24 21:02:49 +00:00
Thom Wiggers
9a1319454f
Also fix problem in FrodoKEM-SHAKE
2021-03-24 21:02:49 +00:00
Thom Wiggers
747908d35b
Fix overflowing multiplication in FrodoKEM AES
2021-03-24 21:02:49 +00:00
John M. Schanck
7bac779bb5
ntru/poly_rq_mul: explicit casts to satisfy 32-bit clang sanitizer
2021-03-24 21:02:49 +00:00
John M. Schanck
7d44f5f587
ntru: faster multiplication for reference implementations
2021-03-24 21:02:49 +00:00
John M. Schanck
3543b1718d
slightly faster avx2 schoolbook multiplications
2021-03-24 21:02:49 +00:00
John M. Schanck
8263a9d0cb
explicit casts
2021-03-24 21:02:49 +00:00
John M. Schanck
4406f00784
simplify pack_unpack.c
2021-03-24 21:02:49 +00:00
John M. Schanck
7b48693ae8
Remove empty file
2021-03-24 21:02:49 +00:00
John M. Schanck
cb38d66efd
Update packaging script version
2021-03-24 21:02:49 +00:00
John M. Schanck
df9f4a17a4
Clean up AVX2 code
2021-03-24 21:02:49 +00:00
John M. Schanck
997f9d462b
saber: output pointers on left, and size_t for indexing
2021-03-24 21:02:49 +00:00
John M. Schanck
7a3e05045c
saber: fix initialization and casting issues
2021-03-24 21:02:49 +00:00
John M. Schanck
b1a3b03e65
*saber/avx2: declare mul_add static
2021-03-24 21:02:49 +00:00
John M. Schanck
39c00e8c47
Update Saber and add AVX2 implementation
2021-03-24 21:02:49 +00:00
John M. Schanck
1113fdce69
HQC: remove bitmask macro
2021-03-24 21:02:49 +00:00
John M. Schanck
a96df80f89
HQC: update from upstream
2021-03-24 21:02:48 +00:00
John M. Schanck
0bbc8ccf4c
hqc: pclmul to pclmulqdq
2021-03-24 21:02:48 +00:00
John M. Schanck
0fcd954047
hqc: Add -Wshadow and fix shadowing warnings
2021-03-24 21:02:48 +00:00
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
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