Class PlaintextFactory

Page Contents

Class Documentation

class lbcrypto::PlaintextFactory

Public Static Functions

template<typename T, typename std::enable_if<std::is_same<T, Poly::Params>::value || std::is_same<T, NativePoly::Params>::value || std::is_same<T, DCRTPoly::Params>::value, bool>::type = true>
static inline Plaintext MakePlaintext(PlaintextEncodings encoding, std::shared_ptr<T> vp, EncodingParams ep, SCHEME schemeID = SCHEME::INVALID_SCHEME)
template<typename T, typename std::enable_if<std::is_same<T, Poly::Params>::value || std::is_same<T, NativePoly::Params>::value || std::is_same<T, DCRTPoly::Params>::value, bool>::type = true>
static inline Plaintext MakePlaintext(const std::vector<int64_t> &value, PlaintextEncodings encoding, std::shared_ptr<T> vp, EncodingParams ep, SCHEME schemeID = SCHEME::INVALID_SCHEME, size_t noiseScaleDeg = 1, uint32_t level = 0, NativeInteger scalingFactor = 1)
template<typename T, typename std::enable_if<std::is_same<T, Poly::Params>::value || std::is_same<T, NativePoly::Params>::value || std::is_same<T, DCRTPoly::Params>::value, bool>::type = true>
static inline Plaintext MakePlaintext(const std::string &value, PlaintextEncodings encoding, std::shared_ptr<T> vp, EncodingParams ep, SCHEME schemeID = SCHEME::INVALID_SCHEME, size_t noiseScaleDeg = 1, uint32_t level = 0, NativeInteger scalingFactor = 1)