Home
last modified time | relevance | path

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

/system/vold/
DKeyStorage.cpp200 static bool stretchingNeedsSalt(const std::string& stretching) { in stretchingNeedsSalt() argument
201 return stretching != kStretch_nopassword && stretching != kStretch_none; in stretchingNeedsSalt()
204 static bool stretchSecret(const std::string& stretching, const std::string& secret, in stretchSecret() argument
206 if (stretching == kStretch_nopassword) { in stretchSecret()
212 } else if (stretching == kStretch_none) { in stretchSecret()
215 stretching.begin())) { in stretchSecret()
217 if (!parse_scrypt_parameters(stretching.substr(kStretchPrefix_scrypt.size()).c_str(), &Nf, in stretchSecret()
219 LOG(ERROR) << "Unable to parse scrypt params in stretching: " << stretching; in stretchSecret()
227 LOG(ERROR) << "scrypt failed with params: " << stretching; in stretchSecret()
231 LOG(ERROR) << "Unknown stretching type: " << stretching; in stretchSecret()
[all …]