/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() 63 public void unlockUser(int userId, byte[] secret, IProgressListener listener) in unlockUser() argument 72 if (!Arrays.equals(secret, auth.second)) { in unlockUser()
|
D | CachedSyntheticPasswordTests.java | 115 ArgumentCaptor<ArrayList<Byte>> secret = ArgumentCaptor.forClass(ArrayList.class); in testUntrustedCredentialChangeMaintainsAuthSecret() local 116 verify(mAuthSecretService, atLeastOnce()).primaryUserCredential(secret.capture()); in testUntrustedCredentialChangeMaintainsAuthSecret() 117 assertEquals(1, secret.getAllValues().stream().distinct().count()); in testUntrustedCredentialChangeMaintainsAuthSecret()
|
D | SyntheticPasswordTests.java | 200 ArgumentCaptor<ArrayList<Byte>> secret = ArgumentCaptor.forClass(ArrayList.class); in testSyntheticPasswordChangeCredentialKeepsAuthSecret() local 201 verify(mAuthSecretService, atLeastOnce()).primaryUserCredential(secret.capture()); in testSyntheticPasswordChangeCredentialKeepsAuthSecret() 202 assertEquals(1, secret.getAllValues().stream().distinct().count()); in testSyntheticPasswordChangeCredentialKeepsAuthSecret()
|
/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 | 1191 private void unlockUser(int userId, byte[] token, byte[] secret) { in unlockUser() argument 1214 mActivityManager.unlockUser(userId, token, secret, listener); in unlockUser() 1668 private void unlockUserKey(int userId, byte[] token, byte[] secret) throws RemoteException { in unlockUserKey() argument 1670 mStorageManager.unlockUserKey(userId, userInfo.serialNumber, token, secret); in unlockUserKey() 1673 private void addUserKeyAuth(int userId, byte[] token, byte[] secret) in addUserKeyAuth() argument 1678 mStorageManager.addUserKeyAuth(userId, userInfo.serialNumber, token, secret); in addUserKeyAuth() 2346 final ArrayList<Byte> secret = new ArrayList<>(rawSecret.length); in onAuthTokenKnownForUser() local 2348 secret.add(rawSecret[i]); in onAuthTokenKnownForUser() 2350 mAuthSecretService.primaryUserCredential(secret); in onAuthTokenKnownForUser() 2560 final byte[] secret = authResult.authToken.deriveDiskEncryptionKey(); in spBasedDoVerifyCredential() [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/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
|
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/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 | 1230 boolean unlockUser(final int userId, byte[] token, byte[] secret, IProgressListener listener) { 1243 return unlockUserCleared(userId, token, secret, listener); 1268 private boolean unlockUserCleared(final int userId, byte[] token, byte[] secret, 1276 storageManager.unlockUserKey(userId, userInfo.serialNumber, token, secret);
|
D | ActivityManagerShellCommand.java | 1762 byte[] secret = argToBytes(getNextArgRequired()); 1763 boolean success = mInterface.unlockUser(userId, token, secret, null);
|
D | ActivityManagerService.java | 17583 public boolean unlockUser(int userId, byte[] token, byte[] secret, IProgressListener listener) { in unlockUser() argument 17584 return mUserController.unlockUser(userId, token, secret, listener); in unlockUser()
|
/frameworks/base/services/core/java/com/android/server/ |
D | StorageManagerService.java | 2765 public void addUserKeyAuth(int userId, int serialNumber, byte[] token, byte[] secret) { in addUserKeyAuth() argument 2769 mVold.addUserKeyAuth(userId, serialNumber, encodeBytes(token), encodeBytes(secret)); in addUserKeyAuth() 2790 public void unlockUserKey(int userId, int serialNumber, byte[] token, byte[] secret) { in unlockUserKey() argument 2797 if (mLockPatternUtils.isSecure(userId) && ArrayUtils.isEmpty(secret)) { in unlockUserKey() 2803 encodeBytes(secret)); in unlockUserKey()
|
/frameworks/base/core/java/android/app/ |
D | IActivityManager.aidl | 492 boolean unlockUser(int userid, in byte[] token, in byte[] secret, in unlockUser() argument
|