addPlain method

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

Adds value of Plaintext to the value of Ciphertext.

Implementation

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