Skip to content

Commit

Permalink
Fix configuration enumeration.
Browse files Browse the repository at this point in the history
  • Loading branch information
J08nY committed Jun 3, 2024
1 parent 89eacd1 commit 0a46139
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyecsca/ec/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class RandomMod(EnumDefine):


@public
@dataclass(frozen=True)
@dataclass(frozen=True, eq=True)
class Configuration:
"""An ECC implementation configuration."""

Expand Down
2 changes: 1 addition & 1 deletion pyecsca/ec/curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class EllipticCurve:
>>> curve.affine_add(P, Q)
Point([x=110884201872336783252492544257507655322265785208411447156687491781308462893723, y=17851997459724035659875545393642578516937407971293368958749928013979790074156] in shortw/affine)
>>> curve.affine_multiply(P, 10)
Point([x=102258728610797412855984739741975475478412665729440354248608608794190482472287, y=108928182525231985447294771990422379640574982656217795144410067267239526061757] in shortw/affine)
Point([x=102258728610797412855984739741975475478412665729440354248608608794190482472287, y=6863906685124263315402674958985193889511160759072519051123564041627571792194] in shortw/affine)
>>> curve.affine_random() # doctest: +ELLIPSIS
Point([x=..., y=...] in shortw/affine)
>>> curve.is_on_curve(P)
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
[tool.setuptools_scm]

[tool.pytest.ini_options]
consider_namespace_packages = true
testpaths = ["pyecsca", "test"]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
Expand Down
1 change: 0 additions & 1 deletion test/ec/test_pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def test_code_formula():
graph = FormulaGraph(formula)
code = graph.to_formula()
data = pickle.dumps(code)
pickletools.dis(data)
back = pickle.loads(data)
assert code == back

Expand Down

0 comments on commit 0a46139

Please sign in to comment.