mirror of
https://github.com/luxfi/pqclean.git
synced 2026-11-02 15:23:24 +00:00
28 lines
676 B
C
28 lines
676 B
C
#ifndef PQCLEAN_MLDSA65_AARCH64_REDUCE_H
|
|
#define PQCLEAN_MLDSA65_AARCH64_REDUCE_H
|
|
|
|
/*
|
|
* This file is dual licensed
|
|
* under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0.html)
|
|
* or public domain at https://github.com/pq-crystals/dilithium
|
|
*/
|
|
|
|
#include "params.h"
|
|
#include <stdint.h>
|
|
|
|
#define DILITHIUM_QINV 58728449 // q^(-1) mod 2^32
|
|
|
|
#define montgomery_reduce DILITHIUM_NAMESPACE(montgomery_reduce)
|
|
int32_t montgomery_reduce(int64_t a);
|
|
|
|
#define reduce32 DILITHIUM_NAMESPACE(reduce32)
|
|
int32_t reduce32(int32_t a);
|
|
|
|
#define caddq DILITHIUM_NAMESPACE(caddq)
|
|
int32_t caddq(int32_t a);
|
|
|
|
#define freeze DILITHIUM_NAMESPACE(freeze)
|
|
int32_t freeze(int32_t a);
|
|
|
|
#endif
|