1234567891011121314151617181920212223242526272829 |
- #include "EGCiphertext.hpp"
- EGCiphertext::EGCiphertext()
- { /* Do nothing */ }
- EGCiphertext::EGCiphertext(const Curvepoint& mask, const Curvepoint& 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;
- }
|