GrcardSIM » History » Revision 9
« Previous |
Revision 9/12
(diff)
| Next »
tsaitgaist, 02/19/2016 10:48 PM
A3/A8 algorithm file type fixed
- Table of contents
- GRcard SIM
GRcard SIM¶
The GRcard SIM is a programmable GSM SIM card.
It uses a mixture of TS11.11 / ISO7816-4 and proprietary commands for programming
There is limited card programming support both in http://cgit.osmocom.org/cgit/pysim/ as well as the more interactive http://cgit.osmocom.org/cgit/cyberflex-shell/
Command reference¶
To understand this reference, it is assumed that you are familiar with basic knowledge on smartcard
technologies, such as standard ISO 7816-3/-4 APDUs and GSM TS 11.11.
Setting the ICCID¶
Uses a standard UPDATE BINARY (D6) command on the EF.ICCID (2FE2)
Security: ADM2
Setting the IMSI¶
Uses a standard UPDATE BINARY (D6) command on the EF.IMSI (7F20/6F07)
Security: ADM2
Setting the Access Class¶
Uses a standard UPDATE BINARY (D6) command on the EF.ACC (7F20/6F78)
Security: ADM2
Setting the SMS Parameters¶
Uses a standard UPDATE RECORD (DC) command on the EF.SMS (7F10/6F42)
Security: ADM2
Setting the A3/A8 algorithm¶
Uses a standard UPDATE BINARY (D6) command on the non-standard (2700/6F70) EF
The record has a size of 1 byte and is defined as follows:- 01 - COMP128v1
- 02 - COMP128v2
- 03 - COMP128v3
Security: ADM2
Setting the Ki¶
Security: none h3. Setting the PIN1 and PUK1 <pre> Security: none h3. Setting the PIN2 and PUK2 <pre> Security: none h3. Setting the ADM1 + AUK1 <pre> Security: none h3. Setting the ADM2 + AUK2 <pre> Security: none h3. Create File <pre> * Parameter P2: ** 00: Create DF ** 01: Create linear record EF ** 02: Create transparent EF ** 03: Create cyclic record EF <pre> * FID: The 2 byte File ID * SIZE: 2 bytes for the transparent EF size; or 1 byte for the number of records, and 1 byte for the record size for linear or cyclic EF <pre> * ACC: Access conditions (3 bytes), According to TS 11.11, Section 9.3 <pre> <pre> Security: ADM0 h3. Erase Card <pre> Security: none h3. Authenticate as ADM0 <pre>
Updated by tsaitgaist about 8 years ago · 9 revisions