7 releases
| 0.2.6 | Aug 6, 2025 |
|---|---|
| 0.2.5 | Apr 23, 2025 |
| 0.2.4 | Jan 23, 2025 |
| 0.2.1 | Dec 18, 2024 |
#2698 in Cryptography
405 downloads per month
Used in 2 crates
29KB
507 lines
feanor-math-hexl
A wrapper around the Intel Homomorphic Encryption Accelerator (HEXL) library that provides a fast implementation of power-of-two length negacyclic Number-Theoretic transforms (NTT).
The library builds on feanor-math, and exposes the base wrapper hexl::HEXLNegacyclicNTT and also the convolution algorithm conv::HEXLConvolution that uses it internally.
How to build
To use this library, you need an installation of HEXL.
The buildscript will not attempt to download or build HEXL, thus you must ensure that the HEXL header files and a static library build are available.
This library will search for these in a few standard locations (currently only /usr/local/include resp. /usr/local/lib), but the location can be overriden using environment variables.
- setting
HEXL_DIRwill result infeanor-math-hexlexpecting the static library to be inHEXL_DIR/liband the headers inHEXL_DIR/include - setting
HEXL_LIB_DIRandHEXL_INCLUDE_DIRwill result infeanor-math-hexlexpecting the static library to be inHEXL_LIB_DIRand the headers inHEXL_INCLUDE_DIR
Dependencies
~8–12MB
~140K SLoC