Public Key

class openfhe.PublicKey

Bases: pybind11_object

GetKeyTag(self: openfhe.openfhe.PublicKey) → str
SetKeyTag(self: openfhe.openfhe.PublicKey, arg0: str) → None

Private Key

class openfhe.PrivateKey

Bases: pybind11_object

GetCryptoContext(self: openfhe.openfhe.PrivateKey) → lbcrypto::CryptoContextImpl<lbcrypto::DCRTPolyImpl<bigintdyn::mubintvec<bigintdyn::ubint<unsigned long> > > >
GetKeyTag(self: openfhe.openfhe.PrivateKey) → str
SetKeyTag(self: openfhe.openfhe.PrivateKey, arg0: str) → None

KeyPair

class openfhe.KeyPair

Bases: pybind11_object

good(self: openfhe.openfhe.KeyPair) → bool

Checks whether both public key and secret key are non-null, or correctly initialized.

Returns:

Result.

Return type:

bool

property publicKey
property secretKey