Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DKeySyncUtilsTest.java243 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 …]
DRecoverableKeyStoreManagerTest.java869 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()
DKeySyncTaskTest.java924 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/
DKeySyncUtils.java88 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()
DRecoverableKeyStoreManager.java522 @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()
DKeySyncTask.java336 byte[] vaultParams = KeySyncUtils.packVaultParams( in syncKeysForAgent()
347 vaultParams, in syncKeysForAgent()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverySessionStorage.java148 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/
DRecoverySession.java105 @NonNull byte[] vaultParams, in start() argument
118 vaultParams, in start()
/frameworks/base/core/java/com/android/internal/widget/
DILockSettings.aidl93 in RecoveryCertPath verifierCertPath, in byte[] vaultParams, in byte[] vaultChallenge, in startRecoverySessionWithCertPath() argument
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java2748 @NonNull byte[] vaultParams, @NonNull byte[] vaultChallenge, in startRecoverySessionWithCertPath() argument
2752 sessionId, rootCertificateAlias, verifierCertPath, vaultParams, vaultChallenge, in startRecoverySessionWithCertPath()