Fix a regression introduced at r643.
This commit is contained in:
parent
d9b2deebe2
commit
5b416ee508
1 changed files with 2 additions and 2 deletions
|
@ -326,7 +326,7 @@ mifare_desfire_authenticate (MifareTag tag, uint8_t key_no, MifareDESFireKey key
|
||||||
ASSERT_ACTIVE (tag);
|
ASSERT_ACTIVE (tag);
|
||||||
ASSERT_MIFARE_DESFIRE (tag);
|
ASSERT_MIFARE_DESFIRE (tag);
|
||||||
|
|
||||||
bzero (MIFARE_DESFIRE (tag)->ivect, 16);
|
bzero (MIFARE_DESFIRE (tag)->ivect, MAX_CRYPTO_BLOCK_SIZE);
|
||||||
|
|
||||||
MIFARE_DESFIRE (tag)->last_picc_error = OPERATION_OK;
|
MIFARE_DESFIRE (tag)->last_picc_error = OPERATION_OK;
|
||||||
|
|
||||||
|
@ -388,7 +388,7 @@ mifare_desfire_authenticate (MifareTag tag, uint8_t key_no, MifareDESFireKey key
|
||||||
|
|
||||||
MIFARE_DESFIRE (tag)->authenticated_key_no = key_no;
|
MIFARE_DESFIRE (tag)->authenticated_key_no = key_no;
|
||||||
MIFARE_DESFIRE (tag)->session_key = mifare_desfire_session_key_new (PCD_RndA, PICC_RndB, key);
|
MIFARE_DESFIRE (tag)->session_key = mifare_desfire_session_key_new (PCD_RndA, PICC_RndB, key);
|
||||||
bzero (MIFARE_DESFIRE (tag)->ivect, 16);
|
bzero (MIFARE_DESFIRE (tag)->ivect, MAX_CRYPTO_BLOCK_SIZE);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue