X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/405944a0ac29df7890eb7b15faad23575a621a46..bf5d7992ce29e9fb006a5b6770bd3457b9b0f18b:/armsrc/mifareutil.c diff --git a/armsrc/mifareutil.c b/armsrc/mifareutil.c index 5dfeeab0..4795a7ec 100644 --- a/armsrc/mifareutil.c +++ b/armsrc/mifareutil.c @@ -8,7 +8,6 @@ //----------------------------------------------------------------------------- // Work with mifare cards. //----------------------------------------------------------------------------- - #include "mifareutil.h" int MF_DBGLEVEL = MF_DBG_ALL; @@ -277,7 +276,7 @@ int mifare_ultra_auth(uint8_t *keybytes){ memcpy(enc_random_b,resp+1,8); // decrypt nonce. - tdes_2key_dec(random_b, enc_random_b, sizeof(random_b), key, IV ); + tdes_2key_dec((void*)random_b, (void*)enc_random_b, sizeof(random_b), (const void*)key, IV ); rol(random_b,8); memcpy(rnd_ab ,random_a,8); memcpy(rnd_ab+8,random_b,8);