forked from public/pysim
pySim.esim.saip: Hex representation of SecurityDomainKey
Let's print the key_usage_qualifier in hexadecimal notation (more compact) Change-Id: Ic9a92d53d73378eafca1760dd8351215bce1157a
This commit is contained in:
@@ -985,9 +985,9 @@ class SecurityDomainKey:
|
|||||||
self.key_components = key_components
|
self.key_components = key_components
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
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_identifier,
|
||||||
self.key_usage_qualifier,
|
build_construct(KeyUsageQualifier, self.key_usage_qualifier)[0],
|
||||||
repr(self.key_components))
|
repr(self.key_components))
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user