Skip to content

Commit 3d0c8ca

Browse files
committed
Refactor Hitag low-level functions into hitag_common
1 parent 4c74704 commit 3d0c8ca

File tree

12 files changed

+696
-684
lines changed

12 files changed

+696
-684
lines changed

armsrc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ else
7272
endif
7373

7474
ifneq (,$(findstring WITH_HITAG,$(APP_CFLAGS)))
75-
SRC_HITAG = hitag2_crypto.c hitag2.c hitagS.c hitag2_crack.c
75+
SRC_HITAG = hitag2_crypto.c hitag_common.c hitag2.c hitagS.c hitag2_crack.c
7676
APP_CFLAGS += -I../common/hitag2
7777
else
7878
SRC_HITAG =

armsrc/appmain.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@ static void PacketReceived(PacketCommandNG *packet) {
12001200
break;
12011201
}
12021202
case CMD_LF_HITAGS_SIMULATE: { // Simulate Hitag s tag, args = memory content
1203-
hts_simulate((bool)packet->oldarg[0], packet->data.asBytes, true);
1203+
hts_simulate((bool)packet->oldarg[0], packet->oldarg[1], packet->data.asBytes, true);
12041204
break;
12051205
}
12061206
case CMD_LF_HITAGS_TEST_TRACES: { // Tests every challenge within the given file
@@ -1218,7 +1218,7 @@ static void PacketReceived(PacketCommandNG *packet) {
12181218
break;
12191219
}
12201220
case CMD_LF_HITAGS_UID: {
1221-
hts_read_uid(NULL, false, true);
1221+
hts_read_uid(NULL, true, true);
12221222
break;
12231223
}
12241224
case CMD_LF_HITAG2_WRITE: {

0 commit comments

Comments
 (0)