Ignore the status code when deciphering (3)DES data.

This commit is contained in:
Romain Tartiere 2010-12-18 02:14:51 +00:00
parent 373cb4f0ef
commit f06b0ac5d3

View file

@ -554,6 +554,7 @@ mifare_cryto_postprocess_data (MifareTag tag, void *data, ssize_t *nbytes, int c
switch (key->type) {
case T_DES:
case T_3DES:
(*nbytes)--;
mifare_cbc_des (MIFARE_DESFIRE (tag)->session_key, MIFARE_DESFIRE (tag)->ivect, res, *nbytes, MD_RECEIVE, 0);
/*