Closed mouse07410 closed 4 years ago
This file is from NIST and is only used in PQCgenKAT_kem.c. I'm not going to remove it or modify it since it's useful for testing.
FYI this repo is upstream to https://github.com/PQClean/PQClean, which is the preferred repo to branch from if you're putting NTRU into another library.
I'm not going to remove it or modify it since it's useful for testing.
This file causes modern compiler to flag comparison between unsigned long
and int
. If you're OK with that - fine, you own this code. I'd be wary of comparisons like that.
I checked https://github.com/PQClean/PQClean - am I correct that this repo does not contain optimized code?
The current code contains comparison of
unsigned long
toint
(signed aaginst unsigned). Compilers don't like it, and issue warnings. Here's a proposed fix (sincebuffer_pos
is unlikely to be negative):Perhaps there are other places in the code where indices are defined as
int
? If so, could I suggest changing them tounsigned long
orsize_t
?