/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | FakeStorageManager.java | 35 public void addUserKeyAuth(int userId, int serialNumber, byte[] token, byte[] secret) { in addUserKeyAuth() argument 36 getUserAuth(userId).add(new Pair<>(token, secret)); in addUserKeyAuth() 39 public void clearUserKeyAuth(int userId, int serialNumber, byte[] token, byte[] secret) { in clearUserKeyAuth() argument 41 if (token == null && secret == null) { in clearUserKeyAuth() 44 auths.remove(new Pair<>(token, secret)); in clearUserKeyAuth() 72 public void unlockUser(int userId, byte[] secret, IProgressListener listener) in unlockUser() argument 81 if (!Arrays.equals(secret, auth.second)) { in unlockUser()
|
D | CachedSyntheticPasswordTests.java | 123 ArgumentCaptor<ArrayList<Byte>> secret = ArgumentCaptor.forClass(ArrayList.class); in testUntrustedCredentialChangeMaintainsAuthSecret() local 124 verify(mAuthSecretService, atLeastOnce()).primaryUserCredential(secret.capture()); in testUntrustedCredentialChangeMaintainsAuthSecret() 125 assertEquals(1, secret.getAllValues().stream().distinct().count()); in testUntrustedCredentialChangeMaintainsAuthSecret()
|
D | SyntheticPasswordTests.java | 181 ArgumentCaptor<ArrayList<Byte>> secret = ArgumentCaptor.forClass(ArrayList.class); in testSyntheticPasswordChangeCredentialKeepsAuthSecret() local 182 verify(mAuthSecretService, atLeastOnce()).primaryUserCredential(secret.capture()); in testSyntheticPasswordChangeCredentialKeepsAuthSecret() 183 assertEquals(1, secret.getAllValues().stream().distinct().count()); in testSyntheticPasswordChangeCredentialKeepsAuthSecret()
|
/frameworks/base/core/java/android/os/storage/ |
D | IStorageManager.aidl | 174 void unlockUserKey(int userId, int serialNumber, in byte[] token, in byte[] secret) = 63; in unlockUserKey() argument 180 void addUserKeyAuth(int userId, int serialNumber, in byte[] token, in byte[] secret) = 70; in addUserKeyAuth() argument 196 void clearUserKeyAuth(int userId, int serialNumber, in byte[] token, in byte[] secret) = 88; in clearUserKeyAuth() argument
|
D | StorageManager.java | 1398 public void unlockUserKey(int userId, int serialNumber, byte[] token, byte[] secret) { in unlockUserKey() argument 1400 mStorageManager.unlockUserKey(userId, serialNumber, token, secret); in unlockUserKey()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | SyntheticPasswordManager.java | 199 public void recreate(byte[] secret) { in recreate() argument 200 initialize(secret, this.P1); in recreate() 830 final byte[] secret; in createSyntheticPasswordBlob() 832 secret = authToken.computeP0(); in createSyntheticPasswordBlob() 834 secret = authToken.syntheticPassword.getBytes(); in createSyntheticPasswordBlob() 836 byte[] content = createSPBlob(getHandleName(handle), secret, applicationId, sid); in createSyntheticPasswordBlob() 993 final byte[] secret; in unwrapSyntheticPasswordBlob() 995 secret = SyntheticPasswordCrypto.decryptBlobV1(getHandleName(handle), in unwrapSyntheticPasswordBlob() 998 secret = decryptSPBlob(getHandleName(handle), in unwrapSyntheticPasswordBlob() 1001 if (secret == null) { in unwrapSyntheticPasswordBlob() [all …]
|
D | LockSettingsService.java | 1210 private void unlockUser(int userId, byte[] token, byte[] secret) { in unlockUser() argument 1211 unlockUser(userId, token, secret, CHALLENGE_NONE, 0 /* challenge */, null); in unlockUser() 1222 private void unlockUser(int userId, byte[] token, byte[] secret, in unlockUser() argument 1247 mActivityManager.unlockUser(userId, token, secret, listener); in unlockUser() 1690 private void clearUserKeyProtection(int userId, byte[] secret) { in clearUserKeyProtection() argument 1695 mStorageManager.clearUserKeyAuth(userId, userInfo.serialNumber, null, secret); in clearUserKeyProtection() 1728 private void unlockUserKey(int userId, byte[] token, byte[] secret) throws RemoteException { in unlockUserKey() argument 1730 mStorageManager.unlockUserKey(userId, userInfo.serialNumber, token, secret); in unlockUserKey() 1733 private void addUserKeyAuth(int userId, byte[] token, byte[] secret) in addUserKeyAuth() argument 1738 mStorageManager.addUserKeyAuth(userId, userInfo.serialNumber, token, secret); in addUserKeyAuth() [all …]
|
/frameworks/base/core/java/android/security/keystore/recovery/ |
D | KeyChainProtectionParams.java | 205 public @NonNull Builder setSecret(@NonNull byte[] secret) { in setSecret() argument 206 mInstance.mSecret = secret; in setSecret()
|
/frameworks/base/core/java/android/net/ |
D | Ikev2VpnProfile.java | 584 public static String encodeForIpsecSecret(@NonNull byte[] secret) { in encodeForIpsecSecret() argument 585 checkNotNull(secret, MISSING_PARAM_MSG_TMPL, "secret"); in encodeForIpsecSecret() 587 return Base64.getEncoder().encodeToString(secret); in encodeForIpsecSecret()
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | SecureBox.java | 301 private static SecretKey hkdfDeriveKey(byte[] secret, byte[] salt, byte[] info) in hkdfDeriveKey() argument 310 byte[] pseudorandomKey = mac.doFinal(secret); in hkdfDeriveKey()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UserController.java | 1261 boolean unlockUser(final int userId, byte[] token, byte[] secret, IProgressListener listener) { 1274 return unlockUserCleared(userId, token, secret, listener); 1299 private boolean unlockUserCleared(final int userId, byte[] token, byte[] secret, 1307 storageManager.unlockUserKey(userId, userInfo.serialNumber, token, secret);
|
D | ActivityManagerShellCommand.java | 1826 byte[] secret = argToBytes(getNextArgRequired()); 1827 boolean success = mInterface.unlockUser(userId, token, secret, null);
|
D | ActivityManagerService.java | 17693 public boolean unlockUser(int userId, byte[] token, byte[] secret, IProgressListener listener) { in unlockUser() argument 17694 return mUserController.unlockUser(userId, token, secret, listener); in unlockUser()
|
/frameworks/base/services/core/java/com/android/server/ |
D | StorageManagerService.java | 2773 public void addUserKeyAuth(int userId, int serialNumber, byte[] token, byte[] secret) { in addUserKeyAuth() argument 2777 mVold.addUserKeyAuth(userId, serialNumber, encodeBytes(token), encodeBytes(secret)); in addUserKeyAuth() 2791 public void clearUserKeyAuth(int userId, int serialNumber, byte[] token, byte[] secret) { in clearUserKeyAuth() argument 2795 mVold.clearUserKeyAuth(userId, serialNumber, encodeBytes(token), encodeBytes(secret)); in clearUserKeyAuth() 2816 public void unlockUserKey(int userId, int serialNumber, byte[] token, byte[] secret) { in unlockUserKey() argument 2823 encodeBytes(secret)); in unlockUserKey()
|
/frameworks/base/core/java/android/app/ |
D | IActivityManager.aidl | 504 boolean unlockUser(int userid, in byte[] token, in byte[] secret, in unlockUser() argument
|