Expand description
Welcome to the TFHE-rs API documentation!
TFHE-rs is a fully homomorphic encryption (FHE) library that implements Zama’s variant of TFHE.
Modules
- boolean
booleanWelcome to the TFHE-rsbooleanmodule documentation! - Welcome to the TFHE-rs
core_cryptomodule documentation! - errors
booleanorshortintorinteger - integer
integerWelcome to the TFHE-rsintegermodule documentation! - parameters
booleanorshortintorinteger - prelude
booleanorshortintorintegerThe tfhe prelude. The purpose of this module is to make it easier to have the most commonly needed traits of this crate. - shortint
shortintWelcome to the TFHE-rsshortintmodule documentation!
Structs
- ClientKey
booleanorshortintorintegerKey of the client - CompactPublicKey
booleanorshortintorinteger - CompressedCompactPublicKey
booleanorshortintorinteger - CompressedFheBool
booleanand (booleanorshortintorinteger) - CompressedPublicKey
booleanorshortintorinteger - CompressedServerKey
booleanorshortintorinteger - Config
booleanorshortintorintegerThe config type - ConfigBuilder
booleanorshortintorintegerThe builder to create your config - FheBool
booleanand (booleanorshortintorinteger)The FHE boolean data type. - FheBoolParameters
booleanand (booleanorshortintorinteger)Parameters for FheBool. - OutOfRangeError
booleanorshortintorintegerError when trying to create a short integer from a value that was too big to be represented - PublicKey
booleanorshortintorinteger - A seed value, used to initialize a generator.
- ServerKey
booleanorshortintorintegerKey of the server
Enums
- Error
booleanorshortintorinteger
Functions
- generate_keys
booleanorshortintorintegerGenerates keys using the provided config. - set_server_key
booleanorshortintorintegerThe function used to initialize internal keys. - unset_server_key
booleanorshortintorinteger - with_server_key_as_context
booleanorshortintorinteger
Type Aliases
- CompactFheInt8
integerand (booleanorshortintorinteger) - CompactFheInt8List
integerand (booleanorshortintorinteger) - CompactFheInt16
integerand (booleanorshortintorinteger) - CompactFheInt16List
integerand (booleanorshortintorinteger) - CompactFheInt32
integerand (booleanorshortintorinteger) - CompactFheInt32List
integerand (booleanorshortintorinteger) - CompactFheInt64
integerand (booleanorshortintorinteger) - CompactFheInt64List
integerand (booleanorshortintorinteger) - CompactFheInt128
integerand (booleanorshortintorinteger) - CompactFheInt128List
integerand (booleanorshortintorinteger) - CompactFheInt256
integerand (booleanorshortintorinteger) - CompactFheInt256List
integerand (booleanorshortintorinteger) - CompactFheUint8
integerand (booleanorshortintorinteger) - CompactFheUint8List
integerand (booleanorshortintorinteger) - CompactFheUint10
integerand (booleanorshortintorinteger) - CompactFheUint10List
integerand (booleanorshortintorinteger) - CompactFheUint12
integerand (booleanorshortintorinteger) - CompactFheUint12List
integerand (booleanorshortintorinteger) - CompactFheUint14
integerand (booleanorshortintorinteger) - CompactFheUint14List
integerand (booleanorshortintorinteger) - CompactFheUint16
integerand (booleanorshortintorinteger) - CompactFheUint16List
integerand (booleanorshortintorinteger) - CompactFheUint32
integerand (booleanorshortintorinteger) - CompactFheUint32List
integerand (booleanorshortintorinteger) - CompactFheUint64
integerand (booleanorshortintorinteger) - CompactFheUint64List
integerand (booleanorshortintorinteger) - CompactFheUint128
integerand (booleanorshortintorinteger) - CompactFheUint128List
integerand (booleanorshortintorinteger) - CompactFheUint256
integerand (booleanorshortintorinteger) - CompactFheUint256List
integerand (booleanorshortintorinteger) - CompressedFheInt8
integerand (booleanorshortintorinteger) - CompressedFheInt16
integerand (booleanorshortintorinteger) - CompressedFheInt32
integerand (booleanorshortintorinteger) - CompressedFheInt64
integerand (booleanorshortintorinteger) - CompressedFheInt128
integerand (booleanorshortintorinteger) - CompressedFheInt256
integerand (booleanorshortintorinteger) - CompressedFheUint2
shortintand (booleanorshortintorinteger) - CompressedFheUint3
shortintand (booleanorshortintorinteger) - CompressedFheUint4
shortintand (booleanorshortintorinteger) - CompressedFheUint8
integerand (booleanorshortintorinteger) - CompressedFheUint10
integerand (booleanorshortintorinteger) - CompressedFheUint12
integerand (booleanorshortintorinteger) - CompressedFheUint14
integerand (booleanorshortintorinteger) - CompressedFheUint16
integerand (booleanorshortintorinteger) - CompressedFheUint32
integerand (booleanorshortintorinteger) - CompressedFheUint64
integerand (booleanorshortintorinteger) - CompressedFheUint128
integerand (booleanorshortintorinteger) - CompressedFheUint256
integerand (booleanorshortintorinteger) - FheInt8
integerand (booleanorshortintorinteger)An unsigned integer type with8bits - FheInt16
integerand (booleanorshortintorinteger)An unsigned integer type with16bits - FheInt32
integerand (booleanorshortintorinteger)An unsigned integer type with32bits - FheInt64
integerand (booleanorshortintorinteger)An unsigned integer type with64bits - FheInt128
integerand (booleanorshortintorinteger)An unsigned integer type with128bits - FheInt256
integerand (booleanorshortintorinteger)An unsigned integer type with256bits - FheUint2
shortintand (booleanorshortintorinteger)An unsigned integer type with 2 bits. - FheUint2Parameters
shortintand (booleanorshortintorinteger)Parameters for the FheUint2 data type. - FheUint3
shortintand (booleanorshortintorinteger)An unsigned integer type with 3 bits. - FheUint3Parameters
shortintand (booleanorshortintorinteger)Parameters for the FheUint3 data type. - FheUint4
shortintand (booleanorshortintorinteger)An unsigned integer type with 4 bits. - FheUint4Parameters
shortintand (booleanorshortintorinteger)Parameters for the FheUint4 data type. - FheUint8
integerand (booleanorshortintorinteger)An unsigned integer type with8bits - FheUint10
integerand (booleanorshortintorinteger)An unsigned integer type with10bits - FheUint12
integerand (booleanorshortintorinteger)An unsigned integer type with12bits - FheUint14
integerand (booleanorshortintorinteger)An unsigned integer type with14bits - FheUint16
integerand (booleanorshortintorinteger)An unsigned integer type with16bits - FheUint32
integerand (booleanorshortintorinteger)An unsigned integer type with32bits - FheUint64
integerand (booleanorshortintorinteger)An unsigned integer type with64bits - FheUint128
integerand (booleanorshortintorinteger)An unsigned integer type with128bits - FheUint256
integerand (booleanorshortintorinteger)An unsigned integer type with256bits