mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
a
Merge branch 'master' of https://github.com/RfidResearchGroup/proxmark3
This commit is contained in:
commit
f189c5c3f8
2 changed files with 4 additions and 2 deletions
|
@ -60,10 +60,11 @@ static int print_barcode(uint8_t *barcode, const size_t barcode_len, bool verbos
|
||||||
compute_crc(CRC_14443_A, barcode, barcode_len - 2, &b1, &b2);
|
compute_crc(CRC_14443_A, barcode, barcode_len - 2, &b1, &b2);
|
||||||
bool isok = (barcode[barcode_len - 1] == b1 && barcode[barcode_len - 2] == b2);
|
bool isok = (barcode[barcode_len - 1] == b1 && barcode[barcode_len - 2] == b2);
|
||||||
|
|
||||||
PrintAndLogEx(SUCCESS, " checksum : "_YELLOW_("%02X %02X")"- %s", b2, b1, (isok) ? _GREEN_("OK") : _RED_("fail"));
|
PrintAndLogEx(SUCCESS, " Checksum : "_YELLOW_("%02X %02X")"- %s", b2, b1, (isok) ? _GREEN_("OK") : _RED_("fail"));
|
||||||
} else {
|
} else {
|
||||||
PrintAndLogEx(SUCCESS, " checksum : "_YELLOW_("too few data for checksum")"- " _RED_("fail"));
|
PrintAndLogEx(SUCCESS, " Checksum : "_YELLOW_("too few data for checksum")"- " _RED_("fail"));
|
||||||
}
|
}
|
||||||
|
PrintAndLogEx(SUCCESS, " Data len (bits) : "_YELLOW_("%i")"- %s", barcode_len*8, (barcode_len==16||barcode_len==32) ? _GREEN_("OK") : _YELLOW_("warning"));
|
||||||
PrintAndLogEx(SUCCESS, " Raw data : "_YELLOW_("%s"), sprint_hex(barcode, barcode_len));
|
PrintAndLogEx(SUCCESS, " Raw data : "_YELLOW_("%s"), sprint_hex(barcode, barcode_len));
|
||||||
if (barcode_len < 4) // too few to go to next decoding stages
|
if (barcode_len < 4) // too few to go to next decoding stages
|
||||||
return PM3_ESOFT;
|
return PM3_ESOFT;
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
|
|
||||||
// Name: Yubico U2F Root CA Serial 457200631
|
// Name: Yubico U2F Root CA Serial 457200631
|
||||||
// Issued: 2014-08-01
|
// Issued: 2014-08-01
|
||||||
|
// https://github.com/Yubico/developers.yubico.com/tree/master/static/U2F
|
||||||
#define YUBICO_CA \
|
#define YUBICO_CA \
|
||||||
"-----BEGIN CERTIFICATE-----\r\n" \
|
"-----BEGIN CERTIFICATE-----\r\n" \
|
||||||
"MIIDHjCCAgagAwIBAgIEG0BT9zANBgkqhkiG9w0BAQsFADAuMSwwKgYDVQQDEyNZ\r\n" \
|
"MIIDHjCCAgagAwIBAgIEG0BT9zANBgkqhkiG9w0BAQsFADAuMSwwKgYDVQQDEyNZ\r\n" \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue