pyecsca.sca.target.leakage module

class LeakageTarget(model, coords, mult, leakage_model)[source]

Bases: Target

model: CurveModel[source]
coords: CoordinateModel[source]
mult: ScalarMultiplier[source]
leakage_model: LeakageModel[source]
params: Optional[DomainParameters][source]
privkey: Optional[Mod][source]
pubkey: Optional[Point][source]
get_trace(context)[source]
Return type:

Trace

simulate_scalar_mult_traces(num_of_traces, scalar)[source]
Return type:

Tuple[list[Point], list[Trace]]

simulate_ecdh_traces(num_of_traces)[source]
Return type:

Tuple[list[Point], list[Trace]]

set_params(params)[source]
Return type:

None

set_leakage_model(leakage_model)[source]
Return type:

None

scalar_mult(scalar, point)[source]
Return type:

Tuple[Point, Trace]

generate()[source]
Return type:

Tuple[Tuple[Mod, Point], Trace]

set_privkey(privkey)[source]
Return type:

None

set_pubkey(pubkey)[source]
Return type:

None

ecdh(other_pubkey, hash_algo=None)[source]
Return type:

Tuple[bytes, Trace]

ecdsa_sign(data, hash_algo=None)[source]
Return type:

Tuple[SignatureResult, Trace]

ecdsa_verify(data, signature, hash_algo=None)[source]
Return type:

Tuple[bool, Trace]

debug()[source]
connect()[source]

Connect to the target device.

disconnect()[source]

Disconnect from the target device.

set_trigger()[source]
quit()[source]