Template Function lbcrypto::LastPrime

Function Documentation

template<typename IntType>
IntType lbcrypto::LastPrime(uint32_t nBits, uint32_t m)

Finds the max prime q that satisfies q = 1 mod m with at most nBits bits.

Parameters
  • nBits – the bit parameter.

  • m – the ring parameter (cyclotomic order).

Returns

the last prime modulus