From db297e69e116369d7f5cdadcff69a0425b4e61de Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 26 Oct 2014 21:30:29 +0100 Subject: [PATCH] BUG: fixed a bug with the initialization of IV in cmdhfmfu.c CmdHF14AMfucAuth --- client/cmdhfmfu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/cmdhfmfu.c b/client/cmdhfmfu.c index 72eb8895..afe54bb4 100644 --- a/client/cmdhfmfu.c +++ b/client/cmdhfmfu.c @@ -471,10 +471,13 @@ int CmdHF14AMfucAuth(const char *Cmd){ unsigned char RndARndB[16] = {0x00}; uint8_t key[16] = {0x00}; DES_cblock RndA, RndB; - DES_cblock iv[8] = {0x00}; + DES_cblock iv; DES_key_schedule ks1,ks2; DES_cblock key1,key2; + // + memset(iv, 0, 8); + if (strlen(Cmd)<1) { PrintAndLog("Usage: hf mfu auth k "); PrintAndLog(" sample: hf mfu auth k 0"); -- 2.39.5