mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
CHG: Syntax suger
This commit is contained in:
parent
f66114426b
commit
da198be4b5
7 changed files with 44 additions and 61 deletions
|
@ -226,8 +226,8 @@ void* mifare_cryto_preprocess_data (desfiretag_t tag, void *data, size_t *nbytes
|
|||
cmac (key, DESFIRE (tag)->ivect, res, *nbytes, DESFIRE (tag)->cmac);
|
||||
|
||||
if (append_mac) {
|
||||
maced_data_length (key, *nbytes);
|
||||
|
||||
size_t len = maced_data_length (key, *nbytes);
|
||||
++len;
|
||||
memcpy (res, data, *nbytes);
|
||||
memcpy (res + *nbytes, DESFIRE (tag)->cmac, CMAC_LENGTH);
|
||||
*nbytes += CMAC_LENGTH;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue