Class KeySwitchRNS

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class lbcrypto::KeySwitchRNS : public lbcrypto::KeySwitchBase<DCRTPoly>

Inheritence diagram for lbcrypto::KeySwitchRNS:

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

Collaboration diagram for lbcrypto::KeySwitchRNS:

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

Abstract base of the RNS (DCRTPoly) key switching methods.

Adds serialization to KeySwitchBase<DCRTPoly>; the key switching operations themselves are implemented by the derived classes KeySwitchBV and KeySwitchHYBRID.

Subclassed by lbcrypto::KeySwitchBV, lbcrypto::KeySwitchHYBRID

Public Functions

virtual ~KeySwitchRNS() = default

Virtual destructor.

template<class Archive>
inline void save(Archive &ar) const

Serializes the object (no state of its own beyond the base class).

Parameters

ar – archive to write to

template<class Archive>
inline void load(Archive &ar)

Deserializes the object.

Parameters

ar – archive to read from

inline virtual std::string SerializedObjectName() const

Name used to identify the class in serialized objects.

Returns

the name of the class