/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/ |
D | CryptoTestUtils.java | 33 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/ |
D | RecoverableKeyGenerator.java | 63 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()
|
D | KeySyncUtils.java | 141 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()
|
D | PlatformKeyManager.java | 478 KeyGenerator keyGenerator = KeyGenerator.getInstance(KEY_ALGORITHM); in generateAesKey() local 479 keyGenerator.init(KEY_SIZE_BITS); in generateAesKey() 480 return keyGenerator.generateKey(); in generateAesKey()
|
D | KeySyncTask.java | 524 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/ |
D | ShadowRecoveryController.java | 80 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/ |
D | WrappedKeyTest.java | 195 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()
|
D | TestData.java | 178 KeyGenerator keyGenerator = KeyGenerator.getInstance(KEY_ALGORITHM); in generateKey() local 179 keyGenerator.init(/*keySize=*/ 256); in generateKey() 180 return keyGenerator.generateKey(); in generateKey()
|
D | RecoverableKeyGeneratorTest.java | 172 KeyGenerator keyGenerator = KeyGenerator.getInstance( in generatePlatformKey() local 175 keyGenerator.init(new KeyGenParameterSpec.Builder( in generatePlatformKey() 180 return (AndroidKeyStoreSecretKey) keyGenerator.generateKey(); in generatePlatformKey()
|
D | KeySyncTaskTest.java | 861 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()
|
D | KeySyncUtilsTest.java | 521 KeyGenerator keyGenerator = KeyGenerator.getInstance(APPLICATION_KEY_ALGORITHM); in generateApplicationKey() local 522 keyGenerator.init(/*keySize=*/ 256); in generateApplicationKey() 523 return keyGenerator.generateKey(); in generateApplicationKey()
|
D | PlatformKeyManagerTest.java | 590 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()
|
D | RecoverableKeyStoreManagerTest.java | 1314 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/ |
D | SyntheticPasswordCrypto.java | 158 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()
|
D | LockSettingsService.java | 1541 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/ |
D | DataIntegrityChecker.java | 241 KeyGenerator keyGenerator = KeyGenerator in getOrCreateSecretKey() local 250 keyGenerator.init(keyGenParameterSpec); in getOrCreateSecretKey() 251 secretKey = keyGenerator.generateKey(); in getOrCreateSecretKey()
|