Home
last modified time | relevance | path

Searched refs:keyAlias (Results 1 – 1 of 1) 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 …]