Documentation
¶
Overview ¶
Package lattice provides GPU-accelerated lattice cryptography operations.
Used for FHE (Fully Homomorphic Encryption), post-quantum signatures, and other lattice-based cryptographic schemes.
Index ¶
- Variables
- func BatchNTTForward(params NTTParams, polys [][]uint64) ([][]uint64, error)
- func BatchNTTInverse(params NTTParams, polys [][]uint64) ([][]uint64, error)
- func NTTForward(params NTTParams, coeffs []uint64) ([]uint64, error)
- func NTTInverse(params NTTParams, evals []uint64) ([]uint64, error)
- func PolyAdd(modulus uint64, a, b []uint64) ([]uint64, error)
- func PolyMul(params NTTParams, a, b []uint64) ([]uint64, error)
- func PolySub(modulus uint64, a, b []uint64) ([]uint64, error)
- func SampleNTT(params NTTParams, seed []byte) ([]uint64, error)
- type NTTParams
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func BatchNTTForward ¶
BatchNTTForward performs forward NTT on multiple polynomials in parallel.
func BatchNTTInverse ¶
BatchNTTInverse performs inverse NTT on multiple polynomials in parallel.
func NTTForward ¶
NTTForward performs forward Number Theoretic Transform. Transforms polynomial from coefficient to evaluation form.
func NTTInverse ¶
NTTInverse performs inverse Number Theoretic Transform. Transforms polynomial from evaluation to coefficient form.
func PolyMul ¶
PolyMul multiplies two polynomials using NTT. Result is (a * b) mod (X^N + 1) mod modulus.
Types ¶
Click to show internal directories.
Click to hide internal directories.