rs_tfhe 0.2.0

A high-performance Rust implementation of TFHE (Torus Fully Homomorphic Encryption) with advanced programmable bootstrapping capabilities
Documentation
1
2
3
4
5
6
7
8
9
10
use rs_tfhe::bit_utils::{convert, AsBits};

fn compare_bit(a: Ciphertext, b: Ciphertext, lsb_carry: Ciphertext, cloud_key: &CloudKey) -> Ciphertext {
    let tmp = gates::hom_xnor(a, b, cloud_key);
    gates::hom_mux(tmp, lsb_carry, a)
}

fn equals(a: Ciphertext, b: Ciphertext, cloud_key: &CloudKey) -> Ciphertext {

}