Ciphertext.cc 434 B

1234567891011121314151617181920
  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. std::unique_ptr<CiphertextDCRTPoly> GenNullCiphertext()
  13. {
  14. return std::make_unique<CiphertextDCRTPoly>();
  15. }
  16. } // openfhe