proxmark3/common
NZSmartie c9a10631de
Gallagher key checking is now supported on MIFARE Desfire
Both `hf mfdes auth` and `hf mfdes chk` now support Key Diversification for
AN10922 and as special treat, Gallagher issued cards.

For `hf mfdes auth`:
```
    -d, --kdf <kdf>                Key Derivation Function (KDF) (0=None, 1=AN10922, 2=Gallagher)
    -i, --kdfi <kdfi>              KDF input (HEX 1-31 bytes)
```

And for `hf mfdes chk`:
```
    -f, --kdf <kdf>                Key Derivation Function (KDF) (0=None, 1=AN10922, Gallagher)
    -i, --kdfi <kdfi>              KDF input (HEX 1-31 bytes)
```

Examples:
- `hf mfdes auth -a 2081f4 -m 3 -t 4 -d 2 -n 2 -k 00112233445566778899aabbccddeeff`
  Will diversify the key for key `2` on AID `2081F4` for Gallagher issued cards

- `hf mfdes chk -f 1 -i 00112233 -d mfdes_default_keys`
  Will read in all the default keys from the dictionary, and diversify them
  using AN10922 with the input data `00112233`

- `hf mfdes chk -f 2 -d mfdes_default_keys`
  Will read in all the default keys from the dictionary, and diversify them
  using AN10922 but with input data generated from the card's UID, AID and
  key number.
2020-11-02 01:41:48 +13:00
..
crapto1 document tweak 2020-07-31 18:22:11 +02:00
cryptorf remove files committed by error 2020-08-20 20:59:36 +02:00
lz4 make style 2020-10-06 18:41:15 +02:00
mbedtls
bucketsort.c
bucketsort.h
cardhelper.c make style 2020-08-13 12:25:04 +02:00
cardhelper.h fix auth and 2020-07-19 20:45:47 +02:00
commonutil.c make style 2020-09-30 14:27:19 +02:00
commonutil.h add white cloner pwdgen algo (thanks to @paleopterix!) 2020-09-19 11:08:01 +02:00
crc.c
crc.h
crc16.c Make clear current FDX in Pm3 is FDX-B only 2020-10-11 22:38:52 +02:00
crc16.h Make clear current FDX in Pm3 is FDX-B only 2020-10-11 22:38:52 +02:00
crc32.c
crc32.h
crc64.c
crc64.h
default_version.c
generator.c Gallagher key checking is now supported on MIFARE Desfire 2020-11-02 01:41:48 +13:00
generator.h Gallagher key checking is now supported on MIFARE Desfire 2020-11-02 01:41:48 +13:00
get_lz4.sh
iso15693tools.c
iso15693tools.h
legic_prng.c typos 2020-10-23 01:24:58 +02:00
legic_prng.h
lfdemod.c askdemod_ext: update startIdx in case of weak demodulation too 2020-10-07 22:50:22 +02:00
lfdemod.h move idteck to its own file 2020-09-28 21:09:26 +02:00
parity.c
parity.h
util_posix.c
util_posix.h