Home
last modified time | relevance | path

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

/system/vold/
DKeyStorage.cpp248 static bool stretchingNeedsSalt(const std::string& stretching) { in stretchingNeedsSalt() argument
249 return stretching != kStretch_nopassword && stretching != kStretch_none; in stretchingNeedsSalt()
252 static bool stretchSecret(const std::string& stretching, const std::string& secret, in stretchSecret() argument
254 if (stretching == kStretch_nopassword) { in stretchSecret()
260 } else if (stretching == kStretch_none) { in stretchSecret()
263 stretching.begin())) { in stretchSecret()
265 if (!parse_scrypt_parameters(stretching.substr(kStretchPrefix_scrypt.size()).c_str(), &Nf, in stretchSecret()
267 LOG(ERROR) << "Unable to parse scrypt params in stretching: " << stretching; in stretchSecret()
275 LOG(ERROR) << "scrypt failed with params: " << stretching; in stretchSecret()
279 LOG(ERROR) << "Unknown stretching type: " << stretching; in stretchSecret()
[all …]