ev2 plain comes wo mac
This commit is contained in:
1 parent
9478305436
commit
df0d5617ac
1 file changed
+1
-1
@@ -465,7 +465,7 @@ static void DesfireSecureChannelDecodeEV2(DesfireContext *ctx, uint8_t *srcdata,
|
||||
|
||||
// if comm mode = plain --> response with MAC
|
||||
// if request is not zero length --> response MAC
|
||||
if (ctx->commMode == DCMPlain || ctx->commMode == DCMMACed) {
|
||||
if (ctx->commMode == DCMMACed) {
|
||||
if (srcdatalen < DesfireGetMACLength(ctx)) {
|
||||
memcpy(dstdata, srcdata, srcdatalen);
|
||||
*dstdatalen = srcdatalen;
|
||||
|
||||
Reference in new issue
Block a user