Lines Matching refs:hash
98 unsigned char hash[SHA256_DIGEST_LENGTH * HEX_TO_UINT8 + 1] = "";
99 DmGenerateStrHash(data, size, hash, HexifyLen(SHA256_DIGEST_LENGTH), SHA256_DIGEST_LENGTH);
100 // here we translate sha256 hash to hexadecimal. each 8-bit char will be presented by two characters([0-9a-f])
103 unsigned char value = hash[SHA256_DIGEST_LENGTH + i];
105 hash[i * HEX_TO_UINT8] = hexCode[(value >> WIDTH) & MASK];
106 hash[i * HEX_TO_UINT8 + 1] = hexCode[value & MASK];
108 hash[SHA256_DIGEST_LENGTH * HEX_TO_UINT8] = 0;
110 ss << hash;
116 unsigned char hash[SHA256_DIGEST_LENGTH] = "";
117 DmGenerateStrHash(udid.data(), udid.size(), hash, SHA256_DIGEST_LENGTH, 0);
119 reinterpret_cast<const uint8_t *>(hash), SHORT_DEVICE_ID_HASH_LENGTH / HEX_TO_UINT8) != DM_OK) {
168 unsigned char hash[SHA256_DIGEST_LENGTH] = "";
169 DmGenerateStrHash(groupId.data(), groupId.size(), hash, SHA256_DIGEST_LENGTH, 0);
172 ss << std::hex << (int)hash[i];
215 unsigned char hash[SHA256_DIGEST_LENGTH] = "";
216 DmGenerateStrHash(accountId.data(), accountId.size(), hash, SHA256_DIGEST_LENGTH, 0);
218 reinterpret_cast<const uint8_t *>(hash), SHORT_ACCOUNTID_ID_HASH_LENGTH / HEX_TO_UINT8) != DM_OK) {