Template Function lbcrypto::operator-=

Function Documentation

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

operator-= overload for Ciphertexts. Performs EvalSub.

Template Parameters

Element – a ring element.

Parameters
  • a – ciphertext to be subtracted from

  • b – ciphertext to subtract from a

Returns

a