tests/05_milenage_par: Extend unit test
At the moment we only read the milenage parameters but we do not write them. Lets extend the unit test so that we test writing as well. Change-Id: I81dd27b3e65510db931188171093f0e909cde16f Related: OS#3376
This commit is contained in:
parent
6868ea7c26
commit
050231d86c
|
@ -13,6 +13,99 @@ Authenticating...
|
|||
|
||||
Detected Card IMSI: 262423203000002
|
||||
|
||||
Programming Milenage parameters...
|
||||
* Initalizing...
|
||||
* New Milenage Parameters for (EF.MLNGC):
|
||||
C1: 1234567890abcdef1234567890abcdef
|
||||
C2: f1234567890abcdef1234567890abcde
|
||||
C3: ef1234567890abcdef1234567890abcd
|
||||
C4: def1234567890abcdef1234567890abc
|
||||
C5: cdef1234567890abcdef1234567890ab
|
||||
R1: 0xaa
|
||||
R2: 0xbb
|
||||
R3: 0xcc
|
||||
R4: 0xdd
|
||||
R5: 0xee
|
||||
* Programming...
|
||||
|
||||
Done!
|
||||
sysmoUSIM-SJS1 parameterization tool
|
||||
Copyright (c)2017 Sysmocom s.f.m.c. GmbH
|
||||
|
||||
Initializing smartcard terminal...
|
||||
|
||||
Detected Card ICCID: 8988211320300000028
|
||||
|
||||
Authenticating...
|
||||
* Remaining attempts: 3
|
||||
* Authenticating...
|
||||
* Authentication successful
|
||||
* Remaining attempts: 3
|
||||
|
||||
Detected Card IMSI: 262423203000002
|
||||
|
||||
Reading Milenage parameters...
|
||||
* Initalizing...
|
||||
* Reading...
|
||||
* Current Milenage Parameters in (EF.MLNGC):
|
||||
C1: 1234567890abcdef1234567890abcdef
|
||||
C2: f1234567890abcdef1234567890abcde
|
||||
C3: ef1234567890abcdef1234567890abcd
|
||||
C4: def1234567890abcdef1234567890abc
|
||||
C5: cdef1234567890abcdef1234567890ab
|
||||
R1: 0xaa
|
||||
R2: 0xbb
|
||||
R3: 0xcc
|
||||
R4: 0xdd
|
||||
R5: 0xee
|
||||
|
||||
Done!
|
||||
sysmoUSIM-SJS1 parameterization tool
|
||||
Copyright (c)2017 Sysmocom s.f.m.c. GmbH
|
||||
|
||||
Initializing smartcard terminal...
|
||||
|
||||
Detected Card ICCID: 8988211320300000028
|
||||
|
||||
Authenticating...
|
||||
* Remaining attempts: 3
|
||||
* Authenticating...
|
||||
* Authentication successful
|
||||
* Remaining attempts: 3
|
||||
|
||||
Detected Card IMSI: 262423203000002
|
||||
|
||||
Programming Milenage parameters...
|
||||
* Initalizing...
|
||||
* New Milenage Parameters for (EF.MLNGC):
|
||||
C1: 00000000000000000000000000000000
|
||||
C2: 00000000000000000000000000000001
|
||||
C3: 00000000000000000000000000000002
|
||||
C4: 00000000000000000000000000000004
|
||||
C5: 00000000000000000000000000000008
|
||||
R1: 0x40
|
||||
R2: 0x0
|
||||
R3: 0x20
|
||||
R4: 0x40
|
||||
R5: 0x60
|
||||
* Programming...
|
||||
|
||||
Done!
|
||||
sysmoUSIM-SJS1 parameterization tool
|
||||
Copyright (c)2017 Sysmocom s.f.m.c. GmbH
|
||||
|
||||
Initializing smartcard terminal...
|
||||
|
||||
Detected Card ICCID: 8988211320300000028
|
||||
|
||||
Authenticating...
|
||||
* Remaining attempts: 3
|
||||
* Authenticating...
|
||||
* Authentication successful
|
||||
* Remaining attempts: 3
|
||||
|
||||
Detected Card IMSI: 262423203000002
|
||||
|
||||
Reading Milenage parameters...
|
||||
* Initalizing...
|
||||
* Reading...
|
||||
|
|
|
@ -1,5 +1,24 @@
|
|||
#!/bin/sh
|
||||
. ./test-data
|
||||
|
||||
# we only test reading here
|
||||
# Write and reread with test data
|
||||
C1="1234567890ABCDEF1234567890ABCDEF"
|
||||
C2="F1234567890ABCDEF1234567890ABCDE"
|
||||
C3="EF1234567890ABCDEF1234567890ABCD"
|
||||
C4="DEF1234567890ABCDEF1234567890ABC"
|
||||
C5="CDEF1234567890ABCDEF1234567890AB"
|
||||
R12345="AA:BB:CC:DD:EE"
|
||||
PARAMS=$C1$C2$C3$C4$C5$R12345
|
||||
$TOOL -a $ADMPIN -L $PARAMS
|
||||
$TOOL -a $ADMPIN -l
|
||||
|
||||
# Write and reread with factory defaults
|
||||
C1="00000000000000000000000000000000"
|
||||
C2="00000000000000000000000000000001"
|
||||
C3="00000000000000000000000000000002"
|
||||
C4="00000000000000000000000000000004"
|
||||
C5="00000000000000000000000000000008"
|
||||
R12345="40:00:20:40:60"
|
||||
PARAMS=$C1$C2$C3$C4$C5$R12345
|
||||
$TOOL -a $ADMPIN -L $PARAMS
|
||||
$TOOL -a $ADMPIN -l
|
||||
|
|
Loading…
Reference in New Issue