Lines Matching refs:password
146 void generatePassword(hidl_vec<uint8_t> &password, uint8_t seed) { in generatePassword() argument
147 password.resize(16); in generatePassword()
148 memset(password.data(), seed, password.size()); in generatePassword()
177 void enrollNewPassword(hidl_vec<uint8_t> &password, GatekeeperResponse &rsp, in enrollNewPassword() argument
180 req.newPwd.setToExternal(password.data(), password.size()); in enrollNewPassword()
185 void verifyPassword(hidl_vec<uint8_t> &password, in verifyPassword() argument
191 verifyReq.newPwd = password; in verifyPassword()
223 hidl_vec<uint8_t> password; in TEST_F() local
226 generatePassword(password, 0); in TEST_F()
227 enrollNewPassword(password, rsp, true); in TEST_F()
235 hidl_vec<uint8_t> password; in TEST_F() local
238 enrollNewPassword(password, rsp, false); in TEST_F()
248 hidl_vec<uint8_t> password; in TEST_F() local
251 generatePassword(password, 0); in TEST_F()
252 enrollNewPassword(password, enrollRsp, true); in TEST_F()
253 verifyPassword(password, enrollRsp.data, 1, verifyRsp, true); in TEST_F()
267 hidl_vec<uint8_t> password; in TEST_F() local
270 generatePassword(password, 0); in TEST_F()
273 enrollNewPassword(password, enrollRsp, true); in TEST_F()
274 verifyPassword(password, enrollRsp.data, 0, verifyRsp, true); in TEST_F()
279 reenrollReq.curPwd.setToExternal(password.data(), password.size()); in TEST_F()
305 hidl_vec<uint8_t> password; in TEST_F() local
309 generatePassword(password, 0); in TEST_F()
310 enrollNewPassword(password, enrollRsp, true); in TEST_F()
311 verifyPassword(password, enrollRsp.data, 0, verifyRsp, true); in TEST_F()
331 hidl_vec<uint8_t> password; in TEST_F() local
336 verifyPassword(password, passwordHandle, 0, verifyRsp, false); in TEST_F()
345 hidl_vec<uint8_t> password; in TEST_F() local
351 generatePassword(password, 0); in TEST_F()
352 enrollNewPassword(password, enrollRsp, true); in TEST_F()
353 verifyPassword(password, enrollRsp.data, 0, verifyRsp, true); in TEST_F()
361 verifyPassword(password, enrollRsp.data, 0, verifyRsp, false); in TEST_F()
372 hidl_vec<uint8_t> password; in TEST_F() local
379 generatePassword(password, 0); in TEST_F()
380 enrollNewPassword(password, enrollRsp, true); in TEST_F()
381 verifyPassword(password, enrollRsp.data, 0, verifyRsp, true); in TEST_F()
406 hidl_vec<uint8_t> password; in TEST_F() member
417 generatePassword(users[i].password, (i % 255) + 1); in TEST_F()
418 enrollNewPassword(users[i].password, users[i].enrollRsp, true); in TEST_F()
425 verifyPassword(users[i].password, users[i].enrollRsp.data, 0, in TEST_F()
440 verifyPassword(users[i].password, users[i].enrollRsp.data, 0, in TEST_F()