decrypt_to_plaintext
GLEngine.decrypt_to_plaintext(ciphertext)- 암호문을 복호화합니다. 디코딩은 하지 않고, 평문 형태로 반환합니다.
- 인풋:
- GLCiphertext
- 아웃풋:
- GLPlaintext
import numpy as np
from desilofhe import GLEngine
engine = GLEngine()
secret_key = engine.create_secret_key()
message = np.ones(engine.shape)
ciphertext = engine.encrypt(message, secret_key)
decrypted = engine.decrypt_to_plaintext(encrypted, secret_key)
decoded = engine.decode(decrypted)
실질적인 용도는 없지만, SEAL과 같은 종래의 동형암호의 API를 1:1로 동일하게 사용하고 싶은 경우에 사용할 수 있습니다.