Fix mifare_desfire_create_value_file().
Fixes issue 59 Committed, thanks! PR: Issue 59 Submitted by: ervin.kaljola
This commit is contained in:
parent
52e1c90425
commit
ec16eb5572
2 changed files with 41 additions and 2 deletions
|
|
@ -1328,12 +1328,12 @@ mifare_desfire_create_value_file (MifareTag tag, uint8_t file_no, uint8_t commun
|
|||
BUFFER_APPEND_LE (cmd, value, 4, sizeof (int32_t));
|
||||
BUFFER_APPEND (cmd, limited_credit_enable);
|
||||
|
||||
char *p = mifare_cryto_preprocess_data (tag, cmd, &__cmd_n, 0, communication_settings | CMAC_COMMAND);
|
||||
char *p = mifare_cryto_preprocess_data (tag, cmd, &__cmd_n, 0, MDCM_PLAIN | CMAC_COMMAND);
|
||||
|
||||
DESFIRE_TRANSCEIVE2 (tag, p, __cmd_n, res);
|
||||
|
||||
ssize_t sn = __res_n;
|
||||
p = mifare_cryto_postprocess_data (tag, res, &sn, communication_settings | CMAC_COMMAND | CMAC_VERIFY);
|
||||
p = mifare_cryto_postprocess_data (tag, res, &sn, MDCM_PLAIN | CMAC_COMMAND | CMAC_VERIFY);
|
||||
|
||||
cached_file_settings_current[file_no] = false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue