2021-02-01 05:32:40 +00:00
|
|
|
#ifndef PQCLEAN_DILITHIUM2AES_AVX2_REJSAMPLE_H
|
|
|
|
#define PQCLEAN_DILITHIUM2AES_AVX2_REJSAMPLE_H
|
|
|
|
#include "params.h"
|
|
|
|
#include "symmetric.h"
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#define REJ_UNIFORM_NBLOCKS ((768+STREAM128_BLOCKBYTES-1)/STREAM128_BLOCKBYTES)
|
|
|
|
#define REJ_UNIFORM_BUFLEN (REJ_UNIFORM_NBLOCKS*STREAM128_BLOCKBYTES)
|
|
|
|
|
2021-02-09 15:13:25 +00:00
|
|
|
#define REJ_UNIFORM_ETA_NBLOCKS ((136+STREAM256_BLOCKBYTES-1)/STREAM256_BLOCKBYTES)
|
|
|
|
#define REJ_UNIFORM_ETA_BUFLEN (REJ_UNIFORM_ETA_NBLOCKS*STREAM256_BLOCKBYTES)
|
2021-02-01 05:32:40 +00:00
|
|
|
|
|
|
|
extern const uint8_t PQCLEAN_DILITHIUM2AES_AVX2_idxlut[256][8];
|
|
|
|
|
|
|
|
unsigned int PQCLEAN_DILITHIUM2AES_AVX2_rej_uniform_avx(int32_t *r, const uint8_t buf[REJ_UNIFORM_BUFLEN + 8]);
|
|
|
|
|
|
|
|
unsigned int PQCLEAN_DILITHIUM2AES_AVX2_rej_eta_avx(int32_t *r, const uint8_t buf[REJ_UNIFORM_BUFLEN]);
|
|
|
|
|
|
|
|
#endif
|