clone

Ciphertext Clone

GLEngine.clone(ciphertext)
Clones a ciphertext. Does not consume any level.
  • Input:
    • GLCiphertext
  • Output:
    • GLCiphertext
import numpy as np

from desilofhe import GLEngine

engine = GLEngine()
shape = engine.shape
secret_key = engine.create_secret_key()

message = np.ones(shape, dtype=np.float64)
ciphertext = engine.encrypt(message, secret_key)

cloned = engine.clone(ciphertext)

Plaintext Clone

GLEngine.clone(plaintext)
Clones a plaintext.
  • Input:
    • GLPlaintext
  • Output:
    • GLPlaintext
import numpy as np

from desilofhe import GLEngine

engine = GLEngine()
shape = engine.shape

message = np.ones(shape, dtype=np.float64)
plaintext = engine.encode(message)

cloned = engine.clone(plaintext)