aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2020-03-17 14:24:02 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2020-03-17 14:26:57 +0100
commit77d68b84b3095aa329f78421014e8e6263fb8257 (patch)
treeef6092e5948b382a50a17094871f4cb964692a17
parent00241b44231cab27871fcf3d0ee62b59f95fe899 (diff)
downloadsysmo-usim-tool-77d68b84b3095aa329f78421014e8e6263fb8257.tar.gz
sysmo-usim-tool-77d68b84b3095aa329f78421014e8e6263fb8257.tar.bz2
sysmo-usim-tool-77d68b84b3095aa329f78421014e8e6263fb8257.tar.xz
sysmo-usim-tool-77d68b84b3095aa329f78421014e8e6263fb8257.zip
sysmo_isim_sja2: reset SQN configuration to the current profile
The profile of sysmo_isim_sja2 has changed the content of the SQN confugrantion file. Lets update the .out files of the tests and the default values inside the program as well.
-rw-r--r--sysmo_isim_sja2.py8
-rw-r--r--tests/sja2/06_seq.out16
2 files changed, 12 insertions, 12 deletions
diff --git a/sysmo_isim_sja2.py b/sysmo_isim_sja2.py
index c4d286c..8f595e4 100644
--- a/sysmo_isim_sja2.py
+++ b/sysmo_isim_sja2.py
@@ -314,18 +314,18 @@ class SYSMO_ISIMSJA2_FILE_EF_USIM_SQN:
# Flag1:
ind_size_bits = 5 # speficy file length by 2^ind_len
sqn_check_enabled = True # perform SQN checks below
- sqn_age_limit_enabled = True # perform age limit check: (SQNms-SQN) <= AGE_LIMIT)
+ sqn_age_limit_enabled = False # perform age limit check: (SQNms-SQN) <= AGE_LIMIT)
sqn_max_delta_enabled = True # perform delta max check: (SWN-SQNms) <= DELTA MAX)
sqn_check_skip_first = True # accept any SQN on the first authentication
# Flag2:
conceal_autn = True # Conceal the value of AUTN
conceal_auts = True # Conceal the value of AUTS
- no_amf_clear = True # Do not clear AMF when computing MAC-S
+ no_amf_clear = False # Do not clear AMF when computing MAC-S
# Data:
- max_delta = 281474976710655
- age_limit = 281474976710655
+ max_delta = 2**28 << ind_size_bits
+ age_limit = 2**28 << ind_size_bits
freshness_data = [0x00] * (6*2**ind_size_bits) # initalize to zero
def __init__(self, content = None):
diff --git a/tests/sja2/06_seq.out b/tests/sja2/06_seq.out
index 63baf2a..9486f61 100644
--- a/tests/sja2/06_seq.out
+++ b/tests/sja2/06_seq.out
@@ -21,14 +21,14 @@ Reading Milenage Sequence parameters...
* Current SQN Configuration for ADF_USIM:
IND (bits): 5
SQN Check enabled
- SQN Age Limit enabled
+ SQN Age Limit disabled
SQN Max Delta enabled
SQN Skip first enabled
SQN Conceal AUTN enabled
SQN Conceal AUTS enabled
- SQN No AMF clear enabled
- Max Delta: 281474976710655
- Age Limit: 281474976710655
+ SQN No AMF clear disabled
+ Max Delta: 8589934592
+ Age Limit: 8589934592
Freshness Data:
000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
@@ -39,14 +39,14 @@ Reading Milenage Sequence parameters...
* Current SQN Configuration for ADF_ISIM:
IND (bits): 5
SQN Check enabled
- SQN Age Limit enabled
+ SQN Age Limit disabled
SQN Max Delta enabled
SQN Skip first enabled
SQN Conceal AUTN enabled
SQN Conceal AUTS enabled
- SQN No AMF clear enabled
- Max Delta: 281474976710655
- Age Limit: 281474976710655
+ SQN No AMF clear disabled
+ Max Delta: 8589934592
+ Age Limit: 8589934592
Freshness Data:
000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000