clone
Ciphertext Clone
Engine.clone(ciphertext)
- Clones a ciphertext.
- Input:
- Ciphertext
- Output:
- Ciphertext
from desilofhe import Engine
engine = Engine()
secret_key = engine.create_secret_key()
public_key = engine.create_public_key(secret_key)
message = [1, 2, 3]
ciphertext = engine.encrypt(message, public_key)
cloned = engine.clone(ciphertext)
Plaintext Clone
Engine.clone(plaintext)
- Clones a plaintext.
- Input:
- Plaintext
- Output:
- Plaintext
from desilofhe import Engine
engine = Engine()
message = [1, 2, 3]
plaintext = engine.encode(message)
cloned = engine.clone(plaintext)
Currently, since all operations in the DESILO FHE library are out-of-place, cloning does not have much significance. However, it is expected to be useful when in-place operations are added in the future.