loadEncryptedData#

load_encrypted_data(context: pyhelayers.HeContext, buf: bytes) pyhelayers.EncryptedData#

Loads encrypted data (a CTileTensor object) from the given buffer.

Parameters:
  • context – The HeContext to initialize the CTileTensor with.

  • buf – The buffer to load from.

Raises:

RuntimeError – If the given buffer does not contain a CTileTensor or if loading fails due to an illegal header of the CTileTensor object in the given buffer.