16 lines
306 B
C
16 lines
306 B
C
|
#ifndef REDUCE_H
|
||
|
#define REDUCE_H
|
||
|
|
||
|
#include <stdint.h>
|
||
|
|
||
|
#define MONT 2285 // 2^16 % Q
|
||
|
#define QINV 62209 // q^(-1) mod 2^16
|
||
|
|
||
|
int16_t PQCLEAN_KYBER1024_CLEAN_montgomery_reduce(int32_t a);
|
||
|
|
||
|
int16_t PQCLEAN_KYBER1024_CLEAN_barrett_reduce(int16_t a);
|
||
|
|
||
|
int16_t PQCLEAN_KYBER1024_CLEAN_csubq(int16_t a);
|
||
|
|
||
|
#endif
|