tfhe 1.8.0

TFHE-rs is a fully homomorphic encryption (FHE) library that implements Zama's variant of TFHE.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! One-time pad: XOR the input data with a random encrypted pad.
//!
//! With this transciphering method, the keystream is directly the pre-generated pad,
//! so the only FHE operation is the XOR with the input data.
//! The pad is finite and single-use, and must be at least as long as the data. As a
//! result, this cipher is worthwhile when decrypting a pad as large as the data is
//! possible and efficient enough.

mod fhe;
mod plain;
#[cfg(test)]
mod test;

pub use fhe::{OneTimePadFheSecretMask, OneTimePadFheState};
pub use plain::{
    OneTimePadPlainSecretMask, OneTimePadPlainSecretMaskConformanceParams, OneTimePadPlainState,
};