Home
last modified time | relevance | path

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

12

/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreProvider.java229 private static KeyCharacteristics getKeyCharacteristics(@NonNull KeyStore keyStore, in getKeyCharacteristics() argument
233 int errorCode = keyStore.getKeyCharacteristics( in getKeyCharacteristics()
251 @NonNull KeyStore keyStore, @NonNull String privateKeyAlias, int uid, in loadAndroidKeyStorePublicKeyFromKeystore()
254 ExportResult exportResult = keyStore.exportKey( in loadAndroidKeyStorePublicKeyFromKeystore()
284 @NonNull KeyStore keyStore, @NonNull String privateKeyAlias, int uid) in loadAndroidKeyStorePublicKeyFromKeystore()
286 return loadAndroidKeyStorePublicKeyFromKeystore(keyStore, privateKeyAlias, uid, in loadAndroidKeyStorePublicKeyFromKeystore()
287 getKeyCharacteristics(keyStore, privateKeyAlias, uid)); in loadAndroidKeyStorePublicKeyFromKeystore()
292 @NonNull KeyStore keyStore, @NonNull String privateKeyAlias, int uid, in loadAndroidKeyStoreKeyPairFromKeystore()
296 loadAndroidKeyStorePublicKeyFromKeystore(keyStore, privateKeyAlias, uid, in loadAndroidKeyStoreKeyPairFromKeystore()
305 @NonNull KeyStore keyStore, @NonNull String privateKeyAlias, int uid) in loadAndroidKeyStoreKeyPairFromKeystore()
[all …]
DKeyStoreCryptoOperationUtils.java46 KeyStore keyStore, AndroidKeyStoreKey key, int beginOpResultCode) { in getInvalidKeyExceptionForInit() argument
54 keyStore.getInvalidKeyException(key.getAlias(), key.getUid(), beginOpResultCode); in getInvalidKeyExceptionForInit()
75 KeyStore keyStore, AndroidKeyStoreKey key, int beginOpResultCode) { in getExceptionForCipherInit() argument
89 return getInvalidKeyExceptionForInit(keyStore, key, beginOpResultCode); in getExceptionForCipherInit()
DAndroidKeyStoreAuthenticatedAESCipherSpi.java176 KeyStore keyStore, IBinder operationToken) { in createMainDataStreamer() argument
179 keyStore, operationToken), 0); in createMainDataStreamer()
192 KeyStore keyStore, IBinder operationToken) { in createAdditionalAuthenticationDataStreamer() argument
194 new AdditionalAuthenticationDataStream(keyStore, operationToken), 0); in createAdditionalAuthenticationDataStreamer()
408 private AdditionalAuthenticationDataStream(KeyStore keyStore, IBinder operationToken) { in AdditionalAuthenticationDataStream() argument
409 mKeyStore = keyStore; in AdditionalAuthenticationDataStream()
DAndroidKeyStoreECDSASignatureSpi.java46 protected KeyStoreCryptoOperationStreamer createMainDataStreamer(KeyStore keyStore, in createMainDataStreamer() argument
49 super.createMainDataStreamer(keyStore, operationToken), in createMainDataStreamer()
DKeyStoreCryptoOperationChunkedStreamer.java210 public MainDataStream(KeyStore keyStore, IBinder operationToken) { in MainDataStream() argument
211 mKeyStore = keyStore; in MainDataStream()
DAndroidKeyStoreSecretKeyFactorySpi.java79 static KeyInfo getKeyInfo(KeyStore keyStore, String entryAlias, String keyAliasInKeystore, in getKeyInfo() argument
82 int errorCode = keyStore.getKeyCharacteristics( in getKeyInfo()
DAndroidKeyStoreSignatureSpiBase.java242 KeyStore keyStore, IBinder operationToken) { in createMainDataStreamer() argument
245 keyStore, operationToken)); in createMainDataStreamer()
DAndroidKeyStoreCipherSpiBase.java299 KeyStore keyStore, IBinder operationToken) { in createMainDataStreamer() argument
302 keyStore, operationToken), 0); in createMainDataStreamer()
314 @SuppressWarnings("unused") KeyStore keyStore, in createAdditionalAuthenticationDataStreamer()
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordCrypto.java126 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in decryptBlobV1() local
127 keyStore.load(null); in decryptBlobV1()
129 SecretKey decryptionKey = (SecretKey) keyStore.getKey(keyAlias, null); in decryptBlobV1()
140 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in decryptBlob() local
141 keyStore.load(null); in decryptBlob()
143 SecretKey decryptionKey = (SecretKey) keyStore.getKey(keyAlias, null); in decryptBlob()
161 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createBlob() local
162 keyStore.load(null); in createBlob()
173 keyStore.setEntry(keyAlias, in createBlob()
189 KeyStore keyStore; in destroyBlobKey() local
[all …]
DLockSettingsService.java429 public RecoverableKeyStoreManager getRecoverableKeyStoreManager(KeyStore keyStore) { in getRecoverableKeyStoreManager() argument
430 return RecoverableKeyStoreManager.getInstance(mContext, keyStore); in getRecoverableKeyStoreManager()
846 java.security.KeyStore keyStore = in migrateOldData() local
848 keyStore.load(null); in migrateOldData()
849 if (keyStore.containsAlias(alias)) { in migrateOldData()
850 keyStore.deleteEntry(alias); in migrateOldData()
1174 java.security.KeyStore keyStore = java.security.KeyStore.getInstance("AndroidKeyStore"); in getDecryptedPasswordForTiedProfile() local
1175 keyStore.load(null); in getDecryptedPasswordForTiedProfile()
1176 SecretKey decryptionKey = (SecretKey) keyStore.getKey( in getDecryptedPasswordForTiedProfile()
1596 java.security.KeyStore keyStore = java.security.KeyStore.getInstance("AndroidKeyStore"); in tieProfileLockToParent() local
[all …]
/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.java112 KeyStoreProxy keyStore, in PlatformKeyManager() argument
114 mKeyStore = keyStore; in PlatformKeyManager()
497 KeyStore keyStore = KeyStore.getInstance(ANDROID_KEY_STORE_PROVIDER); in getAndLoadAndroidKeyStore() local
499 keyStore.load(/*param=*/ null); in getAndLoadAndroidKeyStore()
504 return keyStore; in getAndLoadAndroidKeyStore()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProvisioningTestUtil.java108 KeyStore keyStore = null; in createFakeKeyStore() local
111 keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in createFakeKeyStore()
112 keyStore.load(null, null); in createFakeKeyStore()
115 keyStore.setCertificateEntry(String.format("%d", index), cert); in createFakeKeyStore()
122 return keyStore; in createFakeKeyStore()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointObjectFactory.java61 WifiKeyStore keyStore, SIMAccessor simAccessor, long providerId, int creatorUid, in makePasspointProvider() argument
63 return new PasspointProvider(config, keyStore, simAccessor, providerId, creatorUid, in makePasspointProvider()
75 public PasspointConfigUserStoreData makePasspointConfigUserStoreData(WifiKeyStore keyStore, in makePasspointConfigUserStoreData() argument
77 return new PasspointConfigUserStoreData(keyStore, simAccessor, dataSource); in makePasspointConfigUserStoreData()
DPasspointConfigUserStoreData.java100 PasspointConfigUserStoreData(WifiKeyStore keyStore, SIMAccessor simAccessor, in PasspointConfigUserStoreData() argument
102 mKeyStore = keyStore; in PasspointConfigUserStoreData()
DPasspointProvider.java106 public PasspointProvider(PasspointConfiguration config, WifiKeyStore keyStore, in PasspointProvider() argument
108 this(config, keyStore, simAccessor, providerId, creatorUid, packageName, null, null, null, in PasspointProvider()
112 public PasspointProvider(PasspointConfiguration config, WifiKeyStore keyStore, in PasspointProvider() argument
120 mKeyStore = keyStore; in PasspointProvider()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java256 @UserIdInt int userHandle, @NonNull KeyStore keyStore) { in Vpn() argument
257 this(looper, context, netService, userHandle, keyStore, in Vpn()
263 int userHandle, @NonNull KeyStore keyStore, SystemServices systemServices, in Vpn() argument
289 loadAlwaysOnPackage(keyStore); in Vpn()
464 public boolean isAlwaysOnPackageSupported(String packageName, @NonNull KeyStore keyStore) { in isAlwaysOnPackageSupported() argument
473 if (getVpnProfilePrivileged(packageName, keyStore) != null) { in isAlwaysOnPackageSupported()
532 @NonNull KeyStore keyStore) { in setAlwaysOnPackage() argument
535 if (setAlwaysOnPackageInternal(packageName, lockdown, lockdownWhitelist, keyStore)) { in setAlwaysOnPackage()
558 @Nullable List<String> lockdownWhitelist, @NonNull KeyStore keyStore) { in setAlwaysOnPackageInternal() argument
577 profile = getVpnProfilePrivileged(packageName, keyStore); in setAlwaysOnPackageInternal()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsServiceTestable.java51 public MockInjector(Context context, LockSettingsStorage storage, KeyStore keyStore, in MockInjector() argument
58 mKeyStore = keyStore; in MockInjector()
128 public RecoverableKeyStoreManager getRecoverableKeyStoreManager(KeyStore keyStore) { in getRecoverableKeyStoreManager() argument
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiConfigStoreEncryptionUtil.java145 KeyStore keyStore = AndroidKeyStoreProvider.getKeyStoreForUid(Process.WIFI_UID); in getOrCreateSecretKey() local
146 if (keyStore.containsAlias(keyAlias)) { // The key exists in key store. Get the key. in getOrCreateSecretKey()
147 KeyStore.SecretKeyEntry secretKeyEntry = (KeyStore.SecretKeyEntry) keyStore in getOrCreateSecretKey()
/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.java62 KeyStore keyStore = KeyStore.getInstance(ANDROID_KEY_STORE_PROVIDER); in tearDown() local
63 keyStore.load(/*param=*/ null); in tearDown()
64 keyStore.deleteEntry(WRAPPED_KEY_ALIAS); in tearDown()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DMacAddressUtil.java98 KeyStore keyStore = AndroidKeyStoreProvider.getKeyStoreForUid(uid); in obtainMacRandHashFunction() local
100 Key key = keyStore.getKey(MAC_RANDOMIZATION_ALIAS, null); in obtainMacRandHashFunction()
DWifiKeyStore.java54 WifiKeyStore(KeyStore keyStore) { in WifiKeyStore() argument
55 mKeyStore = keyStore; in WifiKeyStore()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DApplicationKeyStorage.java62 ApplicationKeyStorage(KeyStoreProxy keyStore, KeyStore keystoreService) { in ApplicationKeyStorage() argument
63 mKeyStore = keyStore; in ApplicationKeyStorage()
/frameworks/base/core/java/android/net/
DIkev2VpnProfile.java461 @NonNull VpnProfile profile, @Nullable KeyStore keyStore) in fromVpnProfile() argument
486 Objects.requireNonNull(keyStore, "Missing Keystore for aliased PrivateKey"); in fromVpnProfile()
491 keyStore, alias, Process.myUid()); in fromVpnProfile()

12