Home
last modified time | relevance | path

Searched refs:secret (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DFakeStorageManager.java35 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()
DCachedSyntheticPasswordTests.java115 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()
DSyntheticPasswordTests.java200 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/
DSyntheticPasswordManager.java199 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 …]
DLockSettingsService.java1191 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/
DKeyChainProtectionParams.java205 public @NonNull Builder setSecret(@NonNull byte[] secret) { in setSecret() argument
206 mInstance.mSecret = secret; in setSecret()
/frameworks/base/core/java/android/os/storage/
DIStorageManager.aidl174 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
DStorageManager.java1398 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/
DSecureBox.java301 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/
DUserController.java1230 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);
DActivityManagerShellCommand.java1762 byte[] secret = argToBytes(getNextArgRequired());
1763 boolean success = mInterface.unlockUser(userId, token, secret, null);
DActivityManagerService.java17583 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/
DStorageManagerService.java2765 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/
DIActivityManager.aidl492 boolean unlockUser(int userid, in byte[] token, in byte[] secret, in unlockUser() argument