mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-27 02:24:47 +08:00
chg: wrong type
This commit is contained in:
parent
1965927009
commit
145bccdea8
2 changed files with 2 additions and 2 deletions
|
@ -30,6 +30,7 @@
|
|||
static void xor (const uint8_t *ivect, uint8_t *data, const size_t len);
|
||||
static size_t key_macing_length (desfirekey_t key);
|
||||
|
||||
// iceman, see memxor inside string.c, dest/src swapped..
|
||||
static void xor (const uint8_t *ivect, uint8_t *data, const size_t len) {
|
||||
for (size_t i = 0; i < len; i++) {
|
||||
data[i] ^= ivect[i];
|
||||
|
@ -445,7 +446,7 @@ void* mifare_cryto_postprocess_data (desfiretag_t tag, void *data, size_t *nbyte
|
|||
uint32_t crc;
|
||||
switch (DESFIRE (tag)->authentication_scheme) {
|
||||
case AS_LEGACY:
|
||||
AddCrc14A(res, end_crc_pos);
|
||||
AddCrc14A( (uint8_t*)res, end_crc_pos);
|
||||
end_crc_pos = crc_pos + 2;
|
||||
//
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#include <string.h>
|
||||
//#include "apps.h"
|
||||
#include "crc32.h"
|
||||
#include "printf.h"
|
||||
#include "desfire.h"
|
||||
|
|
Loading…
Reference in a new issue