Project

General

Profile

GrcardSIM2 » History » Version 1

tsaitgaist, 02/19/2016 10:47 PM
created

1 1 tsaitgaist
[[PageOutline]]
2
= GRcard SIM 2 =
3
4
The GRcard SIM version 2 is a programmable GSM SIM card.
5
They are used by sysmocom for the sysmoSIM-GR2.
6
These are different from the previous [[GrcardSIM|sysmoSIM-GR1]]
7
8
There is limited card programming support in ​http://cgit.osmocom.org/cgit/pysim/
9
10
== ADM & SUPER ADM ==
11
12
 * ADM is access level {{{05}}}
13
 * SUPER ADM is access level {{{0b}}}, and the default PIN is 88888888 (encoded {{{3838383838383838}}})
14
15
== Command reference ==
16
17
To understand this reference, it is assumed that you are familiar with basic knowledge on smartcard
18
technologies, such as standard ISO 7816-3/-4 APDUs and ETSI TS 51.011 (previously GSM TS 11.11).
19
20
=== Writing files ===
21
22
Files (ICCID, IMSI, …) can be written using the standard SIM commands (UPDATE BINARY/RECORD).
23
24
Security: ADM
25
26
=== Set PIN ===
27
28
Uses a non-standard APDU {{{A0 D4 P1 P2 08 PIN}}}
29
30
 * P1: {{{3A}}} for PIN, {{{3B}}} for PUK
31
 * P2: CHV number, as in VERIFY CHV for PIN (01 for PIN1, 02 for PIN2, 05 for ADM, 0b for SUPER ADM), and as in UNBLOCK CHV for PUK (00 for PUK1, 02 for PUK2)
32
 * PIN: 8 byte PIN/PUK, encoded as in VERIFY CHV
33
34
Security: ADM
35
36
=== Ki & algo ===
37
38
Ki & the A3A8 algorithm are store in the transparent file EF.WEKI (id 0001) under DF.GSM (id 7F20)
39
40
binary value: {{{0010 ALGO Ki}}}
41
42
 * ALGO is the A3A8 algorithm used:
43
  * COMP128V1: {{{00}}}
44
  * COMP128V2: {{{01}}}
45
  * COMP128V3: {{{03}}}
46
 * Ki: 16 byte secret key
47
48
Security: SUPER ADM
Add picture from clipboard (Maximum size: 48.8 MB)