Function lbcrypto::AdditionWithCarryOut

Function Documentation

inline uint64_t lbcrypto::AdditionWithCarryOut(uint64_t a, uint64_t b, uint64_t &c)

add two 64-bit number with carry out, c = a + b

Parameters
  • a – operand 1

  • b – operand 2

  • c – c = a + b

Returns

1 if overflow occurs, 0 otherwise