Home
last modified time | relevance | path

Searched refs:generateKey (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DWrappedKeyTest.java72 SecretKey rawKey = generateKey(); in fromSecretKey_createsWrappedKeyThatCanBeUnwrapped_nullMetadata()
91 SecretKey rawKey = generateKey(); in fromSecretKey_createsWrappedKeyThatCanBeUnwrapped_nonNullMetadata()
109 SecretKey rawKey = generateKey(); in fromSecretKey_returnsAKeyWithTheGenerationIdOfTheWrappingKey()
120 SecretKey appKey = generateKey(); in decryptWrappedKeys_decryptsWrappedKeys_nullMetadata()
139 SecretKey appKey = generateKey(); in decryptWrappedKeys_decryptsWrappedKeys_nonNullMetadata()
158 SecretKey appKey = generateKey(); in decryptWrappedKeys_doesNotDieIfSomeKeysAreUnwrappable()
175 new PlatformEncryptionKey(GENERATION_ID, platformKey), generateKey(), in decryptWrappedKeys_throwsIfPlatformKeyGenerationIdDoesNotMatch()
193 private SecretKey generateKey() throws Exception { in generateKey() method in WrappedKeyTest
196 return keyGenerator.generateKey(); in generateKey()
209 return keyGenerator.generateKey(); in generateAndroidKeyStoreKey()
DTestOnlyInsecureCertificateHelperTest.java83 rawKeys.put(alias, Pair.create(TestData.generateKey(), /*metadata=*/ null)); in testKeepOnlyWhitelistedInsecureKeys_singleNonWhitelistedKey()
97 rawKeys.put(alias, Pair.create(TestData.generateKey(), /*metadata=*/ null)); in testKeepOnlyWhitelistedInsecureKeys_singleWhitelistedKey()
112 rawKeys.put(alias, Pair.create(TestData.generateKey(), /*metadata=*/ null)); in testKeepOnlyWhitelistedInsecureKeys()
115 rawKeys.put(alias, Pair.create(TestData.generateKey(), /*metadata=*/ null)); in testKeepOnlyWhitelistedInsecureKeys()
119 rawKeys.put(alias, Pair.create(TestData.generateKey(), /*metadata=*/ null)); in testKeepOnlyWhitelistedInsecureKeys()
DTestData.java176 public static SecretKey generateKey() throws Exception { in generateKey() method in TestData
179 return keyGenerator.generateKey(); in generateKey()
DKeySyncTaskTest.java244 SecretKey applicationKey = generateKey(); in run_doesNotSendAnythingIfNoRecoveryAgentSet()
260 SecretKey applicationKey = generateKey(); in run_doesNotSendAnythingIfNoDeviceIdIsSet()
907 SecretKey applicationKey = generateKey(); in addApplicationKey()
934 private SecretKey generateKey() throws Exception { in generateKey() method in KeySyncTaskTest
937 return keyGenerator.generateKey(); in generateKey()
949 return keyGenerator.generateKey(); in generateAndroidKeyStoreKey()
DRecoverableKeyGeneratorTest.java180 return keyGenerator.generateKey(); in generatePlatformKey()
DRecoverableKeyStoreManagerTest.java345 mRecoverableKeyStoreManager.generateKey(TEST_ALIAS); in removeKey_removesAKey()
356 mRecoverableKeyStoreManager.generateKey(TEST_ALIAS); in removeKey_updatesShouldCreateSnapshot()
1534 return keyGenerator.generateKey(); in generateAndroidKeyStoreKey()
/frameworks/base/services/core/java/com/android/server/accounts/
DCryptoHelper.java50 mEncryptionKey = kgen.generateKey(); in CryptoHelper()
53 mMacKey = kgen.generateKey(); in CryptoHelper()
/frameworks/base/services/core/java/com/android/server/locksettings/
DRebootEscrowKey.java53 secretKey = keyGenerator.generateKey(); in generate()
DRebootEscrowKeyStoreManager.java119 return generator.generateKey(); in generateKeyStoreEncryptionKeyIfNeeded()
DUnifiedProfilePasswordCache.java102 key = generator.generateKey(); in storePassword()
DSyntheticPasswordCrypto.java206 SecretKey protectorKey = keyGenerator.generateKey(); in createBlob()
/frameworks/base/keystore/java/android/security/
DKeyStoreSecurityLevel.java144 public KeyMetadata generateKey(@NonNull KeyDescriptor descriptor, KeyDescriptor attestationKey, in generateKey() method in KeyStoreSecurityLevel
149 return handleExceptions(() -> mSecurityLevel.generateKey( in generateKey()
DSystemKeyStore.java85 SecretKey sk = skg.generateKey(); in generateNewKey()
/frameworks/base/core/java/android/security/keystore/recovery/
DRecoveryController.java550 public @NonNull Key generateKey(@NonNull String alias) throws InternalRecoveryServiceException, in generateKey() method in RecoveryController
553 String grantAlias = mBinder.generateKey(alias); in generateKey()
591 public @NonNull Key generateKey(@NonNull String alias, @Nullable byte[] metadata) in generateKey() method in RecoveryController
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/
DCipherInputStreamPerfTest.java73 mKey = generator.generateKey(); in setUp()
DCipherPerfTest.java151 mKey = generator.generateKey(); in setUp()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DRecoverableKeyGenerator.java102 SecretKey key = mKeyGenerator.generateKey(); in generateAndStoreKey()
DKeySyncUtils.java145 return keyGenerator.generateKey(); in generateRecoveryKey()
DPlatformKeyManager.java471 return keyGenerator.generateKey(); in generateAesKey()
DKeySyncTask.java526 return keyGenerator.generateKey(); in generateRecoveryKey()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DRebootEscrowDataTest.java56 public void generateKey() throws Exception { in generateKey() method in RebootEscrowDataTest
/frameworks/base/core/java/com/android/internal/widget/
DILockSettings.aidl80 String generateKey(String alias); in generateKey() method
/frameworks/base/media/jni/soundpool/
DStreamManager.h228 K generateKey(V value, std::function<K(V)> getKforV, K oldKey = 0) {
DStreamManager.cpp91 const int32_t id = mPerfectHash->generateKey( in getNextIdForStream()
/frameworks/base/keystore/java/android/security/keystore2/
DAndroidKeyStoreKeyGeneratorSpi.java402 metadata = iSecurityLevel.generateKey( in engineGenerateKey()

12