Searched refs:hashFactor (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | LockscreenCredentialTest.java | 183 String hashFactor = "6637D20C0798382D9F1304861C81DE222BC6CB7183623C67DA99B115A7AF702D"; in testPasswordToHistoryHash() local 188 credential.passwordToHistoryHash(salt.getBytes(), hashFactor.getBytes())) in testPasswordToHistoryHash() 192 password.getBytes(), salt.getBytes(), hashFactor.getBytes())) in testPasswordToHistoryHash() 199 String hashFactor = "6637D20C0798382D9F1304861C81DE222BC6CB7183623C67DA99B115A7AF702D"; in testPasswordToHistoryHashInvalidInput() local 203 credential.passwordToHistoryHash(/* salt= */ null, hashFactor.getBytes())) in testPasswordToHistoryHashInvalidInput() 207 password.getBytes(), /* salt= */ null, hashFactor.getBytes())) in testPasswordToHistoryHashInvalidInput() 220 /* password= */ null, salt.getBytes(), hashFactor.getBytes())) in testPasswordToHistoryHashInvalidInput()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LockscreenCredential.java | 286 public String passwordToHistoryHash(byte[] salt, byte[] hashFactor) { in passwordToHistoryHash() argument 287 return passwordToHistoryHash(mCredential, salt, hashFactor); in passwordToHistoryHash() 294 byte[] passwordToHash, byte[] salt, byte[] hashFactor) { in passwordToHistoryHash() argument 296 || hashFactor == null || salt == null) { in passwordToHistoryHash() 301 sha256.update(hashFactor); in passwordToHistoryHash()
|
D | LockPatternUtils.java | 543 public boolean checkPasswordHistory(byte[] passwordToCheck, byte[] hashFactor, int userId) { in checkPasswordHistory() argument 559 passwordToCheck, salt, hashFactor); in checkPasswordHistory()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | SyntheticPasswordTests.java | 433 byte[] hashFactor = mService.getHashFactor(password, PRIMARY_USER_ID); in testGetHashFactorPrimaryUser() 434 assertNotNull(hashFactor); in testGetHashFactorPrimaryUser() 440 assertArrayEquals(hashFactor, newHashFactor); in testGetHashFactorPrimaryUser()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsService.java | 1815 final byte[] hashFactor = getHashFactor(password, userHandle); in updatePasswordHistory() 1817 String hash = password.passwordToHistoryHash(salt, hashFactor); in updatePasswordHistory()
|