diff options
| author | J08nY | 2024-08-27 16:01:32 +0200 |
|---|---|---|
| committer | J08nY | 2024-08-27 16:01:32 +0200 |
| commit | f5af7b538692cdfdeab6f71751149b496062fde4 (patch) | |
| tree | 1f6633946af43b2b8515711a4a83ae188ae121ea /pyecsca/sca | |
| parent | e8777033207cb4f460156013fa893032a2b36b15 (diff) | |
| download | pyecsca-f5af7b538692cdfdeab6f71751149b496062fde4.tar.gz pyecsca-f5af7b538692cdfdeab6f71751149b496062fde4.tar.zst pyecsca-f5af7b538692cdfdeab6f71751149b496062fde4.zip | |
Diffstat (limited to 'pyecsca/sca')
| -rw-r--r-- | pyecsca/sca/target/leakage.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyecsca/sca/target/leakage.py b/pyecsca/sca/target/leakage.py index 74838b8..6487c56 100644 --- a/pyecsca/sca/target/leakage.py +++ b/pyecsca/sca/target/leakage.py @@ -9,7 +9,7 @@ from pyecsca.ec.params import DomainParameters from pyecsca.ec.point import Point from pyecsca.ec.mult import ScalarMultiplier from pyecsca.ec.key_generation import KeyGeneration -from pyecsca.ec.key_agreement import KeyAgreement +from pyecsca.ec.key_agreement import ECDH from pyecsca.ec.signature import Signature, SignatureResult from pyecsca.ec.formula import FormulaAction from pyecsca.ec.context import DefaultContext, local @@ -121,7 +121,7 @@ class LeakageTarget(Target): if self.privkey is None: raise ValueError("Missing privkey") with local(DefaultContext()) as ctx: - ecdh = KeyAgreement( + ecdh = ECDH( self.mult, self.params, other_pubkey, self.privkey, hash_algo ) shared_secret = ecdh.perform() |
