subtractPlain method

Ciphertext subtractPlain(
  1. Ciphertext a,
  2. Plaintext b
)

Subtracts value of Plaintext from the value of Ciphertext.

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

Implementation

Ciphertext subtractPlain(Ciphertext a, Plaintext b) {
  Pointer ptr = _c_subtract_plain(library, a.obj, b.obj);
  raiseForStatus();
  return Ciphertext.fromPointer(backend, ptr);
}