Ciphertext
- class openfhe.Ciphertext
Bases:
pybind11_object
- Clone(self: openfhe.openfhe.Ciphertext) openfhe.openfhe.Ciphertext
- GetCryptoContext(self: openfhe.openfhe.Ciphertext) lbcrypto::CryptoContextImpl<lbcrypto::DCRTPolyImpl<bigintdyn::mubintvec<bigintdyn::ubint<unsigned long> > > >
- GetElements(self: openfhe.openfhe.Ciphertext) list[openfhe.openfhe.DCRTPoly]
- GetElementsMutable(self: openfhe.openfhe.Ciphertext) list[openfhe.openfhe.DCRTPoly]
- GetEncodingType(self: openfhe.openfhe.Ciphertext) lbcrypto::PlaintextEncodings
- GetLevel(self: openfhe.openfhe.Ciphertext) int
Get the number of scalings performed.
- Returns:
The level of the ciphertext.
- Return type:
int
- GetNoiseScaleDeg(self: openfhe.openfhe.Ciphertext) int
- GetSlots(self: openfhe.openfhe.Ciphertext) int
- RemoveElement(self: openfhe.openfhe.Ciphertext, arg0: SupportsInt) None
Remove an element from the ciphertext inner vector given its index.
- Parameters:
index (int) – The index of the element to remove.
- SetElements(self: openfhe.openfhe.Ciphertext, arg0: collections.abc.Sequence[openfhe.openfhe.DCRTPoly]) None
- SetElementsMove(self: openfhe.openfhe.Ciphertext, arg0: collections.abc.Sequence[openfhe.openfhe.DCRTPoly]) None
- SetLevel(self: openfhe.openfhe.Ciphertext, level: SupportsInt) None
Set the number of scalings.
- Parameters:
level (int) – The level to set.
- SetNoiseScaleDeg(self: openfhe.openfhe.Ciphertext, arg0: SupportsInt) None
- SetSlots(self: openfhe.openfhe.Ciphertext, arg0: SupportsInt) None