subtract method

Ciphertext subtract(
  1. Ciphertext a,
  2. Ciphertext b
)

Subtracts two Ciphertexts.

Results in a new Ciphertext with the value of a minus the value of b.

Implementation

Ciphertext subtract(Ciphertext a, Ciphertext b) {
  Pointer ptr = _c_subtract(library, a.obj, b.obj);
  raiseForStatus();
  return Ciphertext.fromPointer(backend, ptr);
}