Template Function lbcrypto::SignedToResidue(int64_t, const IntType&)
Defined in File utilities.h
Function Documentation
-
template<typename IntType, std::enable_if_t<!std::is_integral_v<IntType>, bool> = true>
IntType lbcrypto::SignedToResidue(int64_t value, const IntType &modulus) Converts a signed integer to its residue in [0, modulus) for a library integer type.
- Parameters
value – the signed integer to convert.
modulus – the modulus to reduce against.
- Returns
value modulo modulus, in [0, modulus).