Lines Matching refs:pw
758 ResponseCode initialize(const android::String8& pw, Entropy* entropy) {
762 ResponseCode response = writeMasterKey(pw, entropy);
782 ResponseCode writeMasterKey(const android::String8& pw, Entropy* entropy) {
784 generateKeyFromPassword(passwordKey, MASTER_KEY_SIZE_BYTES, pw, mSalt);
791 ResponseCode readMasterKey(const android::String8& pw, Entropy* entropy) {
812 generateKeyFromPassword(passwordKey, MASTER_KEY_SIZE_BYTES, pw, salt);
827 response = writeMasterKey(pw, entropy);
889 void generateKeyFromPassword(uint8_t* key, ssize_t keySize, const android::String8& pw,
901 PKCS5_PBKDF2_HMAC_SHA1(reinterpret_cast<const char*>(pw.string()), pw.length(), salt,
985 ResponseCode initializeUser(const android::String8& pw, uid_t uid) {
987 return userState->initialize(pw, mEntropy);
996 ResponseCode writeMasterKey(const android::String8& pw, uid_t uid) {
998 return userState->writeMasterKey(pw, mEntropy);
1001 ResponseCode readMasterKey(const android::String8& pw, uid_t uid) {
1003 return userState->readMasterKey(pw, mEntropy);
1790 int32_t unlock(const String16& pw) {
1804 const String8 password8(pw);
1805 return password(pw);
2392 int32_t password_uid(const String16& pw, int32_t targetUid) {
2404 const String8 password8(pw);