pqc/crypto_kem/kyber512-90s/clean/reduce.h
John M. Schanck 688ff2fe50 Round 3 Kyber
2020-11-26 21:42:35 -05:00

14 lines
330 B
C

#ifndef PQCLEAN_KYBER51290S_CLEAN_REDUCE_H
#define PQCLEAN_KYBER51290S_CLEAN_REDUCE_H
#include "params.h"
#include <stdint.h>
#define MONT 2285 // 2^16 mod q
#define QINV 62209 // q^-1 mod 2^16
int16_t PQCLEAN_KYBER51290S_CLEAN_montgomery_reduce(int32_t a);
int16_t PQCLEAN_KYBER51290S_CLEAN_barrett_reduce(int16_t a);
#endif