diff options
| author | Andrej Bátora | 2023-11-27 15:31:25 +0100 |
|---|---|---|
| committer | Andrej Bátora | 2023-11-27 15:31:25 +0100 |
| commit | 0ddb52ed4a4bba5224939f5b3bec9dbf6a91bead (patch) | |
| tree | 267c809ff89eac1fd6d19df395d8d4612bc7fcfb /pyecsca/sca/target | |
| parent | fbd9ee3bd9baaa567ea80d1f86ca43727fa5173c (diff) | |
| download | pyecsca-0ddb52ed4a4bba5224939f5b3bec9dbf6a91bead.tar.gz pyecsca-0ddb52ed4a4bba5224939f5b3bec9dbf6a91bead.tar.zst pyecsca-0ddb52ed4a4bba5224939f5b3bec9dbf6a91bead.zip | |
Diffstat (limited to 'pyecsca/sca/target')
| -rw-r--r-- | pyecsca/sca/target/leakage.py (renamed from pyecsca/sca/target/emulator.py) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyecsca/sca/target/emulator.py b/pyecsca/sca/target/leakage.py index bca27cf..8a8acd6 100644 --- a/pyecsca/sca/target/emulator.py +++ b/pyecsca/sca/target/leakage.py @@ -18,7 +18,7 @@ import numpy as np @public -class EmulatorTarget(Target): +class LeakageTarget(Target): model: CurveModel coords: CoordinateModel @@ -48,7 +48,7 @@ class EmulatorTarget(Target): context.actions.walk(callback) return Trace(np.array(temp_trace)) - def emulate_scalar_mult_traces(self, num_of_traces: int, scalar: int) -> Tuple[list[Point], list[Trace]]: + def simulate_scalar_mult_traces(self, num_of_traces: int, scalar: int) -> Tuple[list[Point], list[Trace]]: if self.params is None: raise ValueError("Missing DomainParameters") points = [self.params.curve.affine_random().to_model(self.coords, self.params.curve) for _ in range(num_of_traces)] @@ -58,7 +58,7 @@ class EmulatorTarget(Target): traces.append(trace) return points, traces - def emulate_ecdh_traces(self, num_of_traces: int) -> Tuple[list[Point], list[Trace]]: + def simulate_ecdh_traces(self, num_of_traces: int) -> Tuple[list[Point], list[Trace]]: if self.params is None: raise ValueError("Missing DomainParameters") other_pubs = [self.params.curve.affine_random().to_model(self.coords, self.params.curve) for _ in range(num_of_traces)] |
