Welcome to OpenFHE - Python’s documentation!
OpenFHE - Python
Fully Homomorphic Encryption (FHE) is a powerful cryptographic primitive that enables performing computations over encrypted data without having access to the secret key. OpenFHE is an open-source FHE library that includes efficient implementations of all common FHE schemes: BFV, BGV, CKKS, DM and CGGI.
openfhe-python
is a Python library built as a wrapper for the main capabilities of OpenFHE C++ library. It provides a more user-friendly interface for Python developers,
while keeping the efficiency of C++ FHE operations.
- CryptoContext
- CryptoParams
- Ciphertext
- Plaintext
Plaintext
Plaintext.Decode()
Plaintext.Encode()
Plaintext.GetCKKSPackedValue()
Plaintext.GetLength()
Plaintext.GetLevel()
Plaintext.GetLogError()
Plaintext.GetLogPrecision()
Plaintext.GetNoiseScaleDeg()
Plaintext.GetPackedValue()
Plaintext.GetRealPackedValue()
Plaintext.GetScalingFactor()
Plaintext.GetSchemeID()
Plaintext.GetSlots()
Plaintext.GetStringValue()
Plaintext.HighBound()
Plaintext.IsEncoded()
Plaintext.LowBound()
Plaintext.SetFormat()
Plaintext.SetIntVectorValue()
Plaintext.SetLength()
Plaintext.SetLevel()
Plaintext.SetNoiseScaleDeg()
Plaintext.SetScalingFactor()
Plaintext.SetSlots()
Plaintext.SetStringValue()
- Public Key
- Private Key
- KeyPair
- PKE enums
- BinFHEContext
BinFHEContext
BinFHEContext.BTKeyGen()
BinFHEContext.Decrypt()
BinFHEContext.Encrypt()
BinFHEContext.EvalBinGate()
BinFHEContext.EvalDecomp()
BinFHEContext.EvalFloor()
BinFHEContext.EvalFunc()
BinFHEContext.EvalNOT()
BinFHEContext.EvalSign()
BinFHEContext.GenerateBinFHEContext()
BinFHEContext.GenerateLUTviaFunction()
BinFHEContext.GetBeta()
BinFHEContext.GetMaxPlaintextSpace()
BinFHEContext.Getn()
BinFHEContext.Getq()
BinFHEContext.KeyGen()
- LWECiphertext
- LWEPrivateKey
- BinFHE enums