mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-20 13:23:25 -07:00
small fix
This commit is contained in:
parent
6bb33f3776
commit
4f053ca0ef
1 changed files with 2 additions and 1 deletions
|
@ -17,10 +17,11 @@
|
|||
#include "polarssl/libpcrypto.h"
|
||||
|
||||
int CalulateMAC(mf4Session *session, uint8_t *data, int datalen, uint8_t *mac, bool verbose) {
|
||||
memset(mac, 0x00, 8);
|
||||
if (!session || !session->Authenticated || !mac || !data || !datalen)
|
||||
return 1;
|
||||
|
||||
memset(mac, 0x00, 8);
|
||||
|
||||
if (verbose)
|
||||
PrintAndLog("MAC data[%d]: %s", datalen, sprint_hex(data, datalen));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue