proxmark3/include
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
..
ansi.h hf 14a: add config loopholes to deal with badly configured cards: invalid ATQA, invalid BCC, invalid SAK 2020-09-07 00:50:27 +02:00
at91sam7s512.h Fix typos 2019-09-14 17:44:58 +02:00
common.h Revert "fix: osx doesn't like target directive" 2020-06-08 11:07:45 +02:00
config_gpio.h include: fix mix of spaces & tabs 2019-03-09 18:41:30 +01:00
em4x50.h structs must be PACKED 2020-10-15 19:31:33 +02:00
hitag.h fix coverity 267211 & 267206 logically dead code 2020-05-14 01:01:48 +02:00
iso14b.h style 2020-10-06 18:00:00 +02:00
iso15.h style 2020-10-06 18:00:00 +02:00
iso18.h style 2020-10-06 18:00:00 +02:00
legic.h include: fix mix of spaces & tabs 2019-03-09 18:41:30 +01:00
mifare.h Gallagher key checking is now supported on MIFARE Desfire 2020-11-02 01:41:48 +13:00
pm3_cmd.h hf 14b sriread -> hf 14b rdbl, renamed and refactored it to read a block. use dump, to dump whole tag 2020-10-27 18:26:14 +01:00
pmflash.h armsrc: clarify static vars vs global vars, part 3 2020-05-19 18:12:40 +02:00
protocols.h tune em 4x05_info 2020-10-28 01:54:59 +01:00
proxmark3_arm.h version info also for client, still cmake to do 2020-05-20 21:11:45 +02:00
usart_defs.h Use /dev/tty on OSX rather than /dev/cu 2019-08-20 23:21:22 +02:00