Home
last modified time | relevance | path

Searched refs:keyStore (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DKeyStoreProxyImpl.java39 public KeyStoreProxyImpl(KeyStore keyStore) { in KeyStoreProxyImpl() argument
40 mKeyStore = keyStore; in KeyStoreProxyImpl()
72 KeyStore keyStore = KeyStore.getInstance(ANDROID_KEY_STORE_PROVIDER); in getAndLoadAndroidKeyStore() local
74 keyStore.load(/*param=*/ null); in getAndLoadAndroidKeyStore()
79 return keyStore; in getAndLoadAndroidKeyStore()
DPlatformKeyManager.java110 KeyStoreProxy keyStore, in PlatformKeyManager() argument
112 mKeyStore = keyStore; in PlatformKeyManager()
472 KeyStore keyStore = KeyStore.getInstance(KeyStoreProxyImpl.ANDROID_KEY_STORE_PROVIDER); in getAndLoadAndroidKeyStore() local
474 keyStore.load(/*param=*/ null); in getAndLoadAndroidKeyStore()
479 return keyStore; in getAndLoadAndroidKeyStore()
/frameworks/base/services/core/java/com/android/server/locksettings/
DRebootEscrowKeyStoreManager.java66 KeyStore keyStore = KeyStore.getInstance(ANDROID_KEY_STORE_PROVIDER); in getKeyStoreEncryptionKeyLocked() local
70 keyStore.load(loadStoreParameter); in getKeyStoreEncryptionKeyLocked()
71 return (SecretKey) keyStore.getKey(REBOOT_ESCROW_KEY_STORE_ENCRYPTION_KEY_NAME, in getKeyStoreEncryptionKeyLocked()
88 KeyStore keyStore = KeyStore.getInstance(ANDROID_KEY_STORE_PROVIDER); in clearKeyStoreEncryptionKey() local
92 keyStore.load(loadStoreParameter); in clearKeyStoreEncryptionKey()
93 keyStore.deleteEntry(REBOOT_ESCROW_KEY_STORE_ENCRYPTION_KEY_NAME); in clearKeyStoreEncryptionKey()
DSyntheticPasswordCrypto.java132 KeyStore keyStore = getKeyStore(); in decryptBlobV1() local
133 SecretKey decryptionKey = (SecretKey) keyStore.getKey(keyAlias, null); in decryptBlobV1()
155 KeyStore keyStore = KeyStore.getInstance(androidKeystoreProviderName()); in getKeyStore() local
156 keyStore.load(new AndroidKeyStoreLoadStoreParameter(keyNamespace())); in getKeyStore()
157 return keyStore; in getKeyStore()
162 final KeyStore keyStore = getKeyStore(); in decryptBlob() local
164 SecretKey decryptionKey = (SecretKey) keyStore.getKey(keyAlias, null); in decryptBlob()
185 final KeyStore keyStore = getKeyStore(); in createBlob() local
196 keyStore.setEntry(keyAlias, in createBlob()
212 KeyStore keyStore; in destroyBlobKey() local
[all …]
DManagedProfilePasswordCache.java72 public ManagedProfilePasswordCache(KeyStore keyStore, UserManager userManager) { in ManagedProfilePasswordCache() argument
73 mKeyStore = keyStore; in ManagedProfilePasswordCache()
/frameworks/base/keystore/java/android/security/keystore2/
DAndroidKeyStoreProvider.java237 @NonNull KeyStore2 keyStore, @NonNull String privateKeyAlias, int namespace) in loadAndroidKeyStorePublicKeyFromKeystore()
240 loadAndroidKeyStoreKeyFromKeystore(keyStore, privateKeyAlias, namespace); in loadAndroidKeyStorePublicKeyFromKeystore()
251 @NonNull KeyStore2 keyStore, @NonNull KeyDescriptor descriptor) in loadAndroidKeyStoreKeyPairFromKeystore()
254 loadAndroidKeyStoreKeyFromKeystore(keyStore, descriptor); in loadAndroidKeyStoreKeyPairFromKeystore()
266 @NonNull KeyStore2 keyStore, @NonNull String privateKeyAlias, int namespace) in loadAndroidKeyStorePrivateKeyFromKeystore()
269 loadAndroidKeyStoreKeyFromKeystore(keyStore, privateKeyAlias, namespace); in loadAndroidKeyStorePrivateKeyFromKeystore()
280 @NonNull KeyStore2 keyStore, @NonNull KeyDescriptor descriptor) in loadAndroidKeyStoreSecretKeyFromKeystore()
284 loadAndroidKeyStoreKeyFromKeystore(keyStore, descriptor); in loadAndroidKeyStoreSecretKeyFromKeystore()
326 @NonNull KeyStore2 keyStore, @NonNull String alias, int namespace) in loadAndroidKeyStoreKeyFromKeystore()
339 final AndroidKeyStoreKey key = loadAndroidKeyStoreKeyFromKeystore(keyStore, descriptor); in loadAndroidKeyStoreKeyFromKeystore()
[all …]
/frameworks/base/keystore/java/android/security/keystore/
DAttestationUtils.java165 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in attestDeviceIds() local
166 keyStore.load(null); in attestDeviceIds()
168 Certificate[] certs = keyStore.getCertificateChain(keystoreAlias); in attestDeviceIds()
172 keyStore.deleteEntry(keystoreAlias); in attestDeviceIds()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/testing/fakes/
DFakeCryptoBackupServer.java63 Map<String, WrappedKeyProto.WrappedKey> keyStore = mWrappedKeyStore.get(keyAlias); in setActiveSecondaryKeyAlias() local
66 keyStore.put(packageName, tertiaryKeys.get(packageName)); in setActiveSecondaryKeyAlias()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DRecoverableKeyGeneratorTest.java88 KeyStore keyStore = KeyStore.getInstance(ANDROID_KEY_STORE_PROVIDER); in tearDown() local
89 keyStore.load(/*param=*/ null); in tearDown()
90 keyStore.deleteEntry(WRAPPING_KEY_ALIAS); in tearDown()
DWrappedKeyTest.java61 KeyStore keyStore = KeyStore.getInstance(ANDROID_KEY_STORE_PROVIDER); in tearDown() local
62 keyStore.load(/*param=*/ null); in tearDown()
63 keyStore.deleteEntry(WRAPPED_KEY_ALIAS); in tearDown()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DApplicationKeyStorage.java66 ApplicationKeyStorage(KeyStoreProxy keyStore) { in ApplicationKeyStorage() argument
67 mKeyStore = keyStore; in ApplicationKeyStorage()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsServiceTestable.java56 public MockInjector(Context context, LockSettingsStorage storage, KeyStore keyStore, in MockInjector() argument
64 mKeyStore = keyStore; in MockInjector()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DPinStorage.java1009 KeyStore keyStore = null; in initializeKeyStore() local
1011 keyStore = KeyStore.getInstance(ANDROID_KEY_STORE_PROVIDER); in initializeKeyStore()
1012 keyStore.load(/*param=*/ null); in initializeKeyStore()
1019 return keyStore; in initializeKeyStore()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java22557 final KeyStore keyStore = KeyStore.getInstance(); in removeKeystoreDataIfNeeded() local
22558 if (keyStore != null) { in removeKeystoreDataIfNeeded()
22561 keyStore.clearUid(UserHandle.getUid(individual, appId)); in removeKeystoreDataIfNeeded()
22564 keyStore.clearUid(UserHandle.getUid(userId, appId)); in removeKeystoreDataIfNeeded()