Home
last modified time | relevance | path

Searched refs:KeySyncUtils (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DKeySyncUtilsTest.java77 byte[] thmKfHash = KeySyncUtils.calculateThmKfHash(lockScreenHash); in calculateThmKfHash_isShaOfLockScreenHashWithPrefix()
84 byte[] thmKfHash = KeySyncUtils.calculateThmKfHash(utf8Bytes("1234")); in calculateThmKfHash_is256BitsLong()
91 SecretKey key = KeySyncUtils.generateRecoveryKey(); in generateRecoveryKey_returnsA256BitKey()
98 SecretKey a = KeySyncUtils.generateRecoveryKey(); in generateRecoveryKey_generatesANewKeyEachTime()
99 SecretKey b = KeySyncUtils.generateRecoveryKey(); in generateRecoveryKey_generatesANewKeyEachTime()
106 byte[] keyClaimant = KeySyncUtils.generateKeyClaimant(); in generateKeyClaimant_returns16Bytes()
113 byte[] a = KeySyncUtils.generateKeyClaimant(); in generateKeyClaimant_generatesANewClaimantEachTime()
114 byte[] b = KeySyncUtils.generateKeyClaimant(); in generateKeyClaimant_generatesANewClaimantEachTime()
123 KeySyncUtils.concat( in concat_concatenatesArrays()
133 SecretKey recoveryKey = KeySyncUtils.generateRecoveryKey(); in decryptApplicationKey_decryptsAnApplicationKey_nullMetadata()
[all …]
DKeySyncTaskTest.java539 /*vaultParams=*/ KeySyncUtils.packVaultParams( in run_sendsEncryptedKeysIfAvailableToSync_withRawPublicKey()
555 byte[] appKey = KeySyncUtils.decryptApplicationKey( in run_sendsEncryptedKeysIfAvailableToSync_withRawPublicKey()
853 /*sharedSecret=*/ KeySyncUtils.calculateThmKfHash(lockScreenHash), in decryptThmEncryptedKey()
854 /*header=*/ KeySyncUtils.concat(THM_ENCRYPTED_RECOVERY_KEY_HEADER, vaultParams), in decryptThmEncryptedKey()
857 return KeySyncUtils.decryptRecoveryKey(lockScreenHash, locallyEncryptedKey); in decryptThmEncryptedKey()
DRecoverableKeyStoreManagerTest.java1271 return KeySyncUtils.encryptKeysWithRecoveryKey(recoveryKey, ImmutableMap.of( in encryptedApplicationKey()
1282 byte[] locallyEncryptedRecoveryKey = KeySyncUtils.locallyEncryptRecoveryKey( in encryptClaimResponse()
1287 /*header=*/ KeySyncUtils.concat(RECOVERY_RESPONSE_HEADER, vaultParams), in encryptClaimResponse()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DRecoverableKeyStoreManager.java501 publicKey = KeySyncUtils.deserializePublicKey(verifierPublicKey); in startRecoverySession()
513 byte[] keyClaimant = KeySyncUtils.generateKeyClaimant(); in startRecoverySession()
521 byte[] thmKfHash = KeySyncUtils.calculateThmKfHash(kfHash); in startRecoverySession()
522 return KeySyncUtils.encryptRecoveryClaim( in startRecoverySession()
830 locallyEncryptedKey = KeySyncUtils.decryptRecoveryClaimResponse( in decryptRecoveryKey()
848 return KeySyncUtils.decryptRecoveryKey(sessionEntry.getLskfHash(), locallyEncryptedKey); in decryptRecoveryKey()
878 byte[] keyMaterial = KeySyncUtils.decryptApplicationKey(recoveryKey, in recoverApplicationKeys()
DKeySyncUtils.java47 public class KeySyncUtils { class
357 private KeySyncUtils() {} in KeySyncUtils() method in KeySyncUtils
DKeySyncTask.java298 encryptedApplicationKeys = KeySyncUtils.encryptKeysWithRecoveryKey( in syncKeysForAgent()
318 byte[] vaultParams = KeySyncUtils.packVaultParams( in syncKeysForAgent()
326 encryptedRecoveryKey = KeySyncUtils.thmEncryptRecoveryKey( in syncKeysForAgent()
/frameworks/base/services/
Dart-profile8424 PLcom/android/server/locksettings/recoverablekeystore/KeySyncUtils;->calculateThmKfHash([B)[B
8425 PLcom/android/server/locksettings/recoverablekeystore/KeySyncUtils;->concat([[B)[B
8426 PLcom/android/server/locksettings/recoverablekeystore/KeySyncUtils;->encryptKeysWithRecoveryKey(Lja…
8427 PLcom/android/server/locksettings/recoverablekeystore/KeySyncUtils;->locallyEncryptRecoveryKey([BLj…
8428 PLcom/android/server/locksettings/recoverablekeystore/KeySyncUtils;->packVaultParams(Ljava/security…