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.7 SM Response in SM_ENC_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.• Step 2: set up the Cipher Text Object (C_T_O)C_T_O is built as described in Step 1 and 2 of SM Response in SM_Enc section• Step 3: set up the Cipher Text Block (C_T_B)C_T_B:C_T_OR+P+3 bytesPad<strong>di</strong>ngISO / IEC 9797 method 1 (S=0..7 bytes)• Step 4: MAC computation and MAC Object (MAC_OBJ) set upMAC is computed on the string:Header Block(n+1)*8 bytesC_T_BR+P+S+3 bytesThe resulting M=MAC(Header Block || C_T_B) is an 8 bytes long string.The MAC_OBJ (10 bytes) is composed as follow:T L Value8Eh 8M• Step 5: APDU Response in SM_SIG and SM_ENC modeEnciphered ResponseSWCIE - <strong>Functional</strong> <strong>Specification</strong> v <strong>2.0</strong> -Page 41/76

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

Saved successfully!

Ooh no, something went wrong!