1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #pragma once
- #include "bits/stringfwd.h"
- #include "SerialMode.h" // SerialMode
- namespace openfhe
- {
- class CiphertextDCRTPoly;
- class CryptoContextDCRTPoly;
- class PublicKeyDCRTPoly;
- bool SerializeCryptoContextToFile(const std::string& ccLocation,
- const CryptoContextDCRTPoly& cryptoContext, const SerialMode serialMode);
- bool DeserializeCryptoContextFromFile(const std::string& ccLocation,
- CryptoContextDCRTPoly& cryptoContext, const SerialMode serialMode);
- bool SerializeEvalMultKeyToFile(const std::string& multKeyLocation,
- const CryptoContextDCRTPoly& cryptoContext, const SerialMode serialMode);
- bool SerializeEvalMultKeyByIdToFile(const std::string& multKeyLocation,
- const SerialMode serialMode, const std::string& id);
- bool DeserializeEvalMultKeyFromFile(const std::string& multKeyLocation,
- const SerialMode serialMode);
- bool SerializeEvalSumKeyToFile(const std::string& sumKeyLocation,
- const CryptoContextDCRTPoly& cryptoContext, const SerialMode serialMode);
- bool SerializeEvalSumKeyByIdToFile(const std::string& sumKeyLocation,
- const SerialMode serialMode, const std::string& id);
- bool DeserializeEvalSumKeyFromFile(const std::string& sumKeyLocation, const SerialMode serialMode);
- bool SerializeEvalAutomorphismKeyToFile(const std::string& automorphismKeyLocation,
- const CryptoContextDCRTPoly& cryptoContext, const SerialMode serialMode);
- bool SerializeEvalAutomorphismKeyByIdToFile(const std::string& automorphismKeyLocation,
- const SerialMode serialMode, const std::string& id);
- bool DeserializeEvalAutomorphismKeyFromFile(const std::string& automorphismKeyLocation,
- const SerialMode serialMode);
- bool SerializePublicKeyToFile(const std::string& publicKeyLocation,
- const PublicKeyDCRTPoly& publicKey, const SerialMode serialMode);
- bool DeserializePublicKeyFromFile(const std::string& publicKeyLocation,
- PublicKeyDCRTPoly& publicKey, const SerialMode serialMode);
- bool SerializeCiphertextToFile(const std::string& ciphertextLocation,
- const CiphertextDCRTPoly& ciphertext, const SerialMode serialMode);
- bool DeserializeCiphertextFromFile(const std::string& ciphertextLocation,
- CiphertextDCRTPoly& ciphertext, const SerialMode serialMode);
- } // openfhe
|