diff --git a/mlkem/native/arith_native.h b/mlkem/native/arith_native.h index aad3565b6..b7e921323 100644 --- a/mlkem/native/arith_native.h +++ b/mlkem/native/arith_native.h @@ -240,7 +240,7 @@ static INLINE void poly_frombytes_native(poly *a, * * Return -1 if the native implementation does not support the input lengths. * Otherwise, returns non-negative number of sampled 16-bit integers (at most - *len). + * len). **************************************************/ static INLINE int rej_uniform_native(int16_t *r, unsigned int len, const uint8_t *buf, unsigned int buflen); diff --git a/mlkem/native/x86_64/arith_native_x86_64.h b/mlkem/native/x86_64/arith_native_x86_64.h index ca7a0027b..b346e1eb2 100644 --- a/mlkem/native/x86_64/arith_native_x86_64.h +++ b/mlkem/native/x86_64/arith_native_x86_64.h @@ -20,7 +20,6 @@ ((12 * MLKEM_N / 8 * (1 << 12) / MLKEM_Q + SHAKE128_RATE) / SHAKE128_RATE) #define REJ_UNIFORM_AVX_BUFLEN (REJ_UNIFORM_AVX_NBLOCKS * SHAKE128_RATE) -/* TODO: Document buffer constraints */ #define rej_uniform_avx2 MLKEM_NAMESPACE(rej_uniform_avx2) unsigned int rej_uniform_avx2(int16_t *r, const uint8_t *buf);