Integer
This document describes the main integer types of encrypted data in TFHE-rs and explains how to specify bit sizes for encryption.
TFHE-rs supports two main types of encrypted data:
FheUint
: homomorphic equivalent of Rust unsigned integersu8, u16, ...
FheInt
: homomorphic equivalent of Rust signed integersi8, i16, ...
TFHE-rs uses integers to encrypt all messages which are larger than 4 bits.
Similar to Rust integers, you need to specify the bit size of data when declaring a variable:
Last updated
Was this helpful?