mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-10-24 02:03:06 +00:00
cmac can be NULL
This commit is contained in:
1 parent
c99002c5e0
commit
ca983f1473
1 file changed
+2
-1
@@ -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