projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mod 'hf list' (#881)
[proxmark3-svn]
/
client
/
loclass
/
cipherutils.c
diff --git
a/client/loclass/cipherutils.c
b/client/loclass/cipherutils.c
index f9c6227364e17d78c3a9af32cf627964a7133ed3..b5e365bf45780c34e1911f185080ba85d6b08739 100644
(file)
--- a/
client/loclass/cipherutils.c
+++ b/
client/loclass/cipherutils.c
@@
-22,7
+22,7
@@
*
* This is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as published
*
* This is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as published
- * by the Free Software Foundation
.
+ * by the Free Software Foundation
, or, at your option, any later version.
*
* This file is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
*
* This file is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-33,7
+33,6
@@
* along with loclass. If not, see <http://www.gnu.org/licenses/>.
*
*
* along with loclass. If not, see <http://www.gnu.org/licenses/>.
*
*
- *
****************************************************************************/
#include <stdint.h>
****************************************************************************/
#include <stdint.h>
@@
-171,6
+170,7
@@
void printarr(char * name, uint8_t* arr, int len)
}
cx += snprintf(output+cx,outsize-cx,"};");
prnlog(output);
}
cx += snprintf(output+cx,outsize-cx,"};");
prnlog(output);
+ free(output);
}
void printvar(char * name, uint8_t* arr, int len)
}
void printvar(char * name, uint8_t* arr, int len)
@@
-188,6
+188,7
@@
void printvar(char * name, uint8_t* arr, int len)
}
prnlog(output);
}
prnlog(output);
+ free(output);
}
void printarr_human_readable(char * title, uint8_t* arr, int len)
}
void printarr_human_readable(char * title, uint8_t* arr, int len)
@@
-214,7
+215,7
@@
void printarr_human_readable(char * title, uint8_t* arr, int len)
// Code for testing below
//-----------------------------
// Code for testing below
//-----------------------------
-
+#ifndef ON_DEVICE
int testBitStream()
{
uint8_t input [] = {0xDE,0xAD,0xBE,0xEF,0xDE,0xAD,0xBE,0xEF};
int testBitStream()
{
uint8_t input [] = {0xDE,0xAD,0xBE,0xEF,0xDE,0xAD,0xBE,0xEF};
@@
-287,3
+288,4
@@
int testCipherUtils(void)
retval |= testReversedBitstream();
return retval;
}
retval |= testReversedBitstream();
return retval;
}
+#endif
Impressum
,
Datenschutz