https://github.com/lattice-based-cryptography/ntt
Implementation of the number theoretic transform in Rust.
https://github.com/lattice-based-cryptography/ntt
fourier-transform ntt number-theory
Last synced: 2 months ago
JSON representation
Implementation of the number theoretic transform in Rust.
- Host: GitHub
- URL: https://github.com/lattice-based-cryptography/ntt
- Owner: lattice-based-cryptography
- License: mit
- Created: 2025-01-23T20:11:41.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-18T02:08:24.000Z (3 months ago)
- Last Synced: 2025-03-12T00:11:53.609Z (2 months ago)
- Topics: fourier-transform, ntt, number-theory
- Language: Rust
- Homepage: https://crates.io/crates/ntt
- Size: 73.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ntt


[](https://crates.io/crates/ntt)Implementation of the number theoretic transform (NTT) in Rust.
The NTT is a DFT over the ring Z/mZ. We use a fast divide-and conquer algorithm. The array size `n` must be a power of two.
We allow composite moduli as long as `n` divides `phi(p^e)` for each prime factor p of the modulus, where `phi` is the Euler totient.