Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

Commit

Permalink
Fixing issue with trailing CRCA missing from emsec#313
Browse files Browse the repository at this point in the history
  • Loading branch information
maxieds committed Jan 20, 2022
1 parent e300df7 commit 1069f07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Firmware/Chameleon-Mini/Application/MifareDESFire.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ uint16_t MifareDesfireProcess(uint8_t* Buffer, uint16_t BitCount) {
ISO14443AAppendCRCA(Buffer, ByteCount);
ByteCount += 2;
}
LogEntry(LOG_INFO_DESFIRE_OUTGOING_DATA, Buffer, ByteCount);
//LogEntry(LOG_INFO_DESFIRE_OUTGOING_DATA, Buffer, ByteCount);
return ByteCount * BITS_PER_BYTE;
}
else {
Expand Down Expand Up @@ -239,6 +239,7 @@ uint16_t MifareDesfireAppProcess(uint8_t* Buffer, uint16_t BitCount) {
/* Append the same ISO7816 prologue bytes to the response: */
memmove(&Buffer[2], &Buffer[0], ProcessedByteCount);
memcpy(&Buffer[0], &ISO7816PrologueBytes[0], 2);
ProcessedBitCount += 2 * BITS_PER_BYTE;
return ProcessedBitCount;
}
else {
Expand Down

0 comments on commit 1069f07

Please sign in to comment.