/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | KeySyncUtilsTest.java | 243 byte[] vaultParams = randomBytes(100); in decryptRecoveryClaimResponse_decryptsAValidResponse() 248 /*header=*/ ArrayUtils.concat(RECOVERY_RESPONSE_HEADER, vaultParams), in decryptRecoveryClaimResponse_decryptsAValidResponse() 252 keyClaimant, vaultParams, encryptedPayload); in decryptRecoveryClaimResponse_decryptsAValidResponse() 259 byte[] vaultParams = randomBytes(100); in decryptRecoveryClaimResponse_throwsIfCannotDecrypt() 264 /*header=*/ ArrayUtils.concat(RECOVERY_RESPONSE_HEADER, vaultParams), in decryptRecoveryClaimResponse_throwsIfCannotDecrypt() 269 KeySyncUtils.generateKeyClaimant(), vaultParams, encryptedPayload); in decryptRecoveryClaimResponse_throwsIfCannotDecrypt() local 281 byte[] vaultParams = randomBytes(100); in encryptRecoveryClaim_encryptsLockScreenAndKeyClaimant() 285 vaultParams, in encryptRecoveryClaim_encryptsLockScreenAndKeyClaimant() 293 /*header=*/ ArrayUtils.concat(RECOVERY_CLAIM_HEADER, vaultParams, challenge), in encryptRecoveryClaim_encryptsLockScreenAndKeyClaimant() 302 byte[] vaultParams = randomBytes(100); in encryptRecoveryClaim_cannotBeDecryptedWithoutChallenge() [all …]
|
D | RecoverableKeyStoreManagerTest.java | 869 byte[] vaultParams = TEST_VAULT_PARAMS.clone(); in startRecoverySession_throwsIfPublicKeysMismatch() 870 vaultParams[1] ^= (byte) 1; // Flip 1 bit in startRecoverySession_throwsIfPublicKeysMismatch() 876 vaultParams, in startRecoverySession_throwsIfPublicKeysMismatch() 906 byte[] vaultParams = TEST_VAULT_PARAMS.clone(); in startRecoverySessionWithCertPath_throwsIfPublicKeysMismatch() 907 vaultParams[1] ^= (byte) 1; // Flip 1 bit in startRecoverySessionWithCertPath_throwsIfPublicKeysMismatch() 913 vaultParams, in startRecoverySessionWithCertPath_throwsIfPublicKeysMismatch() 1492 byte[] vaultParams, in encryptClaimResponse() argument 1499 /*header=*/ ArrayUtils.concat(RECOVERY_RESPONSE_HEADER, vaultParams), in encryptClaimResponse()
|
D | KeySyncTaskTest.java | 924 byte[] lockScreenHash, byte[] encryptedKey, byte[] vaultParams) throws Exception { in decryptThmEncryptedKey() argument 928 /*header=*/ ArrayUtils.concat(THM_ENCRYPTED_RECOVERY_KEY_HEADER, vaultParams), in decryptThmEncryptedKey()
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | KeySyncUtils.java | 88 byte[] vaultParams, in thmEncryptRecoveryKey() argument 93 byte[] header = ArrayUtils.concat(THM_ENCRYPTED_RECOVERY_KEY_HEADER, vaultParams); in thmEncryptRecoveryKey() 216 byte[] vaultParams, in encryptRecoveryClaim() argument 223 /*header=*/ ArrayUtils.concat(RECOVERY_CLAIM_HEADER, vaultParams, challenge), in encryptRecoveryClaim() 240 byte[] keyClaimant, byte[] vaultParams, byte[] encryptedResponse) in decryptRecoveryClaimResponse() argument 245 /*header=*/ ArrayUtils.concat(RECOVERY_RESPONSE_HEADER, vaultParams), in decryptRecoveryClaimResponse()
|
D | RecoverableKeyStoreManager.java | 522 @NonNull byte[] vaultParams, in startRecoverySession() argument 543 if (!publicKeysMatch(publicKey, vaultParams)) { in startRecoverySession() 552 new RecoverySessionStorage.Entry(sessionId, kfHash, keyClaimant, vaultParams)); in startRecoverySession() 554 Log.i(TAG, "Received VaultParams for recovery: " + HexDump.toHexString(vaultParams)); in startRecoverySession() 559 vaultParams, in startRecoverySession() 587 @NonNull byte[] vaultParams, in startRecoverySessionWithCertPath() argument 596 Objects.requireNonNull(vaultParams, "vaultParams is null"); in startRecoverySessionWithCertPath() 623 sessionId, verifierPublicKey, vaultParams, vaultChallenge, secrets); in startRecoverySessionWithCertPath() 1172 private boolean publicKeysMatch(PublicKey publicKey, byte[] vaultParams) { in publicKeysMatch() argument 1174 return Arrays.equals(encodedPublicKey, Arrays.copyOf(vaultParams, encodedPublicKey.length)); in publicKeysMatch()
|
D | KeySyncTask.java | 336 byte[] vaultParams = KeySyncUtils.packVaultParams( in syncKeysForAgent() 347 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 | 93 in RecoveryCertPath verifierCertPath, in byte[] vaultParams, in byte[] vaultChallenge, in startRecoverySessionWithCertPath() argument
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsService.java | 2748 @NonNull byte[] vaultParams, @NonNull byte[] vaultChallenge, in startRecoverySessionWithCertPath() argument 2752 sessionId, rootCertificateAlias, verifierCertPath, vaultParams, vaultChallenge, in startRecoverySessionWithCertPath()
|