W3CHINA Blog首页    管理页面    写新日志    退出


«August 2025»
12
3456789
10111213141516
17181920212223
24252627282930
31

最新日志

不能免俗的也来谈谈超女,顺便做个调查
说说这些天的事
请大家给出出主意
买了房,又愁装修
排队买房
4月9日反日大游行
评卫生部的苏丹红报告
看看小日本
说说上周见闻
转载:一个留美归国人员对比中美差距

最近的评论

回复:转载:一个留美归国人员对比中美差距
回复:转载:一个留美归国人员对比中美差距
财税公司
回复:安装Nginx(负载均衡器)
回复:转载:一个留美归国人员对比中美差距
回复:哈尔滨老建筑--哈尔滨秋林公司
回复:转载:一个留美归国人员对比中美差距
回复:转载:一个留美归国人员对比中美差距
回复:转载:一个留美归国人员对比中美差距
回复:纸模型

连接





[通信技术]smart card 6
gun 发表于 2005/1/14 17:30:35

The APDU is an application level protocol as specified in the ISO 7816-4, which takes place between a smart card and a host application for the communication purpose. APDU consist of two structures, as defined below: Command APDU (C-APDU: this command is used by the host application to send command to the card. Header: it consist of 4 bytes:- Class of instruction (CLA) Instruction code (INS) Parameters: P1 and 2 Optional body: varies in length. Lc = specifies the length of the optional body or the data field (Bytes). Le = specifies the length of the data or the number of bytes that the host is expecting in response to the command sent. Data field contains the data that are sent to the card for executing the instruction specified in the header. Response APDU (R-APDU): this command is used by the card in order to respond to the command send by the host application. Optional body: it consist of data field whose length is specified by the Le Trailer: it consist of two words SW1 and SW2 called as status word, which denotes the processing state in the card after the execution of the command APDU. Structure of the APDU is given below: 1. Command APDU Mandatory Header Optional body CLA INS P1 P2 Lc Data Field Le 2. Response APDU Optional body Mandatory Trailer Data Field SW1 SW1 Note: A command is always paired with response APDU The data field is optional in both command APDU and response APDU. The second case further divides the command and response APDU in four categories. There is no transfer of data to or from the card C- APDU: contains header only. R- APDU: contains only the trailer status word. There is no transfer of data to the card but data are returned from the card C- APDU: contains Le only, which specifies the number of data bytes in the corresponding response APDU. There is transfer of data to the card but no data is returned from the card C- APDU: contains Lc and data field, Lc which specifies the length of the data field. R-APDU: contains the trailer status word SW1 and SW2. There is transfer of data to the card and data is returned from the card C- APDU: contains Lc and data field and Le. R-APDU: contains both the optional body and the trailer status word SW1 and SW2.

阅读全文(1348) | 回复(0) | 编辑 | 精华


发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)



公告

 公告无语

专题

首页(52)
心情随笔(16)
通信技术(23)
旅游(6)
娱乐(4)
XML(1)

留言

签写新留言


统计

blog名称:
日志总数:52
评论数量:44
留言数量:1
访问次数:225845
建立时间:2005年1月4日

 

 

 


站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.047 second(s), page refreshed 144751067 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号