negate

Engine.negate(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)
negated = engine.negate(ciphertext)