Home
last modified time | relevance | path

Searched refs:secret (Results 1 – 15 of 15) 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()
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()
DCachedSyntheticPasswordTests.java123 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()
DSyntheticPasswordTests.java181 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/
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
196 void clearUserKeyAuth(int userId, int serialNumber, in byte[] token, in byte[] secret) = 88; in clearUserKeyAuth() 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/
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.java1210 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/
DKeyChainProtectionParams.java205 public @NonNull Builder setSecret(@NonNull byte[] secret) { in setSecret() argument
206 mInstance.mSecret = secret; in setSecret()
/frameworks/base/core/java/android/net/
DIkev2VpnProfile.java584 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/
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.java1261 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);
DActivityManagerShellCommand.java1826 byte[] secret = argToBytes(getNextArgRequired());
1827 boolean success = mInterface.unlockUser(userId, token, secret, null);
DActivityManagerService.java17693 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/
DStorageManagerService.java2773 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/
DIActivityManager.aidl504 boolean unlockUser(int userid, in byte[] token, in byte[] secret, in unlockUser() argument