mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-09 03:00:07 -04:00
encode fix
This commit is contained in:
@@ -254,7 +254,7 @@ static void DesfireSecureChannelEncodeEV2(DesfireContext *ctx, uint8_t cmd, uint
|
||||
|
||||
if (ctx->commMode == DCMPlain || ctx->commMode == DCMMACed || (ctx->commMode == DCMEncrypted && srcdatalen <= hdrlen)) {
|
||||
|
||||
if (srcdatalen > hdrlen && ctx->commMode == DCMMACed) {
|
||||
if (ctx->commMode == DCMMACed || ctx->commMode == DCMEncrypted) {
|
||||
uint8_t cmac[DESFIRE_MAX_CRYPTO_BLOCK_SIZE] = {0};
|
||||
DesfireEV2CalcCMAC(ctx, cmd, data, srcdatalen, cmac);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user