style
This commit is contained in:
1 parent
b8fa8774a1
commit
3333dab6d8
1 file changed
+16
-16
@@ -113,7 +113,7 @@ static uint8_t treatPDOL(const uint8_t *apdu) {
|
|||||||
ppdol[plen + 5] = 0x00;
|
ppdol[plen + 5] = 0x00;
|
||||||
plen += 6;
|
plen += 6;
|
||||||
i += 2;
|
i += 2;
|
||||||
}else if (apdu[i] == 0x5F && apdu[i + 1] == 0x2A) { // Transaction Currency Code
|
} else if (apdu[i] == 0x5F && apdu[i + 1] == 0x2A) { // Transaction Currency Code
|
||||||
ppdol[plen] = 0x5F;
|
ppdol[plen] = 0x5F;
|
||||||
ppdol[plen + 1] = 0x2A;
|
ppdol[plen + 1] = 0x2A;
|
||||||
plen += 2;
|
plen += 2;
|
||||||
@@ -203,7 +203,7 @@ void RunMod(void) {
|
|||||||
// Trailing................. 000991
|
// Trailing................. 000991
|
||||||
|
|
||||||
// 44 12 34 56 05 78 12 34 D 1711 2 01 00 00 03 00 00 99 1
|
// 44 12 34 56 05 78 12 34 D 1711 2 01 00 00 03 00 00 99 1
|
||||||
char token[19] = {0x44,0x12,0x34,0x56,0x05,0x78,0x12,0x34,0xd1,0x71,0x12,0x01,0x00,0x00,0x03,0x00,0x00,0x99,0x1f};
|
char token[19] = {0x44, 0x12, 0x34, 0x56, 0x05, 0x78, 0x12, 0x34, 0xd1, 0x71, 0x12, 0x01, 0x00, 0x00, 0x03, 0x00, 0x00, 0x99, 0x1f};
|
||||||
// It is possible to initialize directly the emulation mode, having "token" with data and set "chktoken" = true ;)
|
// It is possible to initialize directly the emulation mode, having "token" with data and set "chktoken" = true ;)
|
||||||
//
|
//
|
||||||
//char token[19] = {0x00};
|
//char token[19] = {0x00};
|
||||||
@@ -491,9 +491,9 @@ void RunMod(void) {
|
|||||||
0x5F, 0x2D, 0x08, 0x70, 0x74, 0x65, 0x73, 0x65,
|
0x5F, 0x2D, 0x08, 0x70, 0x74, 0x65, 0x73, 0x65,
|
||||||
0x6E, 0x66, 0x72, 0x9F, 0x11, 0x01, 0x01, 0x9F,
|
0x6E, 0x66, 0x72, 0x9F, 0x11, 0x01, 0x01, 0x9F,
|
||||||
0x38, 0x18,
|
0x38, 0x18,
|
||||||
// Tag 9F66 - Decodificador TTQ (Qualificadores de Transação de Terminal)
|
// Tag 9F66 - Decodificador TTQ (Qualificadores de Transação de Terminal)
|
||||||
0x9F, 0x66, 0x04,
|
0x9F, 0x66, 0x04,
|
||||||
0x9F, 0x02, 0x06,
|
0x9F, 0x02, 0x06,
|
||||||
0x9F, 0x03, 0x06, 0x9F, 0x1A, 0x02, 0x95, 0x05,
|
0x9F, 0x03, 0x06, 0x9F, 0x1A, 0x02, 0x95, 0x05,
|
||||||
0x5F, 0x2A, 0x02, 0x9A, 0x03, 0x9C, 0x01, 0x9F,
|
0x5F, 0x2A, 0x02, 0x9A, 0x03, 0x9C, 0x01, 0x9F,
|
||||||
0x37, 0x04, 0xBF, 0x0C, 0x0E, 0x9F, 0x5A, 0x06,
|
0x37, 0x04, 0xBF, 0x0C, 0x0E, 0x9F, 0x5A, 0x06,
|
||||||
@@ -511,22 +511,22 @@ void RunMod(void) {
|
|||||||
0x5f, 0x20, 0x0c, 0x50, 0x41, 0x59, 0x57, 0x41,
|
0x5f, 0x20, 0x0c, 0x50, 0x41, 0x59, 0x57, 0x41,
|
||||||
0x56, 0x45, 0x2f, 0x56, 0x49, 0x53, 0x41, 0x5f,
|
0x56, 0x45, 0x2f, 0x56, 0x49, 0x53, 0x41, 0x5f,
|
||||||
0x34, 0x01, 0x00,
|
0x34, 0x01, 0x00,
|
||||||
// Tag 9F10 - Issuer Application Data (IAD) Decoder
|
// Tag 9F10 - Issuer Application Data (IAD) Decoder
|
||||||
0x9f, 0x10, 0x07, 0x06, 0x01, 0x12, 0x03, 0xa0, 0x20, 0x00,
|
0x9f, 0x10, 0x07, 0x06, 0x01, 0x12, 0x03, 0xa0, 0x20, 0x00,
|
||||||
//assinatura ARQC Estatica
|
//assinatura ARQC Estatica
|
||||||
0x9f, 0x26, 0x08, 0xcb, 0x44, 0x0d, 0x86, 0x1a, 0xa8, 0x33, 0x1d,
|
0x9f, 0x26, 0x08, 0xcb, 0x44, 0x0d, 0x86, 0x1a, 0xa8, 0x33, 0x1d,
|
||||||
//que tipo de assinatura
|
//que tipo de assinatura
|
||||||
0x9f, 0x27, 0x01, 0x80,
|
0x9f, 0x27, 0x01, 0x80,
|
||||||
|
|
||||||
0x9f, 0x36, 0x02, 0x0f,
|
0x9f, 0x36, 0x02, 0x0f,
|
||||||
0x57, 0x9f, 0x5d, 0x06, 0x00, 0x00, 0x00, 0x00,
|
0x57, 0x9f, 0x5d, 0x06, 0x00, 0x00, 0x00, 0x00,
|
||||||
0x00, 0x00,
|
0x00, 0x00,
|
||||||
// Tag 9F6C - Decodificador CTQ (Qualificadores de Transação de Cartão)
|
// Tag 9F6C - Decodificador CTQ (Qualificadores de Transação de Cartão)
|
||||||
0x9f, 0x6c, 0x02, 0x00, 0x80,
|
0x9f, 0x6c, 0x02, 0x00, 0x80,
|
||||||
// Tag 9F6E - Form Factor Indicator (Third Party Data Decoder)
|
// Tag 9F6E - Form Factor Indicator (Third Party Data Decoder)
|
||||||
0x9f, 0x6e, 0x04, 0x20, 0x70, 0x00, 0x00,
|
0x9f, 0x6e, 0x04, 0x20, 0x70, 0x00, 0x00,
|
||||||
|
|
||||||
0x90, 0x00
|
0x90, 0x00
|
||||||
};
|
};
|
||||||
|
|
||||||
uint8_t processing_long[99];
|
uint8_t processing_long[99];
|
||||||
|
|||||||
Reference in new issue
Block a user