Home
last modified time | relevance | path

Searched refs:keyGenerator (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DCryptoTestUtils.java33 KeyGenerator keyGenerator = KeyGenerator.getInstance(KEY_ALGORITHM); in generateAesKey() local
34 keyGenerator.init(KEY_SIZE_BITS); in generateAesKey()
35 return keyGenerator.generateKey(); in generateAesKey()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DRecoverableKeyGenerator.java63 KeyGenerator keyGenerator = KeyGenerator.getInstance(SECRET_KEY_ALGORITHM); in newInstance() local
64 return new RecoverableKeyGenerator(keyGenerator, database); in newInstance()
71 KeyGenerator keyGenerator, in RecoverableKeyGenerator() argument
73 mKeyGenerator = keyGenerator; in RecoverableKeyGenerator()
DKeySyncUtils.java141 KeyGenerator keyGenerator = KeyGenerator.getInstance(RECOVERY_KEY_ALGORITHM); in generateRecoveryKey() local
142 keyGenerator.init(RECOVERY_KEY_SIZE_BITS, new SecureRandom()); in generateRecoveryKey()
143 return keyGenerator.generateKey(); in generateRecoveryKey()
DPlatformKeyManager.java478 KeyGenerator keyGenerator = KeyGenerator.getInstance(KEY_ALGORITHM); in generateAesKey() local
479 keyGenerator.init(KEY_SIZE_BITS); in generateAesKey()
480 return keyGenerator.generateKey(); in generateAesKey()
DKeySyncTask.java524 KeyGenerator keyGenerator = KeyGenerator.getInstance(RECOVERY_KEY_ALGORITHM); in generateRecoveryKey() local
525 keyGenerator.init(RECOVERY_KEY_SIZE_BITS); in generateRecoveryKey()
526 return keyGenerator.generateKey(); in generateRecoveryKey()
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DShadowRecoveryController.java80 KeyGenerator keyGenerator; in generateKey() local
82 keyGenerator = KeyGenerator.getInstance(KEY_GENERATOR_ALGORITHM); in generateKey()
88 keyGenerator.init(KEY_SIZE_BITS); in generateKey()
89 Key key = keyGenerator.generateKey(); in generateKey()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DWrappedKeyTest.java195 KeyGenerator keyGenerator = KeyGenerator.getInstance(KEY_ALGORITHM); in generateKey() local
196 keyGenerator.init(/*keySize=*/ 256); in generateKey()
197 return keyGenerator.generateKey(); in generateKey()
201 KeyGenerator keyGenerator = KeyGenerator.getInstance( in generateAndroidKeyStoreKey() local
204 keyGenerator.init(new KeyGenParameterSpec.Builder( in generateAndroidKeyStoreKey()
210 return (AndroidKeyStoreSecretKey) keyGenerator.generateKey(); in generateAndroidKeyStoreKey()
DTestData.java178 KeyGenerator keyGenerator = KeyGenerator.getInstance(KEY_ALGORITHM); in generateKey() local
179 keyGenerator.init(/*keySize=*/ 256); in generateKey()
180 return keyGenerator.generateKey(); in generateKey()
DRecoverableKeyGeneratorTest.java172 KeyGenerator keyGenerator = KeyGenerator.getInstance( in generatePlatformKey() local
175 keyGenerator.init(new KeyGenParameterSpec.Builder( in generatePlatformKey()
180 return (AndroidKeyStoreSecretKey) keyGenerator.generateKey(); in generatePlatformKey()
DKeySyncTaskTest.java861 KeyGenerator keyGenerator = KeyGenerator.getInstance(KEY_ALGORITHM); in generateKey() local
862 keyGenerator.init(/*keySize=*/ 256); in generateKey()
863 return keyGenerator.generateKey(); in generateKey()
867 KeyGenerator keyGenerator = KeyGenerator.getInstance( in generateAndroidKeyStoreKey() local
870 keyGenerator.init(new KeyGenParameterSpec.Builder( in generateAndroidKeyStoreKey()
875 return (AndroidKeyStoreSecretKey) keyGenerator.generateKey(); in generateAndroidKeyStoreKey()
DKeySyncUtilsTest.java521 KeyGenerator keyGenerator = KeyGenerator.getInstance(APPLICATION_KEY_ALGORITHM); in generateApplicationKey() local
522 keyGenerator.init(/*keySize=*/ 256); in generateApplicationKey()
523 return keyGenerator.generateKey(); in generateApplicationKey()
DPlatformKeyManagerTest.java590 KeyGenerator keyGenerator = KeyGenerator.getInstance( in generateAndroidKeyStoreKey() local
593 keyGenerator.init(new KeyGenParameterSpec.Builder(TESTING_KEYSTORE_KEY_ALIAS, in generateAndroidKeyStoreKey()
598 return (AndroidKeyStoreSecretKey) keyGenerator.generateKey(); in generateAndroidKeyStoreKey()
DRecoverableKeyStoreManagerTest.java1314 KeyGenerator keyGenerator = KeyGenerator.getInstance( in generateAndroidKeyStoreKey() local
1317 keyGenerator.init(new KeyGenParameterSpec.Builder( in generateAndroidKeyStoreKey()
1322 return (AndroidKeyStoreSecretKey) keyGenerator.generateKey(); in generateAndroidKeyStoreKey()
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordCrypto.java158 KeyGenerator keyGenerator = KeyGenerator.getInstance(KeyProperties.KEY_ALGORITHM_AES); in createBlob() local
159 keyGenerator.init(AES_KEY_LENGTH * 8, new SecureRandom()); in createBlob()
160 SecretKey secretKey = keyGenerator.generateKey(); in createBlob()
DLockSettingsService.java1541 KeyGenerator keyGenerator = KeyGenerator.getInstance(KeyProperties.KEY_ALGORITHM_AES); in tieProfileLockToParent() local
1542 keyGenerator.init(new SecureRandom()); in tieProfileLockToParent()
1543 SecretKey secretKey = keyGenerator.generateKey(); in tieProfileLockToParent()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DDataIntegrityChecker.java241 KeyGenerator keyGenerator = KeyGenerator in getOrCreateSecretKey() local
250 keyGenerator.init(keyGenParameterSpec); in getOrCreateSecretKey()
251 secretKey = keyGenerator.generateKey(); in getOrCreateSecretKey()