| file / task |
remove file |
add AVX2 |
no assg. in if |
format code |
prefix funs |
cleanup code |
other |
| kyber.c |
N/A |
[X] |
[X] |
[X] |
[X] |
[X] |
[-] implement self test function |
|
|
|
|
|
|
|
[X] implement _gcry_kyber_check_secret_key |
|
|
|
|
|
|
|
[-] implement _gcry_kyber_compute_keygrip |
|
|
|
|
|
|
|
[X] decide nbits implementation |
| kyber_aux.c/.h |
N/A |
[X] |
[X] |
[X] |
[X] |
[X] |
|
| kyber_cbd.c/.h |
N/A |
[X] |
[X] |
[X] |
[X] |
[X] |
|
| kyber-common.c/.h |
N/A |
[X] |
[X] |
[X] |
[X] |
[X] |
|
| kyber_ntt.c/.h |
N/A |
[X] |
[X] |
[X] |
[X] |
[X] |
|
| kyber_params.h |
N/A |
[X] |
[X] |
[X] |
[X] |
[X] |
|
| kyber_poly.c/.h |
N/A |
[X] |
[X] |
[X] |
[X] |
[X] |
|
| kyber_polyvec.c/.h |
N/A |
[X] |
[X] |
[X] |
[X] |
[X] |
|
| kyber_symmetric.c/.h |
N/A |
[X] |
[X] |
[X] |
[X] |
[X] |
|
Notes on GNU coding style matching:
unsigned char pointers are commonly used in function signatures, see for instance cipher/rsa-common.c
kyber_check_secret_key()kyber_generate(), then after already with three iterations of the gen-enc-dec test, libgcrypt produces an allocation failure. Valgrind show no leak. Needs to be debugged.if defined(ENABLE_AVX2_SUPPORT)_gcry_kyber_add self-test incipher/kyber.cNote: there is already used in cipher/pubkey-util.c a "random-override" parameter in the S-EXP.
See the use in
src/visibility.c:gcry_pk_hash_sign(), apparently this function is part of the API (is used from tests).But only certain functions in this file receive a
gcry_ctx_tthat can be used for this purpose.kyber.c:compute_keygrip()selftests_kyberNotes on GNU coding style matching:
unsigned charpointers are commonly used in function signatures, see for instance cipher/rsa-common.c