LF t55xx and LF em4x commands now should manchester decode data. However t55xx can have other settings and different encodings.
This commit is contained in:
@@ -993,7 +993,7 @@ void __attribute__((noreturn)) AppMain(void)
|
||||
LED_B_OFF();
|
||||
LED_A_OFF();
|
||||
|
||||
// Init USB device`
|
||||
// Init USB device
|
||||
usb_enable();
|
||||
|
||||
// The FPGA gets its clock from us from PCK0 output, so set that up.
|
||||
|
||||
@@ -131,16 +131,15 @@ void MifareDesfireGetInformation(){
|
||||
void MifareDES_Auth1(uint8_t mode, uint8_t algo, uint8_t keyno, uint8_t *datain){
|
||||
|
||||
uint8_t null_key_data[8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
||||
uint8_t new_key_data[8] = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77 };
|
||||
int res;
|
||||
//uint8_t new_key_data[8] = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77 };
|
||||
int res = 0;
|
||||
|
||||
MifareDESFireKey default_key = mifare_desfire_des_key_new_with_version (null_key_data);
|
||||
desfirekey_t default_key = Desfire_des_key_new_with_version (null_key_data);
|
||||
|
||||
res = mifare_desfire_select_application (tags[i], aid);
|
||||
// res = Desfire_select_application (tags[i], aid);
|
||||
if (res < 0) {
|
||||
freefare_perror (tags[i], "mifare_desfire_select_application");
|
||||
error = EXIT_FAILURE;
|
||||
break;
|
||||
print_result("default key: ", default_key->data, 24 );
|
||||
return;
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
@@ -12,5 +12,4 @@
|
||||
#include "mifareutil.h"
|
||||
#include "../include/common.h"
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user