laforge has uploaded this change for review. (
https://gerrit.osmocom.org/c/pysim/+/35853?usp=email )
Change subject: global_platform: Fix INSTALL [for personalization]
......................................................................
global_platform: Fix INSTALL [for personalization]
The APDU hex string needs to use %02x instead of %02u...
Change-Id: Ic3b30ba623ee04f5190c77afd226b52165b3183f
---
M pySim/global_platform/__init__.py
1 file changed, 12 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/53/35853/1
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 @@
"""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='',
--
To view, visit
https://gerrit.osmocom.org/c/pysim/+/35853?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ic3b30ba623ee04f5190c77afd226b52165b3183f
Gerrit-Change-Number: 35853
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange