diff options
| author | J08nY | 2025-03-14 17:33:31 +0100 |
|---|---|---|
| committer | J08nY | 2025-03-14 17:33:31 +0100 |
| commit | 1dfb66aa161b3236de27269f4e387e5d3ab7c79e (patch) | |
| tree | bc4181601a2aac2965864ce9ba0b54bcedc30f21 /pyecsca/sca | |
| parent | 4ab753b86f9741d4a9e4c4ec01921911431f1d93 (diff) | |
| download | pyecsca-1dfb66aa161b3236de27269f4e387e5d3ab7c79e.tar.gz pyecsca-1dfb66aa161b3236de27269f4e387e5d3ab7c79e.tar.zst pyecsca-1dfb66aa161b3236de27269f4e387e5d3ab7c79e.zip | |
Fix ECTester applet comms.
Diffstat (limited to 'pyecsca/sca')
| -rw-r--r-- | pyecsca/sca/target/ectester.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pyecsca/sca/target/ectester.py b/pyecsca/sca/target/ectester.py index 5ab5d7e..97e1605 100644 --- a/pyecsca/sca/target/ectester.py +++ b/pyecsca/sca/target/ectester.py @@ -523,9 +523,9 @@ class ECTesterTarget(ISO7816Target, ABC): # pragma: no cover CLA_ECTESTER = 0xB0 AID_PREFIX = bytes([0x45, 0x43, 0x54, 0x65, 0x73, 0x74, 0x65, 0x72]) AID_CURRENT_VERSION = bytes([0x30, 0x33, 0x33]) # Version v0.3.3 - AID_SUFFIX_221 = bytes([0x62]) - AID_SUFFIX_222 = bytes([0x78]) - AID_SUFFIX_304 = bytes([0x94]) + AID_SUFFIX_221 = bytes([0x20, 0x32, 0x32, 0x31]) + AID_SUFFIX_222 = bytes([0x20, 0x32, 0x32, 0x32]) + AID_SUFFIX_305 = bytes([0x20, 0x33, 0x30, 0x35]) chunking: bool @@ -574,7 +574,7 @@ class ECTesterTarget(ISO7816Target, ABC): # pragma: no cover version_bytes = bytearray(latest_version) for _ in range(count_back): for aid_suffix in ( - self.AID_SUFFIX_304, + self.AID_SUFFIX_305, self.AID_SUFFIX_222, self.AID_SUFFIX_221, ): |
