Ciphertext.cc 458 B

12345678910111213141516171819202122
  1. #include "Ciphertext.h"
  2. #include "openfhe/pke/ciphertext.h"
  3. namespace openfhe
  4. {
  5. CiphertextDCRTPoly::CiphertextDCRTPoly(const std::shared_ptr<CiphertextImpl>& ciphertext)
  6. : m_ciphertext(ciphertext)
  7. { }
  8. std::shared_ptr<CiphertextImpl> CiphertextDCRTPoly::GetInternal() const
  9. {
  10. return m_ciphertext;
  11. }
  12. // Generator functions
  13. std::unique_ptr<CiphertextDCRTPoly> GenNullCiphertext()
  14. {
  15. return std::make_unique<CiphertextDCRTPoly>();
  16. }
  17. } // openfhe