clone

Ciphertext 복제

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

Engine.clone(plaintext)
평문을 복제합니다.
  • 인풋:
    • Plaintext
  • 아웃풋:
    • Plaintext
from desilofhe import Engine

engine = Engine()

message = [1, 2, 3]
plaintext = engine.encode(message)
cloned = engine.clone(plaintext)