This commit is contained in:
Philippe Teuwen
2020-09-12 00:31:17 +02:00
parent 3c9ca8f5bc
commit 812d9cc46a
5 changed files with 44 additions and 44 deletions

View File

@@ -356,7 +356,7 @@ int getGuardBits(uint8_t fmtlen, uint32_t fc, uint32_t cn, uint8_t *guardBits) {
rawbytes[i + 4] = bytebits_to_byte(pre + (i * 8), 8);
PrintAndLogEx(DEBUG, " WIE | %s", sprint_hex(rawbytes, sizeof(rawbytes)));
// XOR (only works on wiegand stuff)
for (i = 1; i < sizeof(rawbytes); ++i)
rawbytes[i] ^= xorKey ;