mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-24 15:15:39 -07:00
Merge pull request #1329 from mwalker33/desfire
Update desfire_crypto.c
This commit is contained in:
commit
00b4636be1
1 changed files with 4 additions and 0 deletions
|
@ -335,6 +335,10 @@ void mifare_kdf_an10922(const desfirekey_t key, const uint8_t *data, size_t len)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// AES uses 16 byte IV
|
||||||
|
if (kbs < 16)
|
||||||
|
kbs = 16;
|
||||||
|
|
||||||
cmac_generate_subkeys(key, MCD_SEND);
|
cmac_generate_subkeys(key, MCD_SEND);
|
||||||
|
|
||||||
// reserv atleast 32bytes.
|
// reserv atleast 32bytes.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue