Class ParameterGenerationBFVRNS

Inheritance Relationships

Base Type

Class Documentation

class lbcrypto::ParameterGenerationBFVRNS : public lbcrypto::ParameterGenerationRNS

Inheritence diagram for lbcrypto::ParameterGenerationBFVRNS:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "2" [label="lbcrypto::ParameterGenerationRNS" tooltip="lbcrypto::ParameterGenerationRNS"] "1" [label="lbcrypto::ParameterGenerationBFVRNS" tooltip="lbcrypto::ParameterGenerationBFVRNS" fillcolor="#BFBFBF"] "3" [label="lbcrypto::ParameterGenerationBase< DCRTPoly >" tooltip="lbcrypto::ParameterGenerationBase< DCRTPoly >"] "2" -> "3" [dir=forward tooltip="public-inheritance"] "1" -> "2" [dir=forward tooltip="public-inheritance"] }

Collaboration diagram for lbcrypto::ParameterGenerationBFVRNS:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "2" [label="lbcrypto::ParameterGenerationRNS" tooltip="lbcrypto::ParameterGenerationRNS"] "1" [label="lbcrypto::ParameterGenerationBFVRNS" tooltip="lbcrypto::ParameterGenerationBFVRNS" fillcolor="#BFBFBF"] "3" [label="lbcrypto::ParameterGenerationBase< DCRTPoly >" tooltip="lbcrypto::ParameterGenerationBase< DCRTPoly >"] "2" -> "3" [dir=forward tooltip="public-inheritance"] "1" -> "2" [dir=forward tooltip="public-inheritance"] }

Public Functions

inline virtual ~ParameterGenerationBFVRNS()
virtual bool ParamsGenBFVRNS(std::shared_ptr<CryptoParametersBase<DCRTPoly>> cryptoParams, uint32_t evalAddCount, uint32_t multiplicativeDepth, uint32_t keySwitchCount, size_t dcrBits, uint32_t n, uint32_t numPartQ) const override

Method for computing all derived parameters based on chosen primitive parameters

Parameters
  • *cryptoParams – the crypto parameters object to be populated with parameters.

  • evalAddCount – number of EvalAdds assuming no EvalMult and KeySwitch operations are performed.

  • multiplicativeDepth – number of EvalMults assuming no EvalAdd and KeySwitch operations are performed.

  • keySwitchCount – number of KeySwitch operations assuming no EvalAdd and EvalMult operations are performed.

  • dcrtBits – number of bits in each CRT modulus*

  • n – ring dimension in case the user wants to use a custom ring dimension

  • numPartQ – number of partitions of Q for HYBRID key switching

template<class Archive>
inline void save(Archive &ar, std::uint32_t const version) const
template<class Archive>
inline void load(Archive &ar, std::uint32_t const version)
inline std::string SerializedObjectName() const