menu
xkyber_crypto package
documentation
ntt.dart
ntt.dart
dark_mode
light_mode
ntt
library
Constants
n
→ const
int
q
→ const
int
zetas
→ const
List
<
int
>
Properties
nInv
→
int
Calculate nInv once: nInv = 256^(q-2) mod q According to PQClean, nInv = 256^{-1} mod q = 3293 for q=3329.
final
Functions
invntt
(
List
<
int
>
a
)
→
List
<
int
>
mod
(
int
a
,
int
m
)
→
int
modAdd
(
int
a
,
int
b
,
int
m
)
→
int
modMul
(
int
a
,
int
b
,
int
m
)
→
int
modPow
(
int
base
,
int
exp
,
int
modulus
)
→
int
modSub
(
int
a
,
int
b
,
int
m
)
→
int
ntt
(
List
<
int
>
poly
)
→
List
<
int
>
xkyber_crypto package
documentation
ntt.dart
xkyber_crypto
package
Libraries
constant_time_comparison
fq
gen_matrix
indcpa
kem
kyber_kem
kyber_keypair
noise_generator
ntt
params
poly
polyvec
randombytes
reduce
shake
verify
xkyber_crypto
xkyber_symmetric
ntt library