Home
last modified time | relevance | path

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

/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/
DTertiaryKeyGenerator.java28 private static final String KEY_ALGORITHM = "AES"; field in TertiaryKeyGenerator
35 mKeyGenerator = KeyGenerator.getInstance(KEY_ALGORITHM); in TertiaryKeyGenerator()
DKeyWrapUtils.java38 private static final String KEY_ALGORITHM = "AES"; field in KeyWrapUtils
79 return (SecretKey) cipher.unwrap(wrappedKey.key, KEY_ALGORITHM, Cipher.SECRET_KEY); in unwrap()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DWrappedKeyTest.java49 private static final String KEY_ALGORITHM = "AES"; field in WrappedKeyTest
82 wrappedKey.getKeyMaterial(), KEY_ALGORITHM, Cipher.SECRET_KEY); in fromSecretKey_createsWrappedKeyThatCanBeUnwrapped_nullMetadata()
101 wrappedKey.getKeyMaterial(), KEY_ALGORITHM, Cipher.SECRET_KEY); in fromSecretKey_createsWrappedKeyThatCanBeUnwrapped_nonNullMetadata()
194 KeyGenerator keyGenerator = KeyGenerator.getInstance(KEY_ALGORITHM); in generateKey()
201 KEY_ALGORITHM, in generateAndroidKeyStoreKey()
DTestData.java40 private static final String KEY_ALGORITHM = "AES"; field in TestData
178 KeyGenerator keyGenerator = KeyGenerator.getInstance(KEY_ALGORITHM); in generateKey()
DRecoverableKeyGeneratorTest.java56 private static final String KEY_ALGORITHM = "AES"; field in RecoverableKeyGeneratorTest
173 KEY_ALGORITHM, in generatePlatformKey()
DPlatformKeyManagerTest.java72 private static final String KEY_ALGORITHM = "AES"; field in PlatformKeyManagerTest
580 KEY_ALGORITHM, in generateAndroidKeyStoreKey()
DKeySyncTaskTest.java83 private static final String KEY_ALGORITHM = "AES"; field in KeySyncTaskTest
845 KeyGenerator keyGenerator = KeyGenerator.getInstance(KEY_ALGORITHM); in generateKey()
852 KEY_ALGORITHM, in generateAndroidKeyStoreKey()
DRecoverableKeyStoreManagerTest.java142 private static final String KEY_ALGORITHM = "AES"; field in RecoverableKeyStoreManagerTest
1315 KEY_ALGORITHM, in generateAndroidKeyStoreKey()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/
DTertiaryKeyGeneratorTest.java36 private static final String KEY_ALGORITHM = "AES"; field in TertiaryKeyGeneratorTest
52 assertThat(secretKey.getAlgorithm()).isEqualTo(KEY_ALGORITHM); in generate_generatesAESKeys()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/
DChunkHasherTest.java37 private static final String KEY_ALGORITHM = "AES"; field in ChunkHasherTest
48 mSecretKey = new SecretKeySpec(TEST_KEY, KEY_ALGORITHM); in setUp()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/cdc/
DFingerprintMixerTest.java42 private static final String KEY_ALGORITHM = "AES"; field in FingerprintMixerTest
79 new UnencodableSecretKeySpec(keyBytes, 0, keyBytes.length, KEY_ALGORITHM); in create_withUnencodableSecretKey_throwsInvalidKeyException()
184 return new SecretKeySpec(keyBytes, 0, keyBytes.length, KEY_ALGORITHM); in randomKey()
/frameworks/base/services/core/java/com/android/server/accounts/
DCryptoHelper.java30 private static final String KEY_ALGORITHM = "AES"; field in CryptoHelper
49 KeyGenerator kgen = KeyGenerator.getInstance(KEY_ALGORITHM); in CryptoHelper()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/testing/
DCryptoTestUtils.java37 private static final String KEY_ALGORITHM = "AES"; field in CryptoTestUtils
43 KeyGenerator keyGenerator = KeyGenerator.getInstance(KEY_ALGORITHM); in generateAesKey()
/frameworks/base/packages/BackupEncryption/test/robolectric-integration/src/com/android/server/backup/encryption/
DRoundTripTest.java89 private static final String KEY_ALGORITHM = "AES"; field in RoundTripTest
263 KeyGenerator keyGenerator = KeyGenerator.getInstance(KEY_ALGORITHM); in generateAesKey()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DPlatformKeyManager.java72 private static final String KEY_ALGORITHM = "AES"; field in PlatformKeyManager
460 KeyGenerator keyGenerator = KeyGenerator.getInstance(KEY_ALGORITHM); in generateAesKey()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/
DKvBackupEncrypterTest.java62 private static final String KEY_ALGORITHM = "AES"; field in KvBackupEncrypterTest
80 mSecretKey = new SecretKeySpec(TEST_TERTIARY_KEY, KEY_ALGORITHM); in setUp()