EGCiphertext.hpp 618 B

1234567891011121314151617181920212223242526
  1. #ifndef __EG_CIPHERTEXT_HPP
  2. #define __EG_CIPHERTEXT_HPP
  3. #include "Curvepoint.hpp"
  4. class EGCiphertext {
  5. public:
  6. EGCiphertext();
  7. EGCiphertext(
  8. const Twistpoint& mask,
  9. const Twistpoint& encryptedMessage);
  10. Twistpoint mask;
  11. Twistpoint encryptedMessage;
  12. bool operator==(
  13. const EGCiphertext& other
  14. ) const;
  15. friend std::ostream& operator<<(
  16. std::ostream& os,
  17. const EGCiphertext& output);
  18. friend std::istream& operator>>(
  19. std::istream& is,
  20. EGCiphertext& input);
  21. };
  22. #endif