Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/
DSyntheticPasswordManager.java140 public void recreate(byte[] secret) { in recreate() argument
141 initialize(secret, this.P1); in recreate()
417 final byte[] secret; in createSyntheticPasswordBlob()
419 secret = authToken.computeP0(); in createSyntheticPasswordBlob()
421 secret = authToken.syntheticPassword.getBytes(); in createSyntheticPasswordBlob()
423 byte[] content = createSPBlob(getHandleName(handle), secret, applicationId, sid); in createSyntheticPasswordBlob()
519 byte[] secret = decryptSPBlob(getHandleName(handle), in unwrapSyntheticPasswordBlob()
521 if (secret == null) { in unwrapSyntheticPasswordBlob()
531 result.recreate(secret); in unwrapSyntheticPasswordBlob()
533 result.syntheticPassword = new String(secret); in unwrapSyntheticPasswordBlob()
DLockSettingsService.java925 private void unlockUser(int userId, byte[] token, byte[] secret) { in unlockUser() argument
947 mActivityManager.unlockUser(userId, token, secret, listener); in unlockUser()
1311 private void addUserKeyAuth(int userId, byte[] token, byte[] secret) in addUserKeyAuth() argument
1317 storageManager.addUserKeyAuth(userId, userInfo.serialNumber, token, secret); in addUserKeyAuth()
1938 final byte[] secret = authResult.authToken.deriveDiskEncryptionKey(); in spBasedDoVerifyCredentialLocked()
1939 Slog.i(TAG, "Unlocking user " + userId + " with secret only, length " + secret.length); in spBasedDoVerifyCredentialLocked()
1940 unlockUser(userId, null, secret); in spBasedDoVerifyCredentialLocked()
DStorageManagerService.java2911 public void addUserKeyAuth(int userId, int serialNumber, byte[] token, byte[] secret) { in addUserKeyAuth() argument
2917 encodeBytes(token), encodeBytes(secret)); in addUserKeyAuth()
2939 public void unlockUserKey(int userId, int serialNumber, byte[] token, byte[] secret) { in unlockUserKey() argument
2946 if (mLockPatternUtils.isSecure(userId) && ArrayUtils.isEmpty(secret)) { in unlockUserKey()
2952 encodeBytes(token), encodeBytes(secret)); in unlockUserKey()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DMockStorageManager.java48 public void addUserKeyAuth(int userId, int serialNumber, byte[] token, byte[] secret) in addUserKeyAuth() argument
50 getUserAuth(userId).add(new Pair<>(token, secret)); in addUserKeyAuth()
78 public void unlockUser(int userId, byte[] secret, IProgressListener listener) in unlockUser() argument
83 if (secret != null) { in unlockUser()
88 if ((!mIgnoreBadUnlock) && auth.second != null && !Arrays.equals(secret, auth.second)) { in unlockUser()
435 public void unlockUserKey(int userId, int serialNumber, byte[] token, byte[] secret) in unlockUserKey() argument
/frameworks/base/core/java/android/os/storage/
DIStorageManager.aidl283 void unlockUserKey(int userId, int serialNumber, in byte[] token, in byte[] secret) = 63; in unlockUserKey() argument
289 void addUserKeyAuth(int userId, int serialNumber, in byte[] token, in byte[] secret) = 70; in addUserKeyAuth() argument
DStorageManager.java1225 public void unlockUserKey(int userId, int serialNumber, byte[] token, byte[] secret) { in unlockUserKey() argument
1227 mStorageManager.unlockUserKey(userId, serialNumber, token, secret); in unlockUserKey()
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java982 boolean unlockUser(final int userId, byte[] token, byte[] secret, IProgressListener listener) {
995 return unlockUserCleared(userId, token, secret, listener);
1020 boolean unlockUserCleared(final int userId, byte[] token, byte[] secret,
1030 storageManager.unlockUserKey(userId, userInfo.serialNumber, token, secret);
DActivityManagerShellCommand.java1404 byte[] secret = argToBytes(getNextArgRequired());
1405 boolean success = mInterface.unlockUser(userId, token, secret, null);
DActivityManagerService.java23482 public boolean unlockUser(int userId, byte[] token, byte[] secret, IProgressListener listener) {
23483 return mUserController.unlockUser(userId, token, secret, listener);
/frameworks/base/core/java/android/app/
DIActivityManager.aidl498 boolean unlockUser(int userid, in byte[] token, in byte[] secret, in unlockUser() argument