Compare commits

..

9 Commits

Author SHA1 Message Date
Philipp Maier 31b9abed97 sysmo_isim_sja2: convert #comments to python comments where possible
Related: SYS#6473
2023-06-22 17:49:26 +02:00
Philipp Maier caba0ccf6b sysmo_isim_sja2: rename classes SYSMO_ISIMSJA2_ to SYSMO_ISIMSJAX_
The classes that model the file layout are applicable on both card
models, so lets replace the 2 with an X
2023-06-22 17:34:26 +02:00
Philipp Maier de0adadcbb sysmo_isim_sja2: Add comments to explain sysmo_isimsjax_algorithms
Related: OS#6473
2023-06-22 16:55:19 +02:00
Philipp Maier 56e23aa246 sysmo_isim_sja2: define return types for __str__ and encode methods
Related: OS#6473
2023-06-22 16:54:53 +02:00
Philipp Maier 2be58ad806 sysmo_isim_sja2: fix file naming in comment
Related: SYS#6473
2023-06-22 16:54:53 +02:00
Philipp Maier 6ff21f766c sysmo_isim_sja2: update copyright header
Related: SYS#6473
2023-06-22 16:54:53 +02:00
Philipp Maier 0ac4f8c640 sysmo_isim_sja2: cosmetic: remove unnecessary new lines
Related: SYS#6473
2023-06-22 16:54:53 +02:00
Philipp Maier 634f8603b2 cosmetic: rename Ki to Key
sysmo-isim-sja2 and sysmo-isim-sjs1 support multiple different
authentication algorithms. The commandline options and the log output
always speaks of "Ki", this is only correct when COMP128 is used. So
lets be more generic and call it "Key" rather then "Ki".

Related: OS#6473
2023-06-22 15:43:38 +02:00
Philipp Maier dc428ee19d utils: allow to use a safe default with str_to_id
The input to str_to_id may originate from user input. It may be that the
input is not found in the given table. In this case an exception is
raised. This may be impractical in some cases. Let's add an optional
safe default that is returned in case the string is not found, this can
be used to either select default settings or to detect an error.

Related: SYS#6473
2023-06-22 12:20:41 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
TOOL=../../sysmo-isim-tool.sja2.py
# data for the test scripts. The values have to match the SIM card inserted while executing the test
IMSI=901700000046734
ADMPIN=67225880 # <==== CHANGE THIS TO THE ADM1 KEY OF YOUR TEST CARD!
ADMPIN=71365692 # <==== CHANGE THIS TO THE ADM1 KEY OF YOUR TEST CARD!
KI=D7882EAE7CD14F06108C55F8E5CFFE93

View File

@ -2,5 +2,5 @@ TOOL=../../sysmo-usim-tool.sjs1.py
# data for the test scripts. The values have to match the SIM card inserted while executing the test
ICCID=8988211320300000028
IMSI=262423203000002
ADMPIN=55538407 # <==== CHANGE THIS TO THE ADM1 KEY OF YOUR TEST CARD!
ADMPIN=05039324 # <==== CHANGE THIS TO THE ADM1 KEY OF YOUR TEST CARD!
KI=94c7f52c8c7337fad1af3a73b17b56ac