Template Function lbcrypto::FirstPrime

Function Documentation

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

Finds the first prime q that satisfies q = 1 mod m with at least (nBits + 1) bits.

Parameters
  • nBits – the bit parameter.

  • m – the ring parameter (cyclotomic order).

Returns

the first prime modulus.