view libcommon/file_id.h @ 74:8562d8508cf2

grcard2-set-{adm,super}-hex commands implemented It appears that GrcardSIM2 cards allow arbitrary 64-bit keys for ADM and SUPER ADM, not necessarily consisting of ASCII digits like the specs require for standard PIN and PUK, and pySim-prog.py in fact sets the ADM key to 4444444444444444 in hex by default, which is not an ASCII digit string. If the cards allow such keys, we need to support them too.
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 16 Feb 2021 04:10:36 +0000
parents ab3c945f869e
children 0d007555ac89
line wrap: on
line source

/* definitions of a few file IDs we find interesting */

#define	FILEID_MF	0x3F00

#define	DF_TELECOM	0x7F10
#define	DF_GSM		0x7F20
#define	DF_DCS1800	0x7F21

/* EFs under MF */
#define	EF_DIR		0x2F00
#define	EF_ICCID	0x2FE2

/* EFs under DF_GSM */
#define	EF_LP		0x6F05
#define	EF_IMSI		0x6F07
#define	EF_Kc		0x6F20
#define	EF_PLMNsel	0x6F30
#define	EF_HPLMN	0x6F31
#define	EF_ACMmax	0x6F37
#define	EF_SST		0x6F38
#define	EF_ACM		0x6F39
#define	EF_GID1		0x6F3E
#define	EF_GID2		0x6F3F
#define	EF_PUCT		0x6F41
#define	EF_CBMI		0x6F45
#define	EF_SPN		0x6F46
#define	EF_CBMID	0x6F48
#define	EF_CBMIR	0x6F50
#define	EF_BCCH		0x6F74
#define	EF_ACC		0x6F78
#define	EF_FPLMN	0x6F7B
#define	EF_LOCI		0x6F7E
#define	EF_AD		0x6FAD
#define	EF_PHASE	0x6FAE
#define	EF_ECC		0x6FB7
#define	EF_PNN		0x6FC5
#define	EF_OPL		0x6FC6
#define	EF_MBDN		0x6FC7
#define	EF_MBI		0x6FC9
#define	EF_MWIS		0x6FCA

/* EFs under DF_TELECOM */
#define	EF_ADN		0x6F3A
#define	EF_FDN		0x6F3B
#define	EF_SMS		0x6F3C
#define	EF_CCP		0x6F3D
#define	EF_MSISDN	0x6F40
#define	EF_SMSP		0x6F42
#define	EF_SMSS		0x6F43
#define	EF_LND		0x6F44
#define	EF_SDN		0x6F49
#define	EF_EXT1		0x6F4A
#define	EF_EXT2		0x6F4B
#define	EF_EXT3		0x6F4C