mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
rem: 'hf iclass' blocknum LUT is gone. Removed also functionality for it.
This commit is contained in:
parent
5c380767e8
commit
50743b7e88
3 changed files with 4 additions and 28 deletions
|
@ -50,29 +50,4 @@ char* Iso15693sprintUID(char *target, uint8_t *uid) {
|
|||
uid[3], uid[2], uid[1], uid[0]
|
||||
);
|
||||
return target;
|
||||
}
|
||||
|
||||
uint16_t iclass_crc16(uint8_t *d, uint16_t n) {
|
||||
|
||||
unsigned int data;
|
||||
uint16_t crc = 0xffff;
|
||||
|
||||
|
||||
if (n == 0)
|
||||
return (~crc);
|
||||
|
||||
do {
|
||||
for (uint8_t i=0, data = *d++; i < 8; i++, data >>= 1) {
|
||||
if ((crc & 0x0001) ^ (data & 0x0001))
|
||||
crc = (crc >> 1) ^ ISO15_CRC_POLY;
|
||||
else
|
||||
crc >>= 1;
|
||||
}
|
||||
} while (--n);
|
||||
|
||||
crc = ~crc;
|
||||
data = crc;
|
||||
crc = (crc << 8) | (data >> 8 & 0xff);
|
||||
crc = crc ^ 0xBC3;
|
||||
return crc;
|
||||
}
|
|
@ -77,7 +77,6 @@ int Iso15693AddCrc(uint8_t *d, size_t n);
|
|||
bool Iso15693CheckCrc(uint8_t *d, size_t n);
|
||||
char* Iso15693sprintUID(char *target, uint8_t *uid);
|
||||
|
||||
uint16_t iclass_crc16(uint8_t *d, uint16_t n);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Map a sequence of octets (~layer 2 command) into the set of bits to feed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue