fhe-math

Crates.iofhe-math
lib.rsfhe-math
version0.1.1
created_at2022-09-06 22:32:33.577451+00
updated_at2025-11-23 14:52:14.63429+00
descriptionMathematical utilities for the fhe.rs library
homepage
repositoryhttps://github.com/tlepoint/fhe.rs
max_upload_size
id659807
size257,129
Tancrède Lepoint (tlepoint)

documentation

README

fhe-math crate version documentation

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.

Features

  • ntt, rns, rq, and zq modules for modular arithmetic over large rings.
  • Optional tfhe-ntt and tfhe-ntt-nightly features to enable hardware accelerated NTTs via the tfhe-ntt crate.

Installation

Add the following to your Cargo.toml:

[dependencies]
fhe-math = "0.1.1"

Testing

cargo test -p fhe-math

License

This project is licensed under the MIT license.

Security / Stability

The code in this crate has not undergone an independent security audit. Use at your own risk.

Commit count: 278

cargo fmt