09.08.2015 Views

C.I.E – Carta di Identità Elettronica Functional Specification Version 2.0

CIE - Functional Specification v 2.0

CIE - Functional Specification v 2.0

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

11.4.5 SM Response in SM_ENCOriginal APDU response:Response Data Field (R bytes) Status Word (SW1-SW2)• Step 1: Response Data Field is padded and encryptedDataPad<strong>di</strong>ngResponse Data Field (R bytes) ISO 9797 mode 2 (P=1..8 bytes)ENC is the string of (R+P) bytes obtained enciphering the padded data.• Step 2: set up the Cipher Text Object (C_T_O)T L Value87h R+P+1 Pad<strong>di</strong>ng In<strong>di</strong>cator (01h)ENC (R+P bytes)• Step 3: APDU Response in SM_ENCEnciphered ResponseC_T_O (R+P+3 bytes)SWSW1||SW2Example:The terminal wants to read 5 bytes from the card, in SM_ENC. The answer is at least 3 bytes plusthe pad<strong>di</strong>ng plus the net length (Le) of the data, the command sent is: 0Ch B0h 00h 00h 0Bh11.4.6 SM Response in SM_SIGOriginal APDU response:Response Data Field (R bytes) Status Word (SW1-SW2)• Step 1: set up the HEADER BLOCKHeader Block is set up as described in step 1 of SM_SIG mode description.CIE - <strong>Functional</strong> <strong>Specification</strong> v <strong>2.0</strong> -Page 39/76

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!