Class KeySwitchRNS
Defined in File keyswitch-rns.h
Page Contents
Inheritance Relationships
Base Type
public lbcrypto::KeySwitchBase< DCRTPoly >(Template Class KeySwitchBase)
Derived Types
public lbcrypto::KeySwitchBV(Class KeySwitchBV)public lbcrypto::KeySwitchHYBRID(Class KeySwitchHYBRID)
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"]
}](../_images/graphviz-5df8b927885a844a0fff9a679803e3fbd867e626.png)
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"]
}](../_images/graphviz-5ee9bb121e188b6aae5a4fb5277337256cbd824a.png)
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
-
virtual ~KeySwitchRNS() = default