Index Mathematics Conjectures nbv lettuce Widgets

mldsa_zeta_table

stdlib/mldsa/mldsa_zeta_table.nbv

mldsa_zeta_table(static f)

Static table of f * zeta^e mod q for e in 0..512, where zeta = 1753 is the primitive 512th root of unity used by ML-DSA

Calls
mldsa/mldsa_mulmod_static
Precompiles
loop!
Used by
mersenne61/mldsa/mldsa_intt, mersenne61/mldsa/mldsa_ntt_q, milli/mldsa/mldsa_intt_sub, milli/mldsa/mldsa_ntt_z

Source

# Static table of f * zeta^e mod q for e in 0..512, where zeta = 1753 is the
# primitive 512th root of unity used by ML-DSA
(static f)

static mut out[512]
static mut v = f
loop! 512, e {
  out[e] = v
  v = mldsa_mulmod_static(v, 1753)
}
out