| Crates.io | fhe-math |
| lib.rs | fhe-math |
| version | 0.1.1 |
| created_at | 2022-09-06 22:32:33.577451+00 |
| updated_at | 2025-11-23 14:52:14.63429+00 |
| description | Mathematical utilities for the fhe.rs library |
| homepage | |
| repository | https://github.com/tlepoint/fhe.rs |
| max_upload_size | |
| id | 659807 |
| size | 257,129 |
Core mathematical primitives for the fhe.rs ecosystem.
This crate exposes building blocks such as number theoretic transforms (NTT), residue number system (RNS) arithmetic, and ring arithmetic over Z_q that are used by higher level crates like fhe.
ntt, rns, rq, and zq modules for modular arithmetic over large rings.tfhe-ntt and tfhe-ntt-nightly features to enable hardware accelerated NTTs via the tfhe-ntt crate.Add the following to your Cargo.toml:
[dependencies]
fhe-math = "0.1.1"
cargo test -p fhe-math
This project is licensed under the MIT license.
The code in this crate has not undergone an independent security audit. Use at your own risk.