|
@@ -1,5 +1,14 @@
|
|
|
#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;
|