#include "EGCiphertext.hpp" EGCiphertext::EGCiphertext() { /* Do nothing */ } EGCiphertext::EGCiphertext(const Twistpoint& mask, const Twistpoint& encryptedMessage) { this->mask = mask; this->encryptedMessage = encryptedMessage; } bool EGCiphertext::operator==(const EGCiphertext& other) const { return mask == other.mask && encryptedMessage == other.encryptedMessage; } std::ostream& operator<<(std::ostream& os, const EGCiphertext& output) { os << output.mask << output.encryptedMessage; return os; } std::istream& operator>>(std::istream& is, EGCiphertext& input) { is >> input.mask >> input.encryptedMessage; return is; }