nbytes

Ciphertext.nbytes
Shows the memory size of a ciphertext.
  • Output
    • nbytes, int
from desilofhe import Engine

engine = Engine()
secret_key = engine.create_secret_key()
public_key = engine.create_public_key(secret_key)

message = [1, 2, 3]
cipehrtext = engine.encrypt(message, public_key)
nbytes = ciphertext.nbytes