laforge has uploaded this change for review.
pySim.esim.saip: Hex representation of SecurityDomainKey
Let's print the key_usage_qualifier in hexadecimal notation (more compact)
Change-Id: Ic9a92d53d73378eafca1760dd8351215bce1157a
---
M pySim/esim/saip/__init__.py
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/27/41527/1
diff --git a/pySim/esim/saip/__init__.py b/pySim/esim/saip/__init__.py
index 3828023..c7f3e75 100644
--- a/pySim/esim/saip/__init__.py
+++ b/pySim/esim/saip/__init__.py
@@ -985,9 +985,9 @@
self.key_components = key_components
def __repr__(self) -> str:
- return 'SdKey(KVN=0x%02x, ID=0x%02x, Usage=%s, Comp=%s)' % (self.key_version_number,
+ return 'SdKey(KVN=0x%02x, ID=0x%02x, Usage=0x%x, Comp=%s)' % (self.key_version_number,
self.key_identifier,
- self.key_usage_qualifier,
+ build_construct(KeyUsageQualifier, self.key_usage_qualifier)[0],
repr(self.key_components))
@classmethod
To view, visit change 41527. To unsubscribe, or for help writing mail filters, visit settings.