Searched refs:hashFactor (Results 1 – 6 of 6) sorted by relevance
/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
H A 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()
|
/aosp12/frameworks/base/core/java/com/android/internal/widget/ |
H A 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()
|
H A D | LockPatternUtils.java | 544 public boolean checkPasswordHistory(byte[] passwordToCheck, byte[] hashFactor, int userId) { in checkPasswordHistory() argument 560 passwordToCheck, salt, hashFactor); in checkPasswordHistory()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
H A D | ShadowLockPatternUtils.java | 95 protected boolean checkPasswordHistory(byte[] passwordToCheck, byte[] hashFactor, int userId) { in checkPasswordHistory() argument
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
H A 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()
|
/aosp12/frameworks/base/services/core/java/com/android/server/locksettings/ |
H A D | LockSettingsService.java | 1815 final byte[] hashFactor = getHashFactor(password, userHandle); in updatePasswordHistory() 1817 String hash = password.passwordToHistoryHash(salt, hashFactor); in updatePasswordHistory()
|