mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
reverted
This commit is contained in:
parent
90e63e10fb
commit
37ff9275f1
1 changed files with 0 additions and 4 deletions
|
@ -58,7 +58,6 @@ int usage_lf_indala_clone(void) {
|
||||||
// indala id decoding
|
// indala id decoding
|
||||||
int indala64decode(uint8_t *dest, size_t *size, uint8_t *invert) {
|
int indala64decode(uint8_t *dest, size_t *size, uint8_t *invert) {
|
||||||
//standard 64 bit indala formats including 26 bit 40134 format
|
//standard 64 bit indala formats including 26 bit 40134 format
|
||||||
// Note: these start with 3 bits from the end of one UID; the rest are from a subsequent one
|
|
||||||
uint8_t preamble64[] = {1,0,1,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 1};
|
uint8_t preamble64[] = {1,0,1,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 1};
|
||||||
uint8_t preamble64_i[] = {0,1,0,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 0};
|
uint8_t preamble64_i[] = {0,1,0,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 0};
|
||||||
size_t idx = 0;
|
size_t idx = 0;
|
||||||
|
@ -70,9 +69,6 @@ int indala64decode(uint8_t *dest, size_t *size, uint8_t *invert) {
|
||||||
}
|
}
|
||||||
if (found_size != 64) return -2;
|
if (found_size != 64) return -2;
|
||||||
|
|
||||||
// Skip the aforementioned 3 bits from the previous UID
|
|
||||||
idx += 3;
|
|
||||||
|
|
||||||
if (*invert == 1)
|
if (*invert == 1)
|
||||||
for (size_t i = idx; i < found_size + idx; i++)
|
for (size_t i = idx; i < found_size + idx; i++)
|
||||||
dest[i] ^= 1;
|
dest[i] ^= 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue