Home
last modified time | relevance | path

Searched refs:keyAlias (Results 1 – 2 of 2) sorted by relevance

/packages/services/Car/service/src/com/android/car/trust/
DCarTrustedDeviceService.java337 String encryptWithKeyStore(String keyAlias, byte[] value) { in encryptWithKeyStore() argument
342 Key key = getKeyStoreKey(keyAlias); in encryptWithKeyStore()
356 Log.e(TAG, "Unable to encrypt value with key " + keyAlias, e); in encryptWithKeyStore()
369 byte[] decryptWithKeyStore(String keyAlias, byte[] value, byte[] ivSpec) { in decryptWithKeyStore() argument
375 Key key = getKeyStoreKey(keyAlias); in decryptWithKeyStore()
387 Log.e(TAG, "Unable to decrypt value with key " + keyAlias, e); in decryptWithKeyStore()
392 private Key getKeyStoreKey(String keyAlias) { in getKeyStoreKey() argument
397 if (!keyStore.containsAlias(keyAlias)) { in getKeyStoreKey()
401 new KeyGenParameterSpec.Builder(keyAlias, in getKeyStoreKey()
408 return keyStore.getKey(keyAlias, null); in getKeyStoreKey()
[all …]
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/storage/
DConnectedDeviceStorage.java165 private String encryptWithKeyStore(@NonNull String keyAlias, @Nullable byte[] value) { in encryptWithKeyStore() argument
171 Key key = getKeyStoreKey(keyAlias); in encryptWithKeyStore()
184 loge(TAG, "Unable to encrypt value with key " + keyAlias, e); in encryptWithKeyStore()
198 @NonNull String keyAlias, @Nullable byte[] value, @NonNull byte[] ivSpec) { in decryptWithKeyStore()
204 Key key = getKeyStoreKey(keyAlias); in decryptWithKeyStore()
217 loge(TAG, "Unable to decrypt value with key " + keyAlias, e); in decryptWithKeyStore()
223 private static Key getKeyStoreKey(@NonNull String keyAlias) { in getKeyStoreKey() argument
228 if (!keyStore.containsAlias(keyAlias)) { in getKeyStoreKey()
234 keyAlias, in getKeyStoreKey()
241 return keyStore.getKey(keyAlias, null); in getKeyStoreKey()
[all …]