loadCiphertext method

Ciphertext loadCiphertext(
  1. Pointer<Uint8> data,
  2. int size
)

Loads a Ciphertext from a non-human-readable format.

Useful for loading from disk or receiving over the network. The size is the length of the data. The data is a pointer to the memory address of the data.

Implementation

Ciphertext loadCiphertext(Pointer<Uint8> data, int size) {
  Pointer ptr = _c_load_ciphertext(library, data, size);
  raiseForStatus();
  return Ciphertext.fromPointer(backend, ptr);
}