Template Function lbcrypto::operator-=

Function Documentation

template<class Element>
const Ciphertext<Element> &lbcrypto::operator-=(Ciphertext<Element> &a, const Ciphertext<Element> &b)

operator-= overload for Ciphertexts. Performs EvalAdd.

Template Parameters

Element – a ring element.

Parameters
  • &a – ciphertext to be subtracted from

  • &b – ciphertext to subtract from &a

Returns

&a