35 static double ToInches(
double metricMilimeters);
42 static double ToMilimeters(
double imperialInches);
49 static int16_t be16_to_cpu_signed(
string recvBuffer);
56 static int16_t be16_to_cpu_signed(
char recvChar);
64 static int16_t be16_to_cpu_signed(
char high,
char low);
71 static uint16_t be16_to_cpu_unsigned(
string recvBuffer);
78 static uint16_t be16_to_cpu_unsigned(
char recvChar);
86 static uint16_t be16_to_cpu_unsigned(
char high,
char low);
95 static string ReplaceAll(
string str,
const string& from,
const string& to);
103 static vector<string> Split(
string toSplit,
string delimiter);
110 static string ConvertToHexRepresentation8(int8_t toConvert);
117 static string ConvertToHexRepresentation16(int16_t toConvert);
124 static string ConvertToHexRepresentation32(int32_t toConvert);
131 static string ConvertToHexRepresentation64(int64_t toConvert);
138 static int8_t ConvertHexTo8Bit(
char* toConvert);
145 static int16_t ConvertHexTo16Bit(
char* toConvert);
152 static int32_t ConvertHexTo32Bit(
char* toConvert);
159 static int64_t ConvertHexTo64Bit(
char* toConvert);
166 static uint8_t ConvertHexToUnsigned8Bit(
char* toConvert);
173 static uint16_t ConvertHexToUnsigned16Bit(
char* toConvert);
180 static uint32_t ConvertHexToUnsigned32Bit(
char* toConvert);
187 static uint64_t ConvertHexToUnsigned64Bit(
char* toConvert);
194 static string ExtractIpModel(
const char* toFormat);
201 static string ExtractMacModel(
const char* toFormat);
208 static string RemoveTrailingZeros(std::string toClean);
219 static void ComputeCypher(
char* challenge,
unsigned char* cypher);
233 static void ReorderPrivateKeyAndRemoveObfuscation(
char* originalKey,
const char* challenge,
char* newPrivateKey);