- printf("Recovering key for:\n");
- printf(" uid: %08x\n", uid);
- printf(" nt_0: %08x\n", nt0);
- printf(" {nr_0}: %08x\n", nr0_enc);
- printf(" {ar_0}: %08x\n", ar0_enc);
- printf(" nt_1: %08x\n", nt1);
- printf(" {nr_1}: %08x\n", nr1_enc);
- printf(" {ar_1}: %08x\n", ar1_enc);
- printf("\nLFSR succesors of the tag challenge:\n");
- printf(" nt': %08x\n", p640);
- printf(" nt'': %08x\n", prng_successor(p640, 32));
+ PrintAndLog("Recovering key for:");
+ PrintAndLog(" uid: %08x", uid);
+ PrintAndLog(" nt_0: %08x", nt0);
+ PrintAndLog(" {nr_0}: %08x", nr0_enc);
+ PrintAndLog(" {ar_0}: %08x", ar0_enc);
+ PrintAndLog(" nt_1: %08x", nt1);
+ PrintAndLog(" {nr_1}: %08x", nr1_enc);
+ PrintAndLog(" {ar_1}: %08x", ar1_enc);
+ PrintAndLog("\nLFSR succesors of the tag challenge:");
+ PrintAndLog(" nt': %08x", p640);
+ PrintAndLog(" nt'': %08x", prng_successor(p640, 32));