Home
last modified time | relevance | path

Searched refs:keyStore (Results 1 – 25 of 28) 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)); in createMainDataStreamer()
192 KeyStore keyStore, IBinder operationToken) { in createAdditionalAuthenticationDataStreamer() argument
194 new AdditionalAuthenticationDataStream(keyStore, operationToken)); 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.java326 public MainDataStream(KeyStore keyStore, IBinder operationToken) { in MainDataStream() argument
327 mKeyStore = keyStore; in MainDataStream()
DAndroidKeyStoreSignatureSpiBase.java242 KeyStore keyStore, IBinder operationToken) { in createMainDataStreamer() argument
245 keyStore, operationToken)); in createMainDataStreamer()
DAndroidKeyStoreSecretKeyFactorySpi.java79 static KeyInfo getKeyInfo(KeyStore keyStore, String entryAlias, String keyAliasInKeystore, in getKeyInfo() argument
82 int errorCode = keyStore.getKeyCharacteristics( in getKeyInfo()
DAndroidKeyStoreCipherSpiBase.java299 KeyStore keyStore, IBinder operationToken) { in createMainDataStreamer() argument
302 keyStore, operationToken)); 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.java406 public RecoverableKeyStoreManager getRecoverableKeyStoreManager(KeyStore keyStore) { in getRecoverableKeyStoreManager() argument
407 return RecoverableKeyStoreManager.getInstance(mContext, keyStore); in getRecoverableKeyStoreManager()
822 java.security.KeyStore keyStore = in migrateOldData() local
824 keyStore.load(null); in migrateOldData()
825 if (keyStore.containsAlias(alias)) { in migrateOldData()
826 keyStore.deleteEntry(alias); in migrateOldData()
1150 java.security.KeyStore keyStore = java.security.KeyStore.getInstance("AndroidKeyStore"); in getDecryptedPasswordForTiedProfile() local
1151 keyStore.load(null); in getDecryptedPasswordForTiedProfile()
1152 SecretKey decryptionKey = (SecretKey) keyStore.getKey( in getDecryptedPasswordForTiedProfile()
1544 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.java111 KeyStoreProxy keyStore, in PlatformKeyManager() argument
113 mKeyStore = keyStore; in PlatformKeyManager()
490 KeyStore keyStore = KeyStore.getInstance(ANDROID_KEY_STORE_PROVIDER); in getAndLoadAndroidKeyStore() local
492 keyStore.load(/*param=*/ null); in getAndLoadAndroidKeyStore()
497 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.java98 PasspointConfigUserStoreData(WifiKeyStore keyStore, SIMAccessor simAccessor, in PasspointConfigUserStoreData() argument
100 mKeyStore = keyStore; in PasspointConfigUserStoreData()
DPasspointProvider.java105 public PasspointProvider(PasspointConfiguration config, WifiKeyStore keyStore, in PasspointProvider() argument
107 this(config, keyStore, simAccessor, providerId, creatorUid, packageName, null, null, null, in PasspointProvider()
111 public PasspointProvider(PasspointConfiguration config, WifiKeyStore keyStore, in PasspointProvider() argument
119 mKeyStore = keyStore; in PasspointProvider()
/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/
DDataIntegrityChecker.java228 KeyStore keyStore = KeyStore.getInstance(KEY_STORE); in getOrCreateSecretKey() local
229 keyStore.load(null); in getOrCreateSecretKey()
230 if (keyStore.containsAlias(keyAlias)) { // The key exists in key store. Get the key. in getOrCreateSecretKey()
231 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/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/opt/net/wifi/service/java/com/android/server/wifi/
DWifiKeyStore.java54 WifiKeyStore(KeyStore keyStore) { in WifiKeyStore() argument
55 mKeyStore = keyStore; in WifiKeyStore()
DWifiConfigurationUtil.java295 KeyStore keyStore = AndroidKeyStoreProvider.getKeyStoreForUid(uid); in obtainMacRandHashFunction() local
297 Key key = keyStore.getKey(MAC_RANDOMIZATION_ALIAS, null); in obtainMacRandHashFunction()
DWifiNetworkSuggestionsManager.java387 WifiKeyStore keyStore) { in WifiNetworkSuggestionsManager() argument
400 mWifiKeyStore = keyStore; in WifiNetworkSuggestionsManager()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java1716 public void startLegacyVpn(VpnProfile profile, KeyStore keyStore, LinkProperties egress) { in startLegacyVpn() argument
1720 startLegacyVpnPrivileged(profile, keyStore, egress); in startLegacyVpn()
1732 public void startLegacyVpnPrivileged(VpnProfile profile, KeyStore keyStore, in startLegacyVpnPrivileged() argument
1752 byte[] value = keyStore.get(Credentials.USER_CERTIFICATE + profile.ipsecUserCert); in startLegacyVpnPrivileged()
1756 byte[] value = keyStore.get(Credentials.CA_CERTIFICATE + profile.ipsecCaCert); in startLegacyVpnPrivileged()
1760 byte[] value = keyStore.get(Credentials.USER_CERTIFICATE + profile.ipsecServerCert); in startLegacyVpnPrivileged()

12