mirror of https://gerrit.osmocom.org/pysim
sysmocom_sja2: Properly decode EF.USIM_SQN freshness
The freshness parameter is not one opaque bytestring, but an array of 6-byte integer values. before: "freshness": "000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" after: "freshness": [ 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] Change-Id: I53edbcdb40652eb0e2bc4c982cf7b6f7d585cab9
This commit is contained in:
parent
7a8aa863a6
commit
eb45838c47
|
@ -166,7 +166,7 @@ class EF_USIM_SQN(TransparentEF):
|
|||
'aus_concealed'/Bit, 'autn_concealed'/Bit)
|
||||
self._construct = Struct('flag1'/Flag1, 'flag2'/Flag2,
|
||||
'delta_max'/BytesInteger(6), 'age_limit'/BytesInteger(6),
|
||||
'freshness'/HexAdapter(GreedyBytes))
|
||||
'freshness'/GreedyRange(BytesInteger(6)))
|
||||
|
||||
class EF_USIM_AUTH_KEY(TransparentEF):
|
||||
def __init__(self, fid='af20', name='EF.USIM_AUTH_KEY'):
|
||||
|
|
Loading…
Reference in New Issue