Rust library for boolean/integer arithmetics over encrypted data using TFHE
Top 30.8% on sourcepulse
TFHE-rs is a pure Rust implementation of the TFHE homomorphic encryption scheme, offering APIs for boolean and integer arithmetic over encrypted data. It targets developers and researchers seeking a high-performance, production-ready library for advanced TFHE features, providing control without low-level implementation burdens.
How It Works
TFHE-rs implements Zama's variant of TFHE, including programmable bootstrapping. It supports a boolean API for drop-in replacement and a short integer API for exact, unbounded FHE integer arithmetic up to 8 bits. The library emphasizes size-efficient public-key encryption and ciphertext/server key compression for efficient data transfer.
Quick Start & Requirements
tfhe = { version = "*", features = ["boolean", "shortint", "integer"] }
cargo run --release
.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
Side-channel attack mitigation is not yet implemented. The default security parameters for the GPU backend assume IND-CPA security and that decrypted results are not shared.
1 day ago
1 day