diff options
Diffstat (limited to 'pyecsca/ec/curve.py')
| -rw-r--r-- | pyecsca/ec/curve.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyecsca/ec/curve.py b/pyecsca/ec/curve.py index f274683..fedf65f 100644 --- a/pyecsca/ec/curve.py +++ b/pyecsca/ec/curve.py @@ -120,8 +120,8 @@ class EllipticCurve: lhs, rhs = assumption_string.split(" = ") expr = sympify(f"{rhs} - {lhs}") for symbol in expr.free_symbols: - if (value := self.parameters.get(str(symbol), None)) is not None: - expr = expr.subs(symbol, value) + if (val := self.parameters.get(str(symbol), None)) is not None: + expr = expr.subs(symbol, val) if len(expr.free_symbols) > 0: raise ValueError( f"Missing necessary coordinate model parameter ({assumption_string})." |
