Searched refs:key_raw_ref (Results 1 – 6 of 6) sorted by relevance
/system/vold/ |
D | KeyUtil.cpp | 209 if (policy.key_raw_ref.size() != FSCRYPT_KEY_DESCRIPTOR_SIZE) { in buildKeySpecifier() 211 << policy.key_raw_ref.size(); in buildKeySpecifier() 215 memcpy(spec->u.descriptor, policy.key_raw_ref.c_str(), FSCRYPT_KEY_DESCRIPTOR_SIZE); in buildKeySpecifier() 218 if (policy.key_raw_ref.size() != FSCRYPT_KEY_IDENTIFIER_SIZE) { in buildKeySpecifier() 220 << policy.key_raw_ref.size(); in buildKeySpecifier() 224 memcpy(spec->u.identifier, policy.key_raw_ref.c_str(), FSCRYPT_KEY_IDENTIFIER_SIZE); in buildKeySpecifier() 274 policy->key_raw_ref = generateKeyRef((const uint8_t*)key.data(), key.size()); in installKey() 276 return installKeyLegacy(key, policy->key_raw_ref); in installKey() 302 policy->key_raw_ref = in installKey() 305 std::string ref = keyrefstring(policy->key_raw_ref); in installKey() [all …]
|
D | FsCrypt.cpp | 447 if (!android::vold::writeStringToFile(device_policy.key_raw_ref, ref_filename)) return false; in fscrypt_initialize_systemwide_keys() 455 if (!android::vold::writeStringToFile(per_boot_policy.key_raw_ref, per_boot_ref_filename)) in fscrypt_initialize_systemwide_keys()
|
/system/extras/libfscrypt/include/fscrypt/ |
D | fscrypt.h | 45 std::string key_raw_ref; member 75 return lhs.key_raw_ref == rhs.key_raw_ref && lhs.options == rhs.options;
|
/system/extras/libfscrypt/ |
D | fscrypt.cpp | 274 BytesToHex(policy.key_raw_ref, &ref_hex); in PolicyDebugString() 291 if (policy.key_raw_ref.size() != FSCRYPT_KEY_DESCRIPTOR_SIZE) { in EnsurePolicy() 293 << policy.key_raw_ref.size(); in EnsurePolicy() 302 policy.key_raw_ref.copy(reinterpret_cast<char*>(kern_policy.v1.master_key_descriptor), in EnsurePolicy() 306 if (policy.key_raw_ref.size() != FSCRYPT_KEY_IDENTIFIER_SIZE) { in EnsurePolicy() 308 << policy.key_raw_ref.size(); in EnsurePolicy() 315 policy.key_raw_ref.copy(reinterpret_cast<char*>(kern_policy.v2.master_key_identifier), in EnsurePolicy()
|
/system/core/init/ |
D | fscrypt_init_extensions.cpp | 104 if (!android::base::ReadFileToString(ref_filename, &policy->key_raw_ref)) { in LookupPolicy() 125 BytesToHex(policy.key_raw_ref, &ref_hex); in EnsurePolicyOrLog()
|
/system/extras/libfscrypt/tests/ |
D | fscrypt_test.cpp | 188 foo.key_raw_ref = "foo"; in TEST() 197 TEST_INEQUALITY(foo, key_raw_ref, "bar"); in TEST()
|