基于ESAM的CPU卡程序实例验证
发布时间
阅读量:
阅读量
1、标识符宏定义
//CPU卡密钥标识
#define CardInfoDownKey 0x81 //
#define CardInfoUpKey 0x82 //
#define CardInsideVerifyKEY 0x83 //
#define CardInfoUpdateKEY 0x84 //
#define CardKEYUpdateKey 0x85 //
#define CardVolumeUpdateKey 0x86 //
//ESAM密钥标识
#define EsamKEYVerify 0x00 //
#define EsamInfoDownKey 0x01 //
#define EsamInfoUpKey 0x02 //
#define EsamInsideVerifyKEY 0x03 //
#define EsamInfoUpdateKEY 0x04 //
#define EsamKEYUpdateKey 0x05 //
#define EsamVolumeUpdateKey 0x06 //
//cTxAndRxStatus CPU卡接收数据正确标志
#define ReceINSRightBIT BIT0
2、卡和ESAM内部认证
/*******************************************
全部评论 (0)
还没有任何评论哟~
