Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java581 public boolean checkPasswordHistory(byte[] passwordToCheck, byte[] hashFactor, int userId) { in checkPasswordHistory() argument
595 String passwordHash = passwordToHistoryHash(passwordToCheck, hashFactor, userId); in checkPasswordHistory()
1048 final byte[] hashFactor = getPasswordHistoryHashFactor(password, userHandle); in updatePasswordHistory()
1049 String hash = passwordToHistoryHash(password, hashFactor, userHandle); in updatePasswordHistory()
1344 private String passwordToHistoryHash(byte[] passwordToHash, byte[] hashFactor, int userId) { in passwordToHistoryHash() argument
1345 if (passwordToHash == null || passwordToHash.length == 0 || hashFactor == null) { in passwordToHistoryHash()
1350 sha256.update(hashFactor); in passwordToHistoryHash()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DSyntheticPasswordTests.java417 final byte[] hashFactor = mService.getHashFactor(password, PRIMARY_USER_ID); in testgetHashFactorPrimaryUser()
418 assertNotNull(hashFactor); in testgetHashFactorPrimaryUser()
425 assertArrayEquals(hashFactor, newHashFactor); in testgetHashFactorPrimaryUser()