ufr.h 1.36 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <string>
#include <iostream>
#include <sstream>
#include <cstring>
#include <string.h>
#include "../lib/include/uFCoder.h"

using namespace std;

void changeAuthMode();
void changeAuthenticationKey();
void changeKeyIndex();
void changeProvidedKey();
void convertStrToByteArray(string str, uint8_t *array);
void ConvertStringToUint8Array(std::string str, uint8_t *array);
string eraseDelimiters(string hexStr);
bool isHexChar(char c);
string ConvertToHexArray(const uint8_t *data, int len, string delimiter);
19
void printCurrentAuthConfig(void);
20
void usage(void);
21 22 23 24 25 26 27 28
void operation_BlockRead(void);
void operation_BlockInSectorRead(void);
void operation_BlockWrite(void);
void operation_BlockInSectorWrite(void);
void operation_LinearRead(void);
void operation_LinearWrite(void);
void operation_ReaderKeyWrite(void);
void operation_ReaderKeyWriteAes(void);
29
void operation_SamKeyWrite(void);
30 31 32 33 34 35 36 37 38
void operation_ValueBlockRead(void);
void operation_ValueBlockWrite(void);
void operation_ValueBlockIncrement(void);
void operation_ValueBlockDecrement(void);
void operation_ValueBlockInSectorRead(void);
void operation_ValueBlockInSectorWrite(void);
void operation_ValueBlockInSectorIncrement(void);
void operation_ValueBlockInSectorDecrement(void);
void operation_SectorTrailerWrite(void);
39

40
#if linux || __linux__ || __APPLE__
41 42 43 44
int _kbhit(void);
void _resetTermios(void);
char _getch(void);
#endif