aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_ntt.h
blob: 98d6235764b1acd24226b618e393d48aac4ae9f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <stdint.h>
#include "kyber512r3_params.h"

#define zetas S2N_KYBER_512_R3_NAMESPACE(zetas)
extern const int16_t zetas[128];

#define zetas_inv S2N_KYBER_512_R3_NAMESPACE(zetas_inv)
extern const int16_t zetas_inv[128];

#define ntt S2N_KYBER_512_R3_NAMESPACE(ntt)
void ntt(int16_t poly[256]);

#define invntt S2N_KYBER_512_R3_NAMESPACE(invntt)
void invntt(int16_t poly[256]);

#define basemul S2N_KYBER_512_R3_NAMESPACE(basemul)
void basemul(int16_t r[2], const int16_t a[2], const int16_t b[2], int16_t zeta);