Skip to content

Commit

Permalink
Remove outdated todo from AVX2 backend
Browse files Browse the repository at this point in the history
`rej_uniform_native()` is fully documented in mlkem/native/arith_native.h.

Signed-off-by: Hanno Becker <[email protected]>
  • Loading branch information
hanno-becker committed Dec 3, 2024
1 parent 425bc20 commit cb1941f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion mlkem/native/arith_native.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion mlkem/native/x86_64/arith_native_x86_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit cb1941f

Please sign in to comment.