mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-07 16:48:15 +08:00
Fix gallagher desfire kdf for default application card master key
This commit is contained in:
parent
6d950e1e48
commit
e2fe92ee3d
1 changed files with 2 additions and 2 deletions
|
@ -482,8 +482,8 @@ int mfdes_kdf_input_gallagher(uint8_t *uid, uint8_t uidLen, uint8_t keyNo, uint3
|
|||
}
|
||||
|
||||
int len = 0;
|
||||
// If the keyNo == 1, then omit the UID.
|
||||
if (keyNo != 1) {
|
||||
// If the keyNo == 1 or the aid is 000000, then omit the UID.
|
||||
if (keyNo != 1 && aid != 0x000000) {
|
||||
if (*kdfInputLen < (4 + uidLen)) {
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue