Home
last modified time | relevance | path

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

/system/extras/libfscrypt/
Dfscrypt.cpp139 bool OptionsToString(const EncryptionOptions& options, std::string* options_string) { in OptionsToString() argument
140 return OptionsToStringForApiLevel(GetFirstApiLevel(), options, options_string); in OptionsToString()
144 std::string* options_string) { in OptionsToStringForApiLevel() argument
152 *options_string = contents_mode + ":" + filenames_mode + ":v" + std::to_string(options.version); in OptionsToStringForApiLevel()
154 *options_string += "+inlinecrypt_optimized"; in OptionsToStringForApiLevel()
157 *options_string += "+emmc_optimized"; in OptionsToStringForApiLevel()
160 *options_string += "+wrappedkey_v0"; in OptionsToStringForApiLevel()
164 if (!ParseOptionsForApiLevel(first_api_level, *options_string, &options_check)) { in OptionsToStringForApiLevel()
165 LOG(ERROR) << "Internal error serializing options as string: " << *options_string; in OptionsToStringForApiLevel()
170 << *options_string; in OptionsToStringForApiLevel()
[all …]
/system/extras/libfscrypt/include/fscrypt/
Dfscrypt.h52 bool OptionsToString(const EncryptionOptions& options, std::string* options_string);
55 std::string* options_string);
57 bool ParseOptions(const std::string& options_string, EncryptionOptions* options);
59 bool ParseOptionsForApiLevel(unsigned int first_api_level, const std::string& options_string,
/system/core/init/
Dfscrypt_init_extensions.cpp110 std::string options_string; in LookupPolicy() local
111 if (!android::base::ReadFileToString(options_filename, &options_string)) { in LookupPolicy()
115 if (!ParseOptions(options_string, &policy->options)) { in LookupPolicy()
116 LOG(ERROR) << "Invalid encryption options string: " << options_string; in LookupPolicy()
/system/extras/libfscrypt/tests/
Dfscrypt_test.cpp32 std::string options_string; in TestString() local
35 EXPECT_TRUE(OptionsToStringForApiLevel(first_api_level, options, &options_string)); in TestString()
36 EXPECT_EQ(outstring, options_string); in TestString()
/system/vold/
DMetadataCrypt.cpp247 static bool parse_options(const std::string& options_string, CryptoOptions* options) { in parse_options() argument
248 auto parts = android::base::Split(options_string, ":"); in parse_options()
250 LOG(ERROR) << "Invalid metadata encryption option: " << options_string; in parse_options()
DFsCrypt.cpp272 auto options_string = android::base::GetProperty("ro.crypto.volume.options", in get_volume_file_encryption_options() local
274 if (!ParseOptionsForApiLevel(first_api_level, options_string, options)) { in get_volume_file_encryption_options()
275 LOG(ERROR) << "Unable to parse volume encryption options: " << options_string; in get_volume_file_encryption_options()
438 std::string options_string; in fscrypt_initialize_systemwide_keys() local
439 if (!OptionsToString(device_policy.options, &options_string)) { in fscrypt_initialize_systemwide_keys()
444 if (!android::vold::writeStringToFile(options_string, options_filename)) return false; in fscrypt_initialize_systemwide_keys()