mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-21 22:03:19 -07:00
Remove unused functions hextobinstring, binarraytobinstring
This commit is contained in:
parent
d7f79c5ba2
commit
69a74eb0b3
2 changed files with 0 additions and 23 deletions
|
@ -648,17 +648,6 @@ int hextobinarray(char *target, char *source)
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
// convert hex to human readable binary string
|
|
||||||
int hextobinstring(char *target, char *source)
|
|
||||||
{
|
|
||||||
int length;
|
|
||||||
|
|
||||||
if(!(length= hextobinarray(target, source)))
|
|
||||||
return 0;
|
|
||||||
binarraytobinstring(target, target, length);
|
|
||||||
return length;
|
|
||||||
}
|
|
||||||
|
|
||||||
// convert binary array of 0x00/0x01 values to hex (safe to do in place as target will always be shorter than source)
|
// convert binary array of 0x00/0x01 values to hex (safe to do in place as target will always be shorter than source)
|
||||||
// return number of bits converted
|
// return number of bits converted
|
||||||
int binarraytohex(char *target,char *source, int length)
|
int binarraytohex(char *target,char *source, int length)
|
||||||
|
@ -681,16 +670,6 @@ int binarraytohex(char *target,char *source, int length)
|
||||||
return length;
|
return length;
|
||||||
}
|
}
|
||||||
|
|
||||||
// convert binary array to human readable binary
|
|
||||||
void binarraytobinstring(char *target, char *source, int length)
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
|
|
||||||
for(i= 0 ; i < length ; ++i)
|
|
||||||
*(target++)= *(source++) + '0';
|
|
||||||
*target= '\0';
|
|
||||||
}
|
|
||||||
|
|
||||||
// return parity bit required to match type
|
// return parity bit required to match type
|
||||||
uint8_t GetParity( uint8_t *bits, uint8_t type, int length)
|
uint8_t GetParity( uint8_t *bits, uint8_t type, int length)
|
||||||
{
|
{
|
||||||
|
|
|
@ -82,9 +82,7 @@ extern int param_gethex_to_eol(const char *line, int paramnum, uint8_t * data, i
|
||||||
extern int param_getstr(const char *line, int paramnum, char * str, size_t buffersize);
|
extern int param_getstr(const char *line, int paramnum, char * str, size_t buffersize);
|
||||||
|
|
||||||
extern int hextobinarray( char *target, char *source);
|
extern int hextobinarray( char *target, char *source);
|
||||||
extern int hextobinstring( char *target, char *source);
|
|
||||||
extern int binarraytohex( char *target, char *source, int length);
|
extern int binarraytohex( char *target, char *source, int length);
|
||||||
extern void binarraytobinstring(char *target, char *source, int length);
|
|
||||||
extern uint8_t GetParity( uint8_t *string, uint8_t type, int length);
|
extern uint8_t GetParity( uint8_t *string, uint8_t type, int length);
|
||||||
extern void wiegand_add_parity(uint8_t *target, uint8_t *source, uint8_t length);
|
extern void wiegand_add_parity(uint8_t *target, uint8_t *source, uint8_t length);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue