Merge upstream dev companion CLI updates

This commit is contained in:
mikecarper
2026-08-28 17:31:28 -07:00
46 changed files with 1976 additions and 163 deletions
+9
View File
@@ -264,6 +264,15 @@ bool Utils::isHexChar(char c) {
return c == '0' || hexVal(c) > 0;
}
bool Utils::isZeroes(const uint8_t* buf, size_t len) {
while (len > 0) {
if (*buf != 0) return false;
buf++;
len--;
}
return true;
}
bool Utils::fromHex(uint8_t* dest, int dest_size, const char *src_hex) {
if (dest == NULL || src_hex == NULL || dest_size < 0) return false;
int len = strlen(src_hex);