Update Simulcrypt ECMg
This commit is contained in:
@@ -29,4 +29,17 @@ std::string GenerateRotIdHash(const std::string& salt, uint32_t system_id,
|
||||
return Sha256_Hash(absl::StrCat(salt, system_id, unique_id_hash));
|
||||
}
|
||||
|
||||
std::string GenerateUniqueIdHash(const std::string& unique_id,
|
||||
const std::string& salt) {
|
||||
if (unique_id.empty()) {
|
||||
LOG(WARNING) << "unique_id should not be empty.";
|
||||
return "";
|
||||
}
|
||||
if (salt.empty()) {
|
||||
LOG(WARNING) << "salt should not be empty.";
|
||||
return "";
|
||||
}
|
||||
return widevine::Sha256_Hash(absl::StrCat(unique_id, salt));
|
||||
}
|
||||
|
||||
} // namespace widevine
|
||||
|
||||
Reference in New Issue
Block a user