Open GiovanniDeLuca opened 6 years ago
For APDU command understanding
APDU commands are a queue of binary numbers in the following form:
CLA | INS | P1 | P2 | Lc | CData | Le
The first four sections, i.e CLA , INS , P1 and P2 are mandatory in all APDU commands and each one has one byte length. These one-byte-length sections stand for Class, Instruction, Parameter1 and Parameter2 respectively.
The last three sections, i.e Lc , CData and Le are optional.Lc is the encoding of Nc, which is the encoding of the length of the CDATA field. Le is the encoding of Ne, then encoding of the maximum response data that may be send. Based on presence or absence of these sections, we have 4 case for APDU commands, as below:
Case1: CLA | INS | P1 | P2
Case2: CLA | INS | P1 | P2 | Le
Case3: CLA | INS | P1 | P2 | Lc | Data
Case4: CLA | INS | P1 | P2 | Lc | Data | Le
The length of CData is different for different commands and different applets. based on the length of CData (i.e Lc) and the length of maximum response data that may send (i.e Le), we have to type of APDU commands:
Normal/Short APDU commands, when Lc and Le are smaller than 0xFF
Extended length APDU commands, when Lc and/or Le are greater than 0xFF.
So for the length of these sections we have:
Lc : 1 byte for Short APDU commands and 3 byte (they specify this length, because its enough) for Extended APDU commands.
Data : Different lengths.
Le : Same as Lc.
Potreste inviarmi la url dello Slack di HackDevelper per favore?
Ciao Michele, è https://goo.gl/dd3uw3 https://goo.gl/dd3uw3
Duncan
On 9 Oct 2017, at 10:58, Hooch notifications@github.com wrote:
Potreste inviarmi la url dello Slack di HackDevelper per favore?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lucabonuccelli/hackdev17CIE-fi/issues/3#issuecomment-335100369, or mute the thread https://github.com/notifications/unsubscribe-auth/AALidPZQQ87BLF5vcfx1kDgbAs2UWxMeks5sqeBPgaJpZM4PxVn9.
Il 09/10/2017 10:58, Hooch ha scritto:
Potreste inviarmi la url dello Slack di HackDevelper per favore?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lucabonuccelli/hackdev17CIE-fi/issues/3#issuecomment-335100369, or mute the thread https://github.com/notifications/unsubscribe-auth/AchtCJ_1KPN2xw1CPG6CpltZ0ZSc4fEHks5sqeBQgaJpZM4PxVn9.
PS: Non perdiamoci di vista...
-- Luca Bonuccelli Settore Infrastrutture e Tecnologie per lo sviluppo della Società dell'Informazione Direzione Generale Organizzazione Regione Toscana Tel +39 (0)55 4383122 Mob +39 334 1089501 Via di Novoli 26,50126 Firenze Palazzo A - 105
https://github.com/italia/cie-ideaapp/blob/master/Eac.java può essere un punto di partenza per sapere quali comendi apdu lanciare. che ne dite?
Il 09/10/2017 14:41, Luca Bonuccelli ha scritto:
Il 09/10/2017 10:58, Hooch ha scritto:
Potreste inviarmi la url dello Slack di HackDevelper per favore?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lucabonuccelli/hackdev17CIE-fi/issues/3#issuecomment-335100369, or mute the thread https://github.com/notifications/unsubscribe-auth/AchtCJ_1KPN2xw1CPG6CpltZ0ZSc4fEHks5sqeBQgaJpZM4PxVn9.
PS: Non perdiamoci di vista...
-- Luca Bonuccelli Settore Infrastrutture e Tecnologie per lo sviluppo della Società dell'Informazione Direzione Generale Organizzazione Regione Toscana Tel +39 (0)55 4383122 Mob +39 334 1089501 Via di Novoli 26,50126 Firenze Palazzo A - 105
-- Luca Bonuccelli Settore Infrastrutture e Tecnologie per lo sviluppo della Società dell'Informazione Direzione Generale Organizzazione Regione Toscana Tel +39 (0)55 4383122 Mob +39 334 1089501 Via di Novoli 26,50126 Firenze Palazzo A - 105
In settimana dovrei riuscire a darci un occhio, sicuramente il sorgente dell'app per continuare col reverse engineering dei comandi sarà utilissimo.
In questo mese pensavo di continuare a lavorare sulla libreria Java e di condividere con Cosimo, Giovanni e Duncan quanto fatto. Se vorranno e avranno tempo saranno facilitati nel riportare il tutto nei relativi linguagggi.
Salve a tutti. sono stato contattato dal comune di Firenze che avrebbe piacere di citarvi ed avere i vostri riferimenti. Per cortesia mi mandate: nome-cognome-mail-cosa fate nella vita e se volete altra forma di contatto?
Il giorno 9 ottobre 2017 21:57, Hooch notifications@github.com ha scritto:
In settimana dovrei riuscire a darci un occhio, sicuramente il sorgente dell'app per continuare col reverse engineering dei comandi sarà utilissimo.
In questo mese pensavo di continuare a lavorare sulla libreria Java e di condividere con Cosimo, Giovanni e Duncan quanto fatto. Se vorranno e avranno tempo saranno facilitati nel riportare il tutto nei relativi linguagggi.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lucabonuccelli/hackdev17CIE-fi/issues/3#issuecomment-335269273, or mute the thread https://github.com/notifications/unsubscribe-auth/AchtCOtcfmbxOH2qtY-4cZ-SwSVhPHFwks5sqnqjgaJpZM4PxVn9 .
Buongiorno a tutti. Sicuramente daremo uno sguardo alle evoluzioni del progetto qui su github e, lavoro e/o studio permettendo, ci lavoreremo ancora su in questo mese. Ci farebbe piacere rimanere quindi in contatto. Se doveste avere bisogno di aiuto anche sul progetto in Java resto a disposizione Di seguito i miei riferimenti: Nome e Cognome: Giovanni De Luca; Email: de.luca.giovanni.93@gmail.com; Occupazione: Project developer presso GFT Italia s.r.l.; Cellulare: +39 3291288448.
Grazie e buona giornata.
Ti mando tutto per e-mail.
A presto!
http://www.unsads.com/specs/IASECC/IAS_ECC_v1.0.1_UK.pdf http://www.cartaidentita.interno.gov.it/wp-content/uploads/2016/07/cie_3.0_-_specifiche_chip.pdf