Ciphertext.cc 592 B

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