X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/a78238349cc481d241da6674801a2cb7ee58cdea..a3bd24b5dc0e562c36f681106915cf37cfbe548f:/tools/mfkey/mfkey64.c diff --git a/tools/mfkey/mfkey64.c b/tools/mfkey/mfkey64.c index eeb9bb65..e7eb9dbe 100755 --- a/tools/mfkey/mfkey64.c +++ b/tools/mfkey/mfkey64.c @@ -1,9 +1,4 @@ -#define __STDC_FORMAT_MACROS #include -#define llx PRIx64 -#define lli PRIi64 - -// Test-file: test2.c #include "crapto1.h" #include #include @@ -23,7 +18,7 @@ int main (int argc, char *argv[]) { printf("Recover key from only one complete authentication!\n\n"); if (argc < 6 ) { - printf(" syntax: %s <{nr}> <{ar}> <{at}> <[enc]> [enc...]\n\n", argv[0]); + printf(" syntax: %s <{nr}> <{ar}> <{at}> [enc] [enc...]\n\n", argv[0]); return 1; } @@ -103,8 +98,8 @@ int main (int argc, char *argv[]) { lfsr_rollback_word(revstate, nr_enc, 1); lfsr_rollback_word(revstate, uid ^ nt, 0); crypto1_get_lfsr(revstate, &key); - printf("\nFound Key: [%012"llx"]\n\n",key); + printf("\nFound Key: [%012" PRIx64"]\n\n",key); crypto1_destroy(revstate); return 0; -} \ No newline at end of file +}