relinearize method

Ciphertext relinearize(
  1. Ciphertext ciphertext
)

Relinearizes the Ciphertext.

Typically, the size of the ciphertext grows with each homomorphic operation. The relinearization process reduces the size of the ciphertext (2).

Implementation

Ciphertext relinearize(Ciphertext ciphertext) {
  Pointer ptr = _c_relin_ciphertext(library, ciphertext.obj);
  raiseForStatus();
  return Ciphertext.fromPointer(backend, ptr);
}