EGCiphertext.cpp 448 B

1234567891011121314151617181920
  1. #include "EGCiphertext.hpp"
  2. bool EGCiphertext::operator==(const EGCiphertext& other) const
  3. {
  4. return mask == other.mask && encryptedMessage == other.encryptedMessage;
  5. }
  6. std::ostream& operator<<(std::ostream& os, const EGCiphertext& output)
  7. {
  8. os << output.mask << output.encryptedMessage;
  9. return os;
  10. }
  11. std::istream& operator>>(std::istream& is, EGCiphertext& input)
  12. {
  13. is >> input.mask >> input.encryptedMessage;
  14. return is;
  15. }