mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-09 03:00:07 -04:00
cmac can be NULL
This commit is contained in:
@@ -265,6 +265,7 @@ void DesfireCryptoCMAC(DesfireContext *ctx, uint8_t *data, size_t len, uint8_t *
|
||||
|
||||
DesfireCryptoEncDec(ctx, true, buffer, len, NULL, true);
|
||||
|
||||
memcpy(cmac, ctx->IV, kbs);
|
||||
if (cmac != NULL)
|
||||
memcpy(cmac, ctx->IV, kbs);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user