You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when this function is invoked by 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.
for now conditional compilation of the code inside the files which implement functions with AVX2
libgcrypt does it already in this way: if defined(ENABLE_AVX2_SUPPORT)
Note that we will be restricted to compilers featuring this immintrin.h
reduce number of files
header guards need to be prefixed (e.g. GCRY_KYBER)
Format code everywhere
prefix all functions with_gcry_kyber_
add self-test in cipher/kyber.c
dynamic kyber parameters
Kyber instance modelled by parameter object
employ everywhere
remove replaced kyber parameter preproc-defs
use gcry hash/xof everywhere
Implement new FO transform
adapt enc/dec
make new testvectors from kyber ref. impl.
implement and test derand version (the non-derand functions call derand version)
implement for key gen
imlement for encap
implement new SHAKE-based randombytes replacement for derand algos (used for test vectors: test/test_vectors.c:randombytes = SHAKE128. we can control the state of this RNG at least in a temporary implementation for the KAT tests. Then we can have full KAT tests (not only decryption as it is now. For a real solution for upstream integration might have to check the RNG framework of libgcrypt)
create new test vectors (not NIST-KAT for now, as that requires their AES DRBG)
implement new test using derand-functions
make derand functions available through API: optional seed argument.
Note: 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_t that can be used for this purpose.
for key-gen: place into key-params S-EXP
for encap: additional buffer-argument or probably better: add gcry_ctx_t to the signature
missing function implementations
kyber.c:
compute_keygrip()
selftests_kyber
Notes on GNU coding style matching:
unsigned char pointers are commonly used in function signatures, see for instance cipher/rsa-common.c
The text was updated successfully, but these errors were encountered:
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.c
Note: 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_t
that can be used for this purpose.kyber.c:compute_keygrip()selftests_kyberNotes on GNU coding style matching:
unsigned char
pointers are commonly used in function signatures, see for instance cipher/rsa-common.cThe text was updated successfully, but these errors were encountered: