Template Function lbcrypto::genCryptoContextCKKSRNSInternal

Function Documentation

template<typename ContextGeneratorType, typename Element>
ContextGeneratorType::ContextType lbcrypto::genCryptoContextCKKSRNSInternal(const CCParams<ContextGeneratorType> &parameters)

Generates a CKKS cryptocontext from validated parameters: builds the encoding parameters (the scaling modulus size acts as the plaintext modulus), the crypto parameters and the scheme, adjusts the scaling and first modulus sizes for the NOISE_FLOODING_DECRYPT mode, runs the CKKS parameter generation and registers the context with the factory. Must not be called directly; use GenCryptoContext.

Parameters

parameters – the CKKS parameters

Returns

the cryptocontext