Function lbcrypto::ModInverse

Function Documentation

uint32_t lbcrypto::ModInverse(uint32_t a, uint32_t b)

Multiplicative inverse for primitive unsigned integer data types

Parameters
  • a – the number we need the inverse of.

  • b – the modulus we are working with.

Returns

the multiplicative inverse