Searched refs:hashFactor (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/core/java/com/android/internal/widget/ |
D | LockPatternUtils.java | 534 public boolean checkPasswordHistory(String passwordToCheck, byte[] hashFactor, int userId) { in checkPasswordHistory() argument 548 String passwordHash = passwordToHistoryHash(passwordToCheck, hashFactor, userId); in checkPasswordHistory() 897 final byte[] hashFactor = getPasswordHistoryHashFactor(password, userHandle); in updatePasswordHistory() 898 String hash = passwordToHistoryHash(password, hashFactor, userHandle); in updatePasswordHistory() 1173 private String passwordToHistoryHash(String passwordToHash, byte[] hashFactor, int userId) { in passwordToHistoryHash() argument 1174 if (TextUtils.isEmpty(passwordToHash) || hashFactor == null) { in passwordToHistoryHash() 1179 sha256.update(hashFactor); in passwordToHistoryHash()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | SyntheticPasswordTests.java | 455 final byte[] hashFactor = mService.getHashFactor(password, PRIMARY_USER_ID); in testgetHashFactorPrimaryUser() 456 assertNotNull(hashFactor); in testgetHashFactorPrimaryUser() 463 assertArrayEquals(hashFactor, newHashFactor); in testgetHashFactorPrimaryUser()
|