Home
last modified time | relevance | path

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

/system/vold/
DKeyUtil.cpp211 if (policy.key_raw_ref.size() != FSCRYPT_KEY_DESCRIPTOR_SIZE) { in buildKeySpecifier()
213 << policy.key_raw_ref.size(); in buildKeySpecifier()
217 memcpy(spec->u.descriptor, policy.key_raw_ref.c_str(), FSCRYPT_KEY_DESCRIPTOR_SIZE); in buildKeySpecifier()
220 if (policy.key_raw_ref.size() != FSCRYPT_KEY_IDENTIFIER_SIZE) { in buildKeySpecifier()
222 << policy.key_raw_ref.size(); in buildKeySpecifier()
226 memcpy(spec->u.identifier, policy.key_raw_ref.c_str(), FSCRYPT_KEY_IDENTIFIER_SIZE); in buildKeySpecifier()
276 policy->key_raw_ref = generateKeyRef((const uint8_t*)key.data(), key.size()); in installKey()
278 return installKeyLegacy(key, policy->key_raw_ref); in installKey()
304 policy->key_raw_ref = in installKey()
307 std::string ref = keyrefstring(policy->key_raw_ref); in installKey()
[all …]
DFsCrypt.cpp454 if (!android::vold::writeStringToFile(device_policy.key_raw_ref, ref_filename)) return false; in fscrypt_initialize_systemwide_keys()
462 if (!android::vold::writeStringToFile(per_boot_policy.key_raw_ref, per_boot_ref_filename)) in fscrypt_initialize_systemwide_keys()
/system/extras/libfscrypt/include/fscrypt/
Dfscrypt.h45 std::string key_raw_ref; member
75 return lhs.key_raw_ref == rhs.key_raw_ref && lhs.options == rhs.options;
/system/extras/libfscrypt/
Dfscrypt.cpp277 BytesToHex(policy.key_raw_ref, &ref_hex); in PolicyDebugString()
294 if (policy.key_raw_ref.size() != FSCRYPT_KEY_DESCRIPTOR_SIZE) { in EnsurePolicy()
296 << policy.key_raw_ref.size(); in EnsurePolicy()
305 policy.key_raw_ref.copy(reinterpret_cast<char*>(kern_policy.v1.master_key_descriptor), in EnsurePolicy()
309 if (policy.key_raw_ref.size() != FSCRYPT_KEY_IDENTIFIER_SIZE) { in EnsurePolicy()
311 << policy.key_raw_ref.size(); in EnsurePolicy()
318 policy.key_raw_ref.copy(reinterpret_cast<char*>(kern_policy.v2.master_key_identifier), in EnsurePolicy()
/system/core/init/
Dfscrypt_init_extensions.cpp104 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/
Dfscrypt_test.cpp189 foo.key_raw_ref = "foo"; in TEST()
198 TEST_INEQUALITY(foo, key_raw_ref, "bar"); in TEST()