/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | KeySyncUtilsTest.java | 251 byte[] vaultParams = randomBytes(100); in decryptRecoveryClaimResponse_decryptsAValidResponse() 256 /*header=*/ KeySyncUtils.concat(RECOVERY_RESPONSE_HEADER, vaultParams), in decryptRecoveryClaimResponse_decryptsAValidResponse() 260 keyClaimant, vaultParams, encryptedPayload); in decryptRecoveryClaimResponse_decryptsAValidResponse() 267 byte[] vaultParams = randomBytes(100); in decryptRecoveryClaimResponse_throwsIfCannotDecrypt() 272 /*header=*/ KeySyncUtils.concat(RECOVERY_RESPONSE_HEADER, vaultParams), in decryptRecoveryClaimResponse_throwsIfCannotDecrypt() 277 KeySyncUtils.generateKeyClaimant(), vaultParams, encryptedPayload); in decryptRecoveryClaimResponse_throwsIfCannotDecrypt() local 289 byte[] vaultParams = randomBytes(100); in encryptRecoveryClaim_encryptsLockScreenAndKeyClaimant() 293 vaultParams, in encryptRecoveryClaim_encryptsLockScreenAndKeyClaimant() 301 /*header=*/ KeySyncUtils.concat(RECOVERY_CLAIM_HEADER, vaultParams, challenge), in encryptRecoveryClaim_encryptsLockScreenAndKeyClaimant() 310 byte[] vaultParams = randomBytes(100); in encryptRecoveryClaim_cannotBeDecryptedWithoutChallenge() [all …]
|
D | RecoverableKeyStoreManagerTest.java | 827 byte[] vaultParams = TEST_VAULT_PARAMS.clone(); in startRecoverySession_throwsIfPublicKeysMismatch() 828 vaultParams[1] ^= (byte) 1; // Flip 1 bit in startRecoverySession_throwsIfPublicKeysMismatch() 834 vaultParams, in startRecoverySession_throwsIfPublicKeysMismatch() 862 byte[] vaultParams = TEST_VAULT_PARAMS.clone(); in startRecoverySessionWithCertPath_throwsIfPublicKeysMismatch() 863 vaultParams[1] ^= (byte) 1; // Flip 1 bit in startRecoverySessionWithCertPath_throwsIfPublicKeysMismatch() 869 vaultParams, in startRecoverySessionWithCertPath_throwsIfPublicKeysMismatch() 1280 byte[] vaultParams, in encryptClaimResponse() argument 1287 /*header=*/ KeySyncUtils.concat(RECOVERY_RESPONSE_HEADER, vaultParams), in encryptClaimResponse()
|
D | KeySyncTaskTest.java | 850 byte[] lockScreenHash, byte[] encryptedKey, byte[] vaultParams) throws Exception { in decryptThmEncryptedKey() argument 854 /*header=*/ KeySyncUtils.concat(THM_ENCRYPTED_RECOVERY_KEY_HEADER, vaultParams), in decryptThmEncryptedKey()
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | KeySyncUtils.java | 86 byte[] vaultParams, in thmEncryptRecoveryKey() argument 91 byte[] header = concat(THM_ENCRYPTED_RECOVERY_KEY_HEADER, vaultParams); in thmEncryptRecoveryKey() 214 byte[] vaultParams, in encryptRecoveryClaim() argument 221 /*header=*/ concat(RECOVERY_CLAIM_HEADER, vaultParams, challenge), in encryptRecoveryClaim() 238 byte[] keyClaimant, byte[] vaultParams, byte[] encryptedResponse) in decryptRecoveryClaimResponse() argument 243 /*header=*/ concat(RECOVERY_RESPONSE_HEADER, vaultParams), in decryptRecoveryClaimResponse()
|
D | RecoverableKeyStoreManager.java | 487 @NonNull byte[] vaultParams, in startRecoverySession() argument 508 if (!publicKeysMatch(publicKey, vaultParams)) { in startRecoverySession() 517 new RecoverySessionStorage.Entry(sessionId, kfHash, keyClaimant, vaultParams)); in startRecoverySession() 519 Log.i(TAG, "Received VaultParams for recovery: " + HexDump.toHexString(vaultParams)); in startRecoverySession() 524 vaultParams, in startRecoverySession() 552 @NonNull byte[] vaultParams, in startRecoverySessionWithCertPath() argument 561 Preconditions.checkNotNull(vaultParams, "vaultParams is null"); in startRecoverySessionWithCertPath() 587 sessionId, verifierPublicKey, vaultParams, vaultChallenge, secrets); in startRecoverySessionWithCertPath() 976 private boolean publicKeysMatch(PublicKey publicKey, byte[] vaultParams) { in publicKeysMatch() argument 978 return Arrays.equals(encodedPublicKey, Arrays.copyOf(vaultParams, encodedPublicKey.length)); in publicKeysMatch()
|
D | KeySyncTask.java | 318 byte[] vaultParams = KeySyncUtils.packVaultParams( in syncKeysForAgent() 329 vaultParams, in syncKeysForAgent()
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/ |
D | RecoverySessionStorage.java | 148 public Entry(String sessionId, byte[] lskfHash, byte[] keyClaimant, byte[] vaultParams) { in Entry() argument 152 mVaultParams = vaultParams; in Entry()
|
/frameworks/base/core/java/android/security/keystore/recovery/ |
D | RecoverySession.java | 105 @NonNull byte[] vaultParams, in start() argument 118 vaultParams, in start()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ILockSettings.aidl | 86 in RecoveryCertPath verifierCertPath, in byte[] vaultParams, in byte[] vaultChallenge, in startRecoverySessionWithCertPath() argument
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsService.java | 2267 @NonNull byte[] vaultParams, @NonNull byte[] vaultChallenge, in startRecoverySessionWithCertPath() argument 2271 sessionId, rootCertificateAlias, verifierCertPath, vaultParams, vaultChallenge, in startRecoverySessionWithCertPath()
|