loadEncryptedData#

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

Loads encrypted data 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 an EncryptedData object, or if the object was saved with a mismatching HELayers version.