aboutsummaryrefslogtreecommitdiff
path: root/pyecsca/ec/coordinates.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyecsca/ec/coordinates.py')
-rw-r--r--pyecsca/ec/coordinates.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyecsca/ec/coordinates.py b/pyecsca/ec/coordinates.py
index 585fb28..285e54b 100644
--- a/pyecsca/ec/coordinates.py
+++ b/pyecsca/ec/coordinates.py
@@ -100,3 +100,6 @@ class EFDCoordinateModel(CoordinateModel):
if not isinstance(other, EFDCoordinateModel):
return False
return self.curve_model == other.curve_model and self.name == other.name
+
+ def __hash__(self):
+ return hash(self.curve_model) + hash(self.name)