Home
last modified time | relevance | path

Searched refs:metrics_salt (Results 1 – 1 of 1) sorted by relevance

/system/bt/btif/src/
Dbtif_config.cc146 AddressObfuscator::Octet32 metrics_salt = {}; in read_or_set_metrics_salt() local
147 size_t metrics_salt_length = metrics_salt.size(); in read_or_set_metrics_salt()
149 BT_CONFIG_METRICS_SALT_256BIT, metrics_salt.data(), in read_or_set_metrics_salt()
153 metrics_salt.fill(0); in read_or_set_metrics_salt()
155 if (metrics_salt_length != metrics_salt.size()) { in read_or_set_metrics_salt()
157 << metrics_salt_length << " instead of " << metrics_salt.size(); in read_or_set_metrics_salt()
159 metrics_salt.fill(0); in read_or_set_metrics_salt()
161 if (!AddressObfuscator::IsSaltValid(metrics_salt)) { in read_or_set_metrics_salt()
163 if (RAND_bytes(metrics_salt.data(), metrics_salt.size()) != 1) { in read_or_set_metrics_salt()
167 BT_CONFIG_METRICS_SALT_256BIT, metrics_salt.data(), in read_or_set_metrics_salt()
[all …]