Measurement and Analysis Introduction of ISO7816 (Smart Card)



Similar documents
Smart Card Technology Capabilities

Hardware Specifications of V2AF Series Hybrid Card Reader

Smart Cards a(s) Safety Critical Systems

Gemalto Mifare 1K Datasheet

Secure My-d TM and Mifare TM RFID reader system by using a security access module Erich Englbrecht (info@eonline.de) V0.1draft

How To Use A Smart Card For A Multi-User Communication

AN2284 APPLICATION NOTE

ARM Thumb Microcontrollers. Application Note. Software ISO 7816 I/O Line Implementation. Features. Introduction

Single channel data transceiver module WIZ2-434

MF1 IC S General description. Functional specification. 1.1 Contactless Energy and Data Transfer. 1.2 Anticollision. Energy

APPLICATION PROGRAMMING INTERFACE

AN2598 Application note

GTS-4E Hardware User Manual. Version: V1.1.0 Date:

Serial Communications

MDG. MULTOS Developer's Guide. MAO-DOC-TEC-005 v MAOSCO Limited. MULTOS is a registered trademark of MULTOS Limited.

CHAPTER 5 SMART CARD TECHNOLOGY

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

INTEGRATED CIRCUITS I CODE SLI. Smart Label IC SL2 ICS20. Functional Specification. Product Specification Revision 3.1 Public. Philips Semiconductors

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

DECT Module UM-9802 Datasheet

Introducing etoken. What is etoken?

Smart Card Application Development Using the Java Card Technology

Embedded Multi-Media Card Specification (e MMC 4.5)

Security & Chip Card ICs SLE 44R35S / Mifare

Serial Communications / Protocol in AirTest Products

USER GUIDE EDBG. Description

SIM CARD PROTOCOLS. This paper attempts in broad strokes to outline the construction of these protocols and how they are used.

EMV 96 Integrated Circuit Card Terminal Specification for Payment Systems

GPS/GLONASS SiRFstarV Evaluation Kit EVA5100-A

Using Altera MAX Series as Microcontroller I/O Expanders

Communication Unit 560CMU05 Data sheet

ACR120 Technical Specifications version 2.9 November 2005

CHAPTER 11: Flip Flops

Smart Card. Smart Card applications

udrive-usd-g1 Embedded DOS micro-drive Module Data Sheet

Fingerprint Based Biometric Attendance System

MICROPROCESSOR AND MICROCOMPUTER BASICS

RDF1. RF Receiver Decoder. Features. Applications. Description. Ordering Information. Part Number Description Packages available

PUF Physical Unclonable Functions

Lesson-3 CASE STUDY OF AN EMBEDDED SYSTEM FOR SMART CARD

Eureka Technology. Understanding SD, SDIO and MMC Interface. by Eureka Technology Inc. May 26th, Copyright (C) All Rights Reserved

Methode Electronics. DM-338-GG-XXXX Up to 120 Gbps CXP Passive Cable Assembly.

Smart Card Application Standard Draft

Implementing MOD bus and CAN bus Protocol Conversion Interface

Chip Card & Security ICs Mifare NRG SLE 66R35

Lab Experiment 1: The LPC 2148 Education Board

Extending EMV payment smart cards with biometric on-card verification

Part Number Description Packages available

Identity Management Initiatives in identity management and emerging standards Presented to Fondazione Ugo Bordoni Rome, Italy

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Smart cards basic principles

Contactless Smart Cards vs. EPC Gen 2 RFID Tags: Frequently Asked Questions. July, Developed by: Smart Card Alliance Identity Council

Smart Card Based User Authentication

Guangzhou HC Information Technology Co., Ltd. Product Data Sheet

Using Xbee in Serial Communication

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

Smart Card- An Alternative to Password Authentication By Ahmad Ismadi Yazid B. Sukaimi

How To Use An Adh8012 Gsm Gprs Module With A Gsm (Gsm) Gpros (Gsp) Gpls (Geo) Gsp (Gpl) Gs

UART IP Core Specification. Author: Jacob Gorban

ESPA Nov 1984 PROPOSAL FOR SERIAL DATA INTERFACE FOR PAGING EQUIPMENT CONTENTS 1. INTRODUCTION 2. CHARACTER DESCRIPTION

a8251 Features General Description Programmable Communications Interface

PACKAGE OUTLINE DALLAS DS2434 DS2434 GND. PR 35 PACKAGE See Mech. Drawings Section

MCB3101 (Class I) WiRobot Serial Bluetooth Wireless Module User Manual

JCB Terminal Requirements

RealSSD Embedded USB Mass Storage Drive MTFDCAE001SAF, MTFDCAE002SAF, MTFDCAE004SAF, MTFDCAE008SAF

ETSI TS V1.2.1 ( )

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC Microprocessor & Microcontroller Year/Sem : II/IV

Smart Card Evolution

Application Note 83 Fundamentals of RS 232 Serial Communications

Quectel Cellular Engine

D93-226D Xico, Inc Eton Avenue Chatsworth, CA USA SERIES 3600 SWIPE MAGNETIC STRIPE CARD READERS

8051 MICROCONTROLLER COURSE

CAM-VGA100 User Manual

Microsoft Identity Lifecycle Manager & Gemalto.NET Solutions. Jan 23 rd, 2007

AN4128 Application note

AN1305. MIFARE Classic as NFC Type MIFARE Classic Tag. Application note COMPANY PUBLIC. Rev October Document information

M95 Dual SIM Application Notes

Block 3 Size 0 KB 0 KB 16KB 32KB. Start Address N/A N/A F4000H F0000H. Start Address FA000H F8000H F8000H F8000H. Block 2 Size 8KB 16KB 16KB 16KB

Sample Project List. Software Reverse Engineering

Technical Description. Multifunctional Desk-Top Call Station Digital Version 8, 16 Keys L.No ,

APPLICATION NOTE. Smart Card Reader Application with TDA8029 Mask 00. An00046

The Programming Interface

Methode Electronics. DM-317-XXXX 40 Gbps QSFP+ Passive Cable RoHS COMPLIANT.

RFID MODULE Mifare Reader / Writer SL025B User Manual Version 1.4 Nov 2012 StrongLink

Smart Card Security How Can We Be So Sure?

Specifications for the Smart-Card Operating System for Transport Applications (SCOSTA)

AN1304. NFC Type MIFARE Classic Tag Operation. Application note PUBLIC. Rev October Document information

PCS0100en Persy Control Services B.V. Netherlands

Manual Serial PCI Cards

CENTRONICS interface and Parallel Printer Port LPT

User Manual. AS-Interface Programmer

Rayson. Bluetooth Module

Access Control Using Smartcard And Passcode

KSH-3000-MI. Swipe Card Reader. ( Magnetic / IC Card two in One Reader ) Revision Reason Date V

Personal Identity Verification Card

ALL-USB-RS422/485. User Manual. USB to Serial Converter RS422/485. ALLNET GmbH Computersysteme Alle Rechte vorbehalten

MEMOBUS/Modbus Communications

TrustKey Tool User Manual

EEPROM PROGRAMMING FOR PCIe UARTs

T3 Mux M13 Multiplexer

Transcription:

Measurement and Analysis Introduction of ISO7816 (Smart Card) ISO 7816 is an international standard related to electronic identification cards with contacts, especially smart cards, managed jointly by the International Organization for Standardization (ISO) and the International Electrotechnical Commission (IEC). It is edited by the Joint technical committee (JTC) 1 / Sub-Committee (SC) 17, Cards and personal identification. ISO7816-1 (Physical characteristics): It defines the specifications of the Physical Layer, which includes tolerable working temperature, static tolerance or tolerable bending and weight, etc, of the Smart Card. This part of ISO7816 is very important for card manufacturers. It is helpful for manufacturers to choose the producing materials. ISO7816-2 (Dimensions and location of the contacts): It defines the dimensions and the connector including the location of the contacts on the card and the dimensions of the Smart Card. ISO7816-3 (Electrical interface and transmission protocols): It defines the electrical signals and the communication transmission protocols. 1 /11

ISO7816-4 (Organization, security and commands for interchange): From Abstract of www.iso.org, it defines how to use the application identifier in the card to check whether there is an application retrieval of the or/and status. Functions are as below: Connect the command-response pairs exchanged at the interface. Indicate the retrieval of data elements and the data objects in the card. Indicate the structures for applications and data in the card. Indicate the means and mechanisms for identifying and addressing applications in the card. Describe the structures and contents of historical bytes of the operating characteristics of the card. Describe the access methods to files and data in the card. Describe the access methods to the algorithms processed by the card. Describe the security architecture defining access rights to files and data in the card. Describe the methods for secure messaging. http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=36134 ISO/IEC 7816-5: shows how to grant the uniqueness of application identifiers through the international registration of a part of this identifier, and defines the registration procedure, the authorities in charge thereof, the availability of the register which links the registered parts of the identifiers and the relevant application providers. http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=34259 ISO7816-6(Inter-industry data elements for interchange): From Abstract of www.iso.org, it specifies the Data Elements (DEs) used for inter-industry interchange based on integrated circuit cards (ICCs) both with contacts and without contacts. It gives the identifier, name, description, format, coding and layout of each DE and defines the means of retrieval of DEs from the card http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=38780 2 /11

ISO1816-7(Inter-industry commands for Structured Card Query Language): Structured Card Query Language(SCQL) Inter-industry commands It describes the specification of the inter-industry commands for the Structured Card Query Language(SCQL). ISO7816-8(commands for security operations): From Abstract of www.iso.org, the inter-industry commands(with contacts and without contacts) of the Smart Card is to be defined in 2004, which is applied in the cryptographic operations. The definitions of the commands are based on the Commands listed in the ISO/IEC 7816-4. certificates and the import 及 export of asymmetric keys. The Annexes provides the examples of digital signatures, certificates and the import and the export of asymmetric keys. The choice and the condition of use of the cryptographic mechanism may effect the card exportability, and the algorithms and the contents of Protocol Analyzer are outside the range of the ISO/IEC 7816-8. http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=37989 ISO7816-9(Commands for card management): From Abstract of www.iso.org, it defines the file management of the inter-industry commands(both with contacts and without contact) of the Smart Card, such as file creation or file deletion and so on. These commands include the entire life cycle of the Card and other commands may be used which is issued. The Annex provides that shows how to control and read (secrecy transmission) the data of the Card, by means of transmitting and verifying the data under the secrecy condition, such as code, keys and applets. http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=37990 ISO7816-10(Electronic signals and answer to reset for synchronous cards): From Abstract of www.iso.org, this part defines the Power Supply, Signal Structure and Reset Structure when the Smart Card is transmitted from the interface to the synchronous transmission of device. http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=30558 3 /11

ISO7816-11(Personal verification through biometric methods): From Abstract of www.iso.org, this part defines the usage of the inter-industry commands and data objects related to personal verification through biometric methods in the Smart Card. Inter-industry commands ISO/IEC 7816-4. data objects ISO/IEC 19785-1 Please refer to the ISO/IEC 7816-4 about the definition of the inter-industry commands. The data objects are partially defined in this International Standard, partially imported from ISO/IEC 19785-1. ISO/IEC 7816-11 also presents examples for enrollment and verification and addresses security issues. http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=31419 ISO7816-12(USB electrical interface and operating procedures): From Abstract of www.iso.org, this part defines the operating conditions of the Smart Card in the USB Interface, and a Smart Card with USB Interface is named USB-ICC. ISO/IEC 7816-12:2005 The ISO/IEC 7816-12:2005 defines the below content: Define the Electrical Characteristics Condition when the USB-ICC is operated by the way of the Interface Mode. The Descriptions of the USB Standard and the USB-ICC Class. It is about the specification of Bulk Transmission and Control Transmission when the transmitting data is between HOST and USB-ICC. It can accept two different Protocol Analyzer Versions when srtarting the Control Transmission. It indicates the status of the interrupt transmission and the error conditions under the Asynchronous Status. ISO/IEC 7816-12: It has provided two protocol versions for the Control Transmission in 2005; one is to support the protocol T=0 (version A) and the other is to use the transfer on APDU level (version B). This part provides the instruction sheets of the different transmissions(bulk Transmission, Control Transmission, version A and version B) for the USB-ICC. The USB-ICC can deal with the possible and sequential examples in the informative annex. 4 /11

ISO/IEC 7816-12: It has provided two protocols for the Control Transmission in 2005. In order that it can support the protocol T=0(version A) or use the transfer on APDU level(version B). The Annex provides the examples of the USB-ICC. http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=40604 ISO7816-13(Commands for application management in multi-application environment): This part introduces the relative items when developing the Global Platform Standard, such as the Secure Channel Protocols. ISO7816-15(Cryptographic information application): From Abstract of www.iso.org, it defines the Applications of the Smart Card and the Cryptographic Function. It has defined the common syntax(in the ASN.1) and format in 2004, which contrapose to the Cryptographic Information and the Sharing Machanism. ISO/IEC 7816-15: It supported the below functions in 2004: It can store multiple instances of cryptographic information in the Smart Card. Use of the Cryptographic Information. Retrieval of the Cryptographic Information. The DOs defines the most suitable Cross-referencing of the Cryptographic Information in the ISO/IEC 7816. Different Authentication Mechanisms. Multiple cryptographic algorithms. Cross-referencing of the cryptographic information with DOs defined in ISO/IEC 7816 when appropriating. The ISO7816-1~ISO7816-13 and the ISO7816-15 define the different specifications of the Smart Card, the following will introduce the Smart Card and how to start the measurement. 5 /11

Introduction of Smart Card A smart card, chip card, or integrated circuit card (ICC), is any pocket-sized card with embedded integrated circuits which can process data. This implies that it can receive input which is processed by way of the ICC applications and delivered as an output. There are two broad categories of ICCs. Memory cards contain only non-volatile memory storage components, and perhaps some specific security logic. Microprocessor cards contain volatile memory and microprocessor components. The card is made of plastic, generally PVC, but sometimes ABS. The card may embed a hologram to avoid counterfeiting. Using smartcards is also a form of strong security authentication for single sign-on within large companies and organizations Figure1: Types of Common Smart Card on the Market 6 /11

Table1 is about the description of contacts of Smart Card, and Figure2 is about the slot diagram of the Smart Card Reader which is sold on the market. Users can clearly understand the position of each contact according to the entity picture marking. Contact Designation Use C1 C2 C3 Vcc RST CLK Power connection through which operating power is supplied to the microprocessor chip in the card. Reset line through which the IFD can signal to the smart card's microprocessor chip to initiate its reset sequence of instructions. Clock signal line through which a clock signal can be provided to the microprocessor chip. This line controls the operation speed and provides a common framework for data communication between the IFD and the ICC. C4 RFU Reserved for future use. C5 GND Ground line providing common electrical ground between the IFD and the ICC. C6 C7 Vpp I/O Programming power connection used to program EEPROM of first generation ICCs. Input/output line that provides a half-duplex communication channel between the reader and the smart card. C8 RFU Reserved for future use. Table1: Description of Contacts of Smart Card C1 C2 C3 C4 C5 C6 C7 C8 Figure 2: Contact Diagram of the Smart Card Reader 7 /11

Measurement of Actual Signals of ISO7816 with ZEROPLUS Logic Analyzer There are eight contacts on the Smart Card in total. It only needs connecting C3, C5, C7 to ZEROPLUS Logic Analyzer when measures signals. C3 CLK Clock signal line C5 GND Ground line C7 I/O Input/output line The test point can be connected to the Logic Analyzer by ZEROPLUS test probe. Connect C3 to A0 channel of Logic Analyzer ; connect C7 to A1 channel and C5 to the GND of Logic Analyzer, Figure 3: Measure the Smart Card Reader. Users can activate the software of ZEROPLUS Logic Analyzer to measure the signal after completing the connection (Please visit the website (www.zeroplus.com.tw) of ZEROPLUS Logic Analyzer). The captured waveform is displayed as below (Refer to Figure 4). 8 /11

Figure 4: Waveform Display by ZEROPLUS logic analyzer The signal structure of the ISO7816 is similar to that of the RS-232C, and the difference is that the ISO7816 needs relying on the CLOCK to judge the data; the RS-232C uses the baud rate in its signal to judge the data. The ISO7816 takes the 16bits of CLOCK as one unit to start sampling data; see the following Figure 5. Figure 5: ISO7816 START Packet 9 /11

According to the Figure 5, after the CLOCK under the START bit generates 16 periods (1 ETU) clock, it is time to do the judgment; users can analyze the DATA Packet with the same way. 1 0 0 1 0 0 1 1 Figure 6: The Whole ISO7816 Signal Packet The format of the Signal Packet consists of the START (1bit), DATA (8bits), PARITY CHECK (1bit) and STOP (2bits). Each bit on the DATA Line needs appearing 16 periods (1 ETU) clock on the CLOCK Line, and the Transmission Direction of DATA is fixed, which is LSB to MSB. Interface of the Protocol Analyzer ISO7816 UART of ZEROPLUS Logic Analyzer Pin Assignment: Setting channel DATA and CLK Protocol Analyzer Property: Set the periods of clock as 1bit in the signal of ISO7816. The default is 16 Periods, and the Max. can be set as 2048 Periods. 10 /11

Conclusion Today, Digital Signal and Protocols are widely use in different electronic products and technical area. From mobile phone, PC, multimedia, automotive to RF and so on, all the use trends are testing the analysis ability of engineers who have to deal with the Digital Signal for developing or testing and debugging. It is very hard to analyze the Digital Signal when engineers only use the oscilloscope. However, matching with ZEROPLUS Logic Analyzer can improve the efficiency of development greatly. ZEROPLUS Logic Analyzer has launched over 55 Protocol Analyzer Modules and Patent Technologies for different technical areas. For more detailed introduction about ZEROPLUS Logic Analyzer, please visit our website: www.zeroplus.com.tw. Reference: CardWerk from http://www.cardwerk.com/smartcards/smartcard_standard_iso7816.aspx Wikipedia ISO/IEC 7816 from http://en.wikipedia.org/wiki/iso_7816 11 /11