TFHE-rs
WebsiteLibrariesProduct & ServicesDevelopersSupport
1.2
1.2
  • Welcome to TFHE-rs
  • Get Started
    • What is TFHE-rs?
    • Installation
    • Quick start
    • Benchmarks
      • CPU Benchmarks
        • Integer
        • Programmable bootstrapping
      • GPU Benchmarks
        • Integer
        • Programmable bootstrapping
      • HPU Benchmarks
        • Integer
      • Zero-knowledge proof benchmarks
    • Security and cryptography
  • FHE Computation
    • Types
      • Integer
      • Strings
      • Array
    • Operations
      • Arithmetic operations
      • Bitwise operations
      • Comparison operations
      • Min/Max operations
      • Ternary conditional operations
      • Casting operations
      • Boolean operations
      • String operations
      • Dot product
    • Core workflow
      • Configuration and key generation
      • Server key
      • Encryption
      • Decryption
      • Parameters
    • Data handling
      • Compressing ciphertexts/keys
      • Serialization/deserialization
      • Data versioning
    • Advanced features
      • Encrypted pseudo random values
      • Overflow detection
      • Public key encryption
      • Trivial ciphertexts
      • Zero-knowledge proofs
      • Multi-threading with Rayon crate
    • Tooling
      • PBS statistics
      • Generic trait bounds
      • Debugging
  • Configuration
    • Advanced Rust setup
    • GPU acceleration
      • Operations
      • Benchmark
      • Compressing ciphertexts
      • Array types
      • Multi-GPU support
    • HPU acceleration
      • Benchmark
    • Parallelized PBS
  • Integration
    • JS on WASM API
    • High-level API in C
  • Tutorials
    • Homomorphic parity bit
    • Homomorphic case changing on Ascii string
    • SHA256 with Boolean API
    • All tutorials
  • References
    • API references
    • Fine-grained APIs
      • Quick start
      • Boolean
        • Operations
        • Cryptographic parameters
        • Serialization/Deserialization
      • Shortint
        • Operations
        • Cryptographic parameters
        • Serialization/Deserialization
      • Integer
        • Operations
        • Cryptographic parameters
        • Serialization/Deserialization
    • Core crypto API
      • Quick start
      • Tutorial
  • Explanations
    • TFHE deep dive
  • Developers
    • Contributing
    • Release note
    • Feature request
    • Bug report
Powered by GitBook

Libraries

  • TFHE-rs
  • Concrete
  • Concrete ML
  • fhEVM

Developers

  • Blog
  • Documentation
  • Github
  • FHE resources

Company

  • About
  • Introduction to FHE
  • Media
  • Careers
On this page
  • Get started
  • Build with TFHE-rs
  • Explore more
  • Tutorials
  • References & Explanations
  • Support channels
  • Developers

Was this helpful?

Export as PDF

Welcome to TFHE-rs

TFHE-rs is a pure Rust implementation of TFHE for Boolean and integer arithmetics over encrypted data. It includes a Rust and C API, as well as a client-side WASM API.

Last updated 5 days ago

Was this helpful?

Get started

Learn the basics of TFHE-rs, set it up, and make it run with ease.

Build with TFHE-rs

Start building with TFHE-rs by exploring its core features, discovering essential guides, and learning more with user-friendly tutorials.

Explore more

Access to additional resources and join the Zama community.

Tutorials

Explore step-by-step guides that walk you through real-world uses of TFHE-rs.

  • : Learn how to implement a parity bit calculation over encrypted data

  • : See how to process string data securely by changing cases while keeping the data encrypted.

  • : Delve into a more complex example: implementing the SHA256 hash function entirely on encrypted boolean values.

  • : A complete list of all available tutorials in one place.tutorials: A complete list of all available tutorials in one place.

References & Explanations

Take a deep dive into TFHE-rs, exploring APIs from the highest to the lowest level of abstraction and accessing additional resources for in-depth explanations.

Support channels

Ask technical questions and discuss with the community. Our team of experts usually answers within 24 hours during working days.

Developers

Collaborate with us to advance the FHE spaces and drive innovation together.


Zama 5-Question Developer Survey

: High-level API that abstracts cryptographic complexities and simplifies the development and more

: Mid-level APIs that enable evaluation of Boolean, short integer, and integer circuits

: Low-level API with the primitive functions and types of the TFHE scheme

: Resources that explain the Fully Homomorphic Encryption scheme - TFHE

: Document describing algorithms implemented in TFHE-rs

We want to hear from you! Take 1 minute to share your thoughts and helping us enhance our documentation and libraries. 👉 to participate.

Rust API reference
Fine-grained APIs
Core crypto API
TFHE deep dive
TFHE-rs handbook
Community forum
Discord channel
Contribute to TFHE-rs
Check the latest release note
Request a feature
Report a bug
Click here
Homomorphic parity bit
Homomorphic case changing on ASCII string
SHA256 with Boolean API
All tutorials
Cover

FHE Computations

Run FHE computation on encrypted data.

Cover

Configuration

Advanced configuration for better performance.

Cover

Integration

Use TFHE-rs in different contexts or platforms..

Cover

What is TFHE-rs?

Understand TFHE-rs library and basic cryptographic concepts

Cover

Installation

Follow the step by step guide to import TFHE-rs in your project

Cover

Quick start

See a full example of using TFHE-rs to compute on encrypted data

Types
Operations
Advanced Rust
GPU acceleration
HPU acceleration
C API
JS on WASM API