This commit is contained in:
iceman1001 2024-10-06 10:08:17 +02:00
commit c002ae9f77
5 changed files with 10 additions and 10 deletions

View file

@ -1355,8 +1355,6 @@ bool SimulateIso14443aInit(uint8_t tagType, uint16_t flags, uint8_t *data, uint8
return false;
}
AddCrc14A(rRATS, rRATS_len - 2);
AddCrc14A(rPPS, sizeof(rPPS) - 2);

View file

@ -29,7 +29,6 @@
#include "dbprint.h"
#include "util.h"
#include "commonutil.h"
#include "crc16.h"
#include "string.h"
#include "printf.h"

View file

@ -696,9 +696,10 @@ int DesfireAPDU(uint8_t *cmd, size_t cmd_len, uint8_t *dataout) {
ReaderTransmit(wCmd, wrappedLen, NULL);
len = ReaderReceive(resp, sizeof(resp), par);
if (!len) {
if (len == 0) {
if (g_dbglevel >= DBG_EXTENDED) Dbprintf("fukked");
return false; //DATA LINK ERROR
}
// if we received an I- or R(ACK)-Block with a block number equal to the
// current block number, toggle the current block number

View file

@ -16,10 +16,8 @@
// ISO15693 other commons
//-----------------------------------------------------------------------------
#include "iso15693tools.h"
#include <stdio.h>
#define ISO15693_SPRINTUID_BUFLEN (3 * 8 + 1)
// returns a string representation of the UID
@ -28,9 +26,10 @@
// uid[] the UID in transmission order
// return: ptr to string
char *iso15693_sprintUID(char *dest, uint8_t *uid) {
static char tempbuf[ISO15693_SPRINTUID_BUFLEN] = {0};
if (dest == NULL)
dest = tempbuf;
static char tmp[ISO15693_SPRINTUID_BUFLEN] = {0};
if (dest == NULL) {
dest = tmp;
}
if (uid) {
#ifdef HAVE_SNPRINTF

View file

@ -864,7 +864,10 @@ typedef struct {
// Got wrong length error pm3: when received wrong length of data
#define PM3_ELENGTH -27
// No data pm3: no data available, no host frame available (not really an error)
// No key available client/pm3: no cryptographic key available.
#define PM3_ENOKEY -28
// No data client/pm3: no data available, no host frame available (not really an error)
#define PM3_ENODATA -98
// Quit program client: reserved, order to quit the program
#define PM3_EFATAL -99