Unit tests and reference code for v15

This CL updates the unit tests and reference code to support OEMCrypto
API v15.
This commit is contained in:
Fred Gylys-Colwell
2018-11-14 17:19:35 -08:00
parent 70e67379ec
commit 4b95763c6a
28 changed files with 4325 additions and 3160 deletions

View File

@@ -292,4 +292,10 @@ int64_t htonll64(int64_t x) { // Convert to big endian (network-byte-order)
}
}
std::string BytesToString(const uint8_t* bytes, unsigned size) {
if (!bytes || !size) return "";
const char* char_bytes = reinterpret_cast<const char*>(bytes);
return std::string(char_bytes, char_bytes + size);
}
} // namespace wvcdm