|
@@ -14,6 +14,11 @@ class PrivateKeyDCRTPoly final
|
|
{
|
|
{
|
|
std::shared_ptr<PrivateKeyImpl> m_privateKey;
|
|
std::shared_ptr<PrivateKeyImpl> m_privateKey;
|
|
public:
|
|
public:
|
|
|
|
+ friend bool SerializePrivateKeyToFile(const std::string& privateKeyLocation,
|
|
|
|
+ const PrivateKeyDCRTPoly& privateKey, const SerialMode serialMode);
|
|
|
|
+ friend bool DeserializePrivateKeyFromFile(const std::string& privateKeyLocation,
|
|
|
|
+ PrivateKeyDCRTPoly& privateKey, const SerialMode serialMode);
|
|
|
|
+
|
|
PrivateKeyDCRTPoly() = default;
|
|
PrivateKeyDCRTPoly() = default;
|
|
explicit PrivateKeyDCRTPoly(const std::shared_ptr<PrivateKeyImpl>& privateKey);
|
|
explicit PrivateKeyDCRTPoly(const std::shared_ptr<PrivateKeyImpl>& privateKey);
|
|
PrivateKeyDCRTPoly(const PrivateKeyDCRTPoly&) = delete;
|
|
PrivateKeyDCRTPoly(const PrivateKeyDCRTPoly&) = delete;
|