EGCiphertext.hpp 521 B

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