- \r
- PrintAndLog("Decrypting data with:");\r
- PrintAndLog(" nt: %08x",nt);\r
- PrintAndLog(" ar_enc: %08x",ar_enc);\r
- PrintAndLog(" at_enc: %08x",at_enc);\r
- PrintAndLog("\nEncrypted data: [%s]", sprint_hex(data,len) );\r
-\r
- pcs = lfsr_recovery64(ks2, ks3);\r
- mf_crypto1_decrypt(pcs, data, len, FALSE);\r
- PrintAndLog("Decrypted data: [%s]", sprint_hex(data,len) );\r
- crypto1_destroy(pcs);\r
+ s = lfsr_recovery64(ks2, ks3);\r
+ mf_crypto1_decrypt(s, data, len, FALSE);\r
+ PrintAndLog("Decrypted data: [%s]", sprint_hex(data, len) );\r
+ crypto1_destroy(s);\r