Template Function lbcrypto::operator-(const Ciphertext<Element>&, const Ciphertext<Element>&)

Function Documentation

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

operator- overload. Performs EvalSub.

Template Parameters

Element – a ring element.

Parameters
  • &a – ciphertext operand

  • &b – ciphertext operand

Returns

The result of subtraction.