deserialize
Engine.deserialize_ciphertext(data)
- 직렬화된 암호문으로 암호문을 생성합니다.
- 인풋:
- data: bytes or bytearray
- 아웃풋:
- 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)
serialized_ciphertext = engine.serialize_ciphertext(ciphertext)
# bytearray
ciphertext = engine.deserialize_ciphertext(serialized_ciphertext)
# bytes
ciphertext = engine.deserialize_ciphertext(bytes(serialized_ciphertext))