cuPQC-NTT API Reference#

Complete API documentation for the cuPQC-NTT library. For implementation examples, see cuPQC-NTT Usage.

API Components#

Operators

Compile-time operators for building NTT descriptors: algorithm, direction, precision, transform length, optional staged SubSize, block execution, and thread block width.

Device functions

Device-side entry points on the descriptor: single-stage and staged forward/inverse transforms, data transfer, Montgomery conversion, and transformed-domain arithmetic.

Host functions

Shared-memory sizing helpers and modular inverse utilities for launch configuration.

Prime field constants

BabyBear and KoalaBear moduli and pre-computed primitive roots of unity.

Types

User-facing types: nttConst<Precision> for Montgomery constants.