package com.mq.mylibrary.rfid.io.translate;

public class ISO1443Constant {

    public static byte ISO14443A_MIFARE_ULTRALIGHT = 0x0044;
	///卡类型ATQ
    public static byte ISO14443A_MIFARE_S50 = 0x0004;

	//UID长度
	public static int ISO14443A_UID_LEN = 5;
	//不带校验位的UID长度
	public static int ISO14443A_NOCHECK_UID_LEN = 4;
	//长字节UID
	public static int ISO14443A_LONG_UID_LEN = 7;
	//密钥A长度
	public static int ISO14443A_KEYA_LEN = 6;
	//密钥B长度
	public static int ISO14443A_KEYB_LEN = 6;
	//密钥长度
	public static int ISO14443A_KEY_LEN = 6;
	//每块字节数
	public static int ISO14443A_BLOCK_LEN = 16;
	public static int ISO14443A_PAGE_LEN = 4;
	//每扇区总块数
	public static int ISO14443A_BLOCKSPERSECTOR = 4;
	//最大每张卡总扇区数
	public static int ISO14443A_SECTOR_COUNT = 128;
	//最大总字节大小
	public static int ISO14443A_TOTALBYTES = (ISO14443A_SECTOR_COUNT * ISO14443A_BLOCKSPERSECTOR * ISO14443A_BLOCK_LEN);
	//密钥存放块号
	public static int ISO14443A_KEYBLOCK = 3;

	//复位信息最大长度
	public static int ISO14443A_RESETINFO_LEN = 16;

	public static byte ISO14443A_CHALLENGE_LONG = 0x08;
	public static byte ISO14443A_CHALLENGE_SHORT = 0x04;
	public static byte ISO14443A_KEY_LONG = 0x10;
	public static byte ISO14443A_KEY_SHORT = 0x08;
	public static byte ISO14443A_MAC_LEN = 0x04;
	public static byte ISO14443A_PIN_LEN = 0x08;

	//MAC线路保护类型
	public static byte FM_MAC_NONE = 0x00;
	public static byte FM_MAC_8	= 0x01;
	public static byte FM_MAC_16 = 0x02;
	public static byte FM_DES_8 = (byte) 0xFF;
	public static byte FM_DES_16 = (byte) 0xFF;
	public static byte FM_MACDES_8 = 0x03;
	public static byte FM_MACDES_16	= 0x04;
	
}
