2010-12-30 14:40:28 +00:00
|
|
|
/*
|
|
|
|
* iso7816.h: ISO-7816 defines
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ISO7816_TYPES_H
|
|
|
|
#define _ISO7816_TYPES_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2011-01-10 14:15:37 +00:00
|
|
|
#define ISO7816_FILE_TYPE_TRANSPARENT_EF 0x01
|
|
|
|
#define ISO7816_FILE_TYPE_DF 0x38
|
|
|
|
|
2013-02-24 18:32:50 +00:00
|
|
|
#define ISO7816_TAG_FCI 0x6F
|
|
|
|
|
|
|
|
#define ISO7816_TAG_FCP 0x62
|
|
|
|
#define ISO7816_TAG_FCP_SIZE 0x80
|
|
|
|
#define ISO7816_TAG_FCP_SIZE_FULL 0x81
|
|
|
|
#define ISO7816_TAG_FCP_TYPE 0x82
|
|
|
|
#define ISO7816_TAG_FCP_FID 0x83
|
|
|
|
#define ISO7816_TAG_FCP_DF_NAME 0x84
|
|
|
|
#define ISO7816_TAG_FCP_PROP_INFO 0x85
|
|
|
|
#define ISO7816_TAG_FCP_ACLS 0x86
|
|
|
|
#define ISO7816_TAG_FCP_LCS 0x8A
|
|
|
|
|
|
|
|
/* ISO7816 interindustry data tags */
|
2011-01-11 10:29:23 +00:00
|
|
|
#define ISO7816_II_CATEGORY_TLV 0x80
|
|
|
|
#define ISO7816_II_CATEGORY_NOT_TLV 0x00
|
|
|
|
|
|
|
|
#define ISO7816_TAG_II_CARD_SERVICE 0x43
|
|
|
|
#define ISO7816_TAG_II_INITIAL_ACCESS_DATA 0x44
|
|
|
|
#define ISO7816_TAG_II_CARD_ISSUER_DATA 0x45
|
|
|
|
#define ISO7816_TAG_II_PRE_ISSUING 0x46
|
|
|
|
#define ISO7816_TAG_II_CARD_CAPABILITIES 0x47
|
|
|
|
#define ISO7816_TAG_II_AID 0x4F
|
2011-01-07 15:49:10 +00:00
|
|
|
#define ISO7816_TAG_II_ALLOCATION_SCHEME 0x78
|
2011-01-11 10:29:23 +00:00
|
|
|
#define ISO7816_TAG_II_STATUS_LCS 0x81
|
|
|
|
#define ISO7816_TAG_II_STATUS_SW 0x82
|
|
|
|
#define ISO7816_TAG_II_STATUS_LCS_SW 0x83
|
2016-06-27 16:03:51 +00:00
|
|
|
#define ISO7816_TAG_II_EXTENDED_LENGTH 0x7F66
|
|
|
|
|
|
|
|
#define ISO7816_CAP_CHAINING 0x80
|
|
|
|
#define ISO7816_CAP_EXTENDED_LENGTH 0x40
|
|
|
|
#define ISO7816_CAP_EXTENDED_LENGTH_INFO 0x20
|
2010-12-30 14:40:28 +00:00
|
|
|
|
2011-01-10 14:15:37 +00:00
|
|
|
/* Other interindustry data tags */
|
|
|
|
#define IASECC_TAG_II_IO_BUFFER_SIZES 0xE0
|
2010-12-30 14:40:28 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|