Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Commit

Permalink
ADD: 'hf iclass check' - increased speed in check keys with new algo.
Browse files Browse the repository at this point in the history
ADD: 'hf iclass' - trying to add the timeout-limits for commands in order to get a more stable iclass communication
  • Loading branch information
iceman1001 committed Dec 21, 2017
1 parent c2725bf commit 5eafdbf
Show file tree
Hide file tree
Showing 6 changed files with 324 additions and 162 deletions.
3 changes: 3 additions & 0 deletions armsrc/appmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,9 @@ void UsbPacketReceived(uint8_t *packet, int len) {
case CMD_ICLASS_AUTHENTICATION: //check
iClass_Authentication(c->d.asBytes);
break;
case CMD_ICLASS_CHECK_KEYS:
iClass_Authentication_fast(c->arg[0], c->arg[1], c->d.asBytes);
break;
case CMD_ICLASS_DUMP:
iClass_Dump(c->arg[0], c->arg[1]);
break;
Expand Down
3 changes: 2 additions & 1 deletion armsrc/apps.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,13 @@ void ReaderIClass(uint8_t arg0);
void ReaderIClass_Replay(uint8_t arg0,uint8_t *MAC);
void IClass_iso14443A_GetPublic(uint8_t arg0);
void iClass_Authentication(uint8_t *MAC);
void iClass_Authentication_fast(uint64_t arg0, uint64_t arg1, uint8_t *datain);
void iClass_WriteBlock(uint8_t blockNo, uint8_t *data);
void iClass_ReadBlk(uint8_t blockNo);
bool iClass_ReadBlock(uint8_t blockNo, uint8_t *readdata);
void iClass_Dump(uint8_t blockno, uint8_t numblks);
void iClass_Clone(uint8_t startblock, uint8_t endblock, uint8_t *data);
void iClass_ReadCheck(uint8_t blockNo, uint8_t keyType);
void iClass_ReadCheck(uint8_t blockNo, uint8_t keyType);

// hitag2.h
void SnoopHitag(uint32_t type);
Expand Down
Loading

0 comments on commit 5eafdbf

Please sign in to comment.