diff options
author | Harald Welte <laforge@osmocom.org> | 2024-02-05 10:41:29 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2024-02-05 17:54:30 +0100 |
commit | 9d1487af6dbf8b8ea2d1bb83045fd51bc1ec48fa (patch) | |
tree | 750186477286699de62f17441be2e2e1109a2b05 /pySim | |
parent | 908634396ff6a6d2adf907576523c449d9a8dbab (diff) |
global_platform: Fix INSTALL [for personalization]
The APDU hex string needs to use %02x instead of %02u...
Change-Id: Ic3b30ba623ee04f5190c77afd226b52165b3183f
Diffstat (limited to 'pySim')
-rw-r--r-- | pySim/global_platform/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pySim/global_platform/__init__.py b/pySim/global_platform/__init__.py index c7ea0be..ca99f5f 100644 --- a/pySim/global_platform/__init__.py +++ b/pySim/global_platform/__init__.py @@ -630,7 +630,7 @@ class ADF_SD(CardADF): """Perform GlobalPlatform INSTALL [for personalization] command in order to inform a Security Domain that the following STORE DATA commands are meant for a specific AID (specified here).""" # Section 11.5.2.3.6 / Table 11-47 - self.install(0x20, 0x00, "0000%02u%s000000" % (len(opts.application_aid)//2, opts.application_aid)) + self.install(0x20, 0x00, "0000%02x%s000000" % (len(opts.application_aid)//2, opts.application_aid)) inst_inst_parser = argparse.ArgumentParser() inst_inst_parser.add_argument('--load-file-aid', type=is_hexstr, default='', |