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.java251 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 …]
DRecoverableKeyStoreManagerTest.java828 byte[] vaultParams = TEST_VAULT_PARAMS.clone(); in startRecoverySession_throwsIfPublicKeysMismatch()
829 vaultParams[1] ^= (byte) 1; // Flip 1 bit in startRecoverySession_throwsIfPublicKeysMismatch()
835 vaultParams, in startRecoverySession_throwsIfPublicKeysMismatch()
863 byte[] vaultParams = TEST_VAULT_PARAMS.clone(); in startRecoverySessionWithCertPath_throwsIfPublicKeysMismatch()
864 vaultParams[1] ^= (byte) 1; // Flip 1 bit in startRecoverySessionWithCertPath_throwsIfPublicKeysMismatch()
870 vaultParams, in startRecoverySessionWithCertPath_throwsIfPublicKeysMismatch()
1281 byte[] vaultParams, in encryptClaimResponse() argument
1288 /*header=*/ KeySyncUtils.concat(RECOVERY_RESPONSE_HEADER, vaultParams), in encryptClaimResponse()
DKeySyncTaskTest.java835 byte[] lockScreenHash, byte[] encryptedKey, byte[] vaultParams) throws Exception { in decryptThmEncryptedKey() argument
839 /*header=*/ KeySyncUtils.concat(THM_ENCRYPTED_RECOVERY_KEY_HEADER, vaultParams), in decryptThmEncryptedKey()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DKeySyncUtils.java86 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()
DRecoverableKeyStoreManager.java488 @NonNull byte[] vaultParams, in startRecoverySession() argument
509 if (!publicKeysMatch(publicKey, vaultParams)) { in startRecoverySession()
518 new RecoverySessionStorage.Entry(sessionId, kfHash, keyClaimant, vaultParams)); in startRecoverySession()
520 Log.i(TAG, "Received VaultParams for recovery: " + HexDump.toHexString(vaultParams)); in startRecoverySession()
525 vaultParams, in startRecoverySession()
553 @NonNull byte[] vaultParams, in startRecoverySessionWithCertPath() argument
562 Objects.requireNonNull(vaultParams, "vaultParams is null"); in startRecoverySessionWithCertPath()
588 sessionId, verifierPublicKey, vaultParams, vaultChallenge, secrets); in startRecoverySessionWithCertPath()
979 private boolean publicKeysMatch(PublicKey publicKey, byte[] vaultParams) { in publicKeysMatch() argument
981 return Arrays.equals(encodedPublicKey, Arrays.copyOf(vaultParams, encodedPublicKey.length)); in publicKeysMatch()
DKeySyncTask.java331 byte[] vaultParams = KeySyncUtils.packVaultParams( in syncKeysForAgent()
342 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.aidl86 in RecoveryCertPath verifierCertPath, in byte[] vaultParams, in byte[] vaultChallenge, in startRecoverySessionWithCertPath() argument
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java2428 @NonNull byte[] vaultParams, @NonNull byte[] vaultChallenge, in startRecoverySessionWithCertPath() argument
2432 sessionId, rootCertificateAlias, verifierCertPath, vaultParams, vaultChallenge, in startRecoverySessionWithCertPath()