mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
fix multiple sprint_hex
This commit is contained in:
parent
ae53e38335
commit
857ce0ea17
1 changed files with 6 additions and 4 deletions
|
@ -220,12 +220,14 @@ void DesfirePrintContext(DesfireContext *ctx) {
|
||||||
CLIGetOptionListStr(DesfireCommunicationModeOpts, ctx->commMode));
|
CLIGetOptionListStr(DesfireCommunicationModeOpts, ctx->commMode));
|
||||||
|
|
||||||
if (DesfireIsAuthenticated(ctx)) {
|
if (DesfireIsAuthenticated(ctx)) {
|
||||||
PrintAndLogEx(INFO, "Session key MAC [%d]: %s ENC: %s IV [%d]: %s",
|
PrintAndLogEx(INFO, "Session key MAC [%d]: %s ",
|
||||||
desfire_get_key_length(ctx->keyType),
|
desfire_get_key_length(ctx->keyType),
|
||||||
sprint_hex(ctx->sessionKeyMAC, desfire_get_key_length(ctx->keyType)),
|
sprint_hex(ctx->sessionKeyMAC, desfire_get_key_length(ctx->keyType)));
|
||||||
sprint_hex(ctx->sessionKeyEnc, desfire_get_key_length(ctx->keyType)),
|
PrintAndLogEx(INFO, " ENC: %s",
|
||||||
|
sprint_hex(ctx->sessionKeyEnc, desfire_get_key_length(ctx->keyType)));
|
||||||
|
PrintAndLogEx(INFO, " IV [%d]: %s",
|
||||||
desfire_get_key_block_length(ctx->keyType),
|
desfire_get_key_block_length(ctx->keyType),
|
||||||
sprint_hex(ctx->sessionKeyEnc, desfire_get_key_block_length(ctx->keyType)));
|
sprint_hex(ctx->IV, desfire_get_key_block_length(ctx->keyType)));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue