pqc/crypto_kem/kyber1024-90s/clean/reduce.h

14 lines
334 B
C
Raw Permalink Normal View History

#ifndef PQCLEAN_KYBER102490S_CLEAN_REDUCE_H
#define PQCLEAN_KYBER102490S_CLEAN_REDUCE_H
#include "params.h"
2019-09-17 13:02:01 +01:00
#include <stdint.h>
#define MONT 2285 // 2^16 mod q
#define QINV 62209 // q^-1 mod 2^16
2019-09-17 13:02:01 +01:00
int16_t PQCLEAN_KYBER102490S_CLEAN_montgomery_reduce(int32_t a);
int16_t PQCLEAN_KYBER102490S_CLEAN_barrett_reduce(int16_t a);
#endif