켤레화 키를 통한 켤레화
GLEngine.conjugate(ciphertext, conjugation_key)
- 암호문을 켤레화하여 반환합니다.
레벨을 소모하지 않습니다.
- 인풋:
- GLCiphertext
- GLConjugationKey
- 아웃풋:
import numpy as np
from desilofhe import GLEngine
engine = GLEngine()
shape = engine.shape
secret_key = engine.create_secret_key()
conjugation_key = engine.create_conjugation_key(secret_key)
message = np.ones(shape, dtype=np.float64)
ciphertext = engine.encrypt(message, secret_key)
conjugated = engine.conjugate(ciphertext, conjugation_key)
인코딩된 평문의 켤레화
GLEngine.conjugate(plaintext)
- 인코딩된 평문을 켤레화하여 반환합니다.
import numpy as np
from desilofhe import GLEngine
engine = GLEngine()
shape = engine.shape
message = np.ones(shape, dtype=np.float64)
plaintext = engine.encode(message)
conjugated = engine.conjugate(plaintext)