diff options
| author | J08nY | 2023-11-29 14:21:27 +0100 |
|---|---|---|
| committer | J08nY | 2023-11-29 14:21:27 +0100 |
| commit | 5108cb380de695690449dd195f25cd55a5941c0f (patch) | |
| tree | 92290d1f85029b2cde4fc479461cb7c192c4def3 | |
| parent | fbd9ee3bd9baaa567ea80d1f86ca43727fa5173c (diff) | |
| download | pyecsca-5108cb380de695690449dd195f25cd55a5941c0f.tar.gz pyecsca-5108cb380de695690449dd195f25cd55a5941c0f.tar.zst pyecsca-5108cb380de695690449dd195f25cd55a5941c0f.zip | |
| -rw-r--r-- | pyecsca/ec/point.py | 2 | ||||
| -rw-r--r-- | pyecsca/sca/re/rpa.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/pyecsca/ec/point.py b/pyecsca/ec/point.py index 280d746..bdbba5e 100644 --- a/pyecsca/ec/point.py +++ b/pyecsca/ec/point.py @@ -140,7 +140,7 @@ class Point: if randomized: lmbd = Mod.random(curve.prime) for var, value in result.items(): - result[var] = value * lmbd**coordinate_model.homogweights[var] + result[var] = value * (lmbd**coordinate_model.homogweights[var]) return action.exit(Point(coordinate_model, **result)) def equals_affine(self, other: "Point") -> bool: diff --git a/pyecsca/sca/re/rpa.py b/pyecsca/sca/re/rpa.py index db88dae..b1661e6 100644 --- a/pyecsca/sca/re/rpa.py +++ b/pyecsca/sca/re/rpa.py @@ -34,8 +34,11 @@ class MultipleContext(Context): """Context that traces the multiples of points computed.""" base: Optional[Point] + """The base point that all the multiples are counted from.""" points: MutableMapping[Point, int] + """The mapping of points to the multiples they represent (e.g., base -> 1).""" parents: MutableMapping[Point, List[Point]] + """The mapping of points to their parent they were computed from.""" inside: bool def __init__(self): |
