mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 22:33:48 -07:00
ev2 plain comes wo mac
This commit is contained in:
parent
9478305436
commit
df0d5617ac
1 changed files with 1 additions and 1 deletions
|
@ -465,7 +465,7 @@ static void DesfireSecureChannelDecodeEV2(DesfireContext *ctx, uint8_t *srcdata,
|
||||||
|
|
||||||
// if comm mode = plain --> response with MAC
|
// if comm mode = plain --> response with MAC
|
||||||
// if request is not zero length --> response MAC
|
// if request is not zero length --> response MAC
|
||||||
if (ctx->commMode == DCMPlain || ctx->commMode == DCMMACed) {
|
if (ctx->commMode == DCMMACed) {
|
||||||
if (srcdatalen < DesfireGetMACLength(ctx)) {
|
if (srcdatalen < DesfireGetMACLength(ctx)) {
|
||||||
memcpy(dstdata, srcdata, srcdatalen);
|
memcpy(dstdata, srcdata, srcdatalen);
|
||||||
*dstdatalen = srcdatalen;
|
*dstdatalen = srcdatalen;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue