decrypt_to_plaintext
GLEngine.decrypt_to_plaintext(ciphertext)- Decrypts a ciphertext without decoding it. A plaintext is returned.
- Input:
- GLCiphertext
- Output:
- GLPlaintext
import numpy as np
from desilofhe import GLEngine
engine = GLEngine()
secret_key = engine.create_secret_key()
message = np.ones(engine.shape)
ciphertext = engine.encrypt(message, secret_key)
decrypted = engine.decrypt_to_plaintext(encrypted, secret_key)
decoded = engine.decode(decrypted)
While it has little practical use, this function can be used when you want to replicate the API behavior of traditional homomorphic encryption libraries, such as SEAL, on a 1:1 basis.