Searched refs:KeySyncUtils (Results 1 – 6 of 6) sorted by relevance
80 byte[] thmKfHash = KeySyncUtils.calculateThmKfHash(lockScreenHash); in calculateThmKfHash_isShaOfLockScreenHashWithPrefix()87 byte[] thmKfHash = KeySyncUtils.calculateThmKfHash(utf8Bytes("1234")); in calculateThmKfHash_is256BitsLong()94 SecretKey key = KeySyncUtils.generateRecoveryKey(); in generateRecoveryKey_returnsA256BitKey()101 SecretKey a = KeySyncUtils.generateRecoveryKey(); in generateRecoveryKey_generatesANewKeyEachTime()102 SecretKey b = KeySyncUtils.generateRecoveryKey(); in generateRecoveryKey_generatesANewKeyEachTime()109 byte[] keyClaimant = KeySyncUtils.generateKeyClaimant(); in generateKeyClaimant_returns16Bytes()116 byte[] a = KeySyncUtils.generateKeyClaimant(); in generateKeyClaimant_generatesANewClaimantEachTime()117 byte[] b = KeySyncUtils.generateKeyClaimant(); in generateKeyClaimant_generatesANewClaimantEachTime()125 SecretKey recoveryKey = KeySyncUtils.generateRecoveryKey(); in decryptApplicationKey_decryptsAnApplicationKey_nullMetadata()128 KeySyncUtils.encryptKeysWithRecoveryKey( in decryptApplicationKey_decryptsAnApplicationKey_nullMetadata()[all …]
569 /*vaultParams=*/ KeySyncUtils.packVaultParams( in run_sendsEncryptedKeysIfAvailableToSync_withRawPublicKey()585 byte[] appKey = KeySyncUtils.decryptApplicationKey( in run_sendsEncryptedKeysIfAvailableToSync_withRawPublicKey()927 /*sharedSecret=*/ KeySyncUtils.calculateThmKfHash(lockScreenHash), in decryptThmEncryptedKey()931 return KeySyncUtils.decryptRecoveryKey(lockScreenHash, locallyEncryptedKey); in decryptThmEncryptedKey()
1483 return KeySyncUtils.encryptKeysWithRecoveryKey(recoveryKey, ImmutableMap.of( in encryptedApplicationKey()1494 byte[] locallyEncryptedRecoveryKey = KeySyncUtils.locallyEncryptRecoveryKey( in encryptClaimResponse()
49 public class KeySyncUtils { class339 private KeySyncUtils() {} in KeySyncUtils() method in KeySyncUtils
536 publicKey = KeySyncUtils.deserializePublicKey(verifierPublicKey); in startRecoverySession()548 byte[] keyClaimant = KeySyncUtils.generateKeyClaimant(); in startRecoverySession()556 byte[] thmKfHash = KeySyncUtils.calculateThmKfHash(kfHash); in startRecoverySession()557 return KeySyncUtils.encryptRecoveryClaim( in startRecoverySession()866 locallyEncryptedKey = KeySyncUtils.decryptRecoveryClaimResponse( in decryptRecoveryKey()884 return KeySyncUtils.decryptRecoveryKey(sessionEntry.getLskfHash(), locallyEncryptedKey); in decryptRecoveryKey()914 byte[] keyMaterial = KeySyncUtils.decryptApplicationKey(recoveryKey, in recoverApplicationKeys()
316 encryptedApplicationKeys = KeySyncUtils.encryptKeysWithRecoveryKey( in syncKeysForAgent()336 byte[] vaultParams = KeySyncUtils.packVaultParams( in syncKeysForAgent()344 encryptedRecoveryKey = KeySyncUtils.thmEncryptRecoveryKey( in syncKeysForAgent()