Template Function lbcrypto::genCryptoContextBFVRNSInternal

Function Documentation

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

Builds a BFV crypto context from the parameters: creates the crypto parameters object (with the noise scale fixed to 1), the scheme object with the requested key switching technique, runs the BFV parameter generation and registers the context with the factory. MUST NOT be used without the wrapper CryptoContextBFVRNS::genCryptoContext(), which validates the parameters first.

Template Parameters
  • ContextGeneratorType – the context generator class (CryptoContextBFVRNS).

  • Element – the ring element type (DCRTPoly).

Parameters

parameters – the BFV parameters.

Returns

the generated crypto context.