mirror of
https://github.com/luxfi/pqclean.git
synced 2026-11-02 15:23:24 +00:00
18 lines
416 B
C
18 lines
416 B
C
#ifndef PQCLEAN_MLDSA65_CLEAN_REDUCE_H
|
|
#define PQCLEAN_MLDSA65_CLEAN_REDUCE_H
|
|
#include "params.h"
|
|
#include <stdint.h>
|
|
|
|
#define MONT (-4186625) // 2^32 % Q
|
|
#define QINV 58728449 // q^(-1) mod 2^32
|
|
|
|
int32_t PQCLEAN_MLDSA65_CLEAN_montgomery_reduce(int64_t a);
|
|
|
|
int32_t PQCLEAN_MLDSA65_CLEAN_reduce32(int32_t a);
|
|
|
|
int32_t PQCLEAN_MLDSA65_CLEAN_caddq(int32_t a);
|
|
|
|
int32_t PQCLEAN_MLDSA65_CLEAN_freeze(int32_t a);
|
|
|
|
#endif
|