clone

Ciphertext Clone

GLEngine.clone(ciphertext)
암호문을 복제합니다. 레벨을 소모하지 않습니다.
  • 인풋:
    • GLCiphertext
  • 아웃풋:
    • 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)
평문을 복제합니다.
  • 인풋:
    • GLPlaintext
  • 아웃풋:
    • 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)