From 82885445b3be2ad153b53bcfe3c53f77e2db0dc7 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 16 Feb 2016 23:51:52 +0100 Subject: [PATCH] FIX: cuid order... --- armsrc/mifarecmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armsrc/mifarecmd.c b/armsrc/mifarecmd.c index ad8655db..22f499aa 100644 --- a/armsrc/mifarecmd.c +++ b/armsrc/mifarecmd.c @@ -944,7 +944,7 @@ void MifareNested(uint32_t arg0, uint32_t arg1, uint32_t calibrate, uint8_t *dat crypto1_destroy(pcs); byte_t buf[4 + 4 * 4] = {0}; - num_to_bytes(cuid, 4, buf); + memcpy(buf, &cuid, 4); memcpy(buf+4, &target_nt[0], 4); memcpy(buf+8, &target_ks[0], 4); memcpy(buf+12, &target_nt[1], 4); -- 2.39.5