1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-23 16:08:59 +00:00
pqcrypto/crypto_kem/kyber1024-90s/clean/reduce.h
2019-09-24 08:01:54 +02:00

16 lines
315 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_KYBER102490S_CLEAN_montgomery_reduce(int32_t a);
int16_t PQCLEAN_KYBER102490S_CLEAN_barrett_reduce(int16_t a);
int16_t PQCLEAN_KYBER102490S_CLEAN_csubq(int16_t a);
#endif