1 // Copyright 2017 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "chrome/chrome_elf/third_party_dlls/packed_list_format.h" 6 7 #include <stddef.h> 8 9 namespace third_party_dlls { 10 11 // Subkey relative to install_static::GetRegistryPath(). 12 const wchar_t kThirdPartyRegKeyName[] = L"\\ThirdParty"; 13 14 // Subkey value of type REG_SZ to hold a full path to a packed-list file. 15 const wchar_t kBlFilePathRegValue[] = L"BlFilePath"; 16 GetFingerprintString(uint32_t time_data_stamp,uint32_t image_size)17std::string GetFingerprintString(uint32_t time_data_stamp, 18 uint32_t image_size) { 19 // Max hex 32-bit value is 8 characters long. 2*8+1. 20 char buffer[17] = {}; 21 ::snprintf(buffer, sizeof(buffer), "%08X%x", time_data_stamp, image_size); 22 23 return std::string(buffer); 24 } 25 26 } // namespace third_party_dlls 27