Searched refs:encryptedKey (Results 1 – 3 of 3) sorted by relevance
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/storage/ |
D | AssociatedDeviceKeyEntity.java | 33 public String encryptedKey; field in AssociatedDeviceKeyEntity 37 public AssociatedDeviceKeyEntity(String deviceId, String encryptedKey) { in AssociatedDeviceKeyEntity() argument 39 this.encryptedKey = encryptedKey; in AssociatedDeviceKeyEntity()
|
D | ConnectedDeviceStorage.java | 126 String[] values = entity.encryptedKey.split(IV_SPEC_SEPARATOR, -1); in getEncryptionKey() 133 byte[] encryptedKey = Base64.decode(values[0], Base64.DEFAULT); in getEncryptionKey() 135 return decryptWithKeyStore(KEY_ALIAS, encryptedKey, ivSpec); in getEncryptionKey() 145 String encryptedKey = encryptWithKeyStore(KEY_ALIAS, encryptionKey); in saveEncryptionKey() local 146 AssociatedDeviceKeyEntity entity = new AssociatedDeviceKeyEntity(deviceId, encryptedKey); in saveEncryptionKey()
|
/packages/services/Car/service/src/com/android/car/trust/ |
D | CarTrustedDeviceService.java | 262 byte[] encryptedKey = Base64.decode(values[0], Base64.DEFAULT); in getEncryptionKey() 264 return decryptWithKeyStore(KEY_ALIAS, encryptedKey, ivSpec); in getEncryptionKey() 278 String encryptedKey = encryptWithKeyStore(KEY_ALIAS, encryptionKey); in saveEncryptionKey() local 279 if (encryptedKey == null) { in saveEncryptionKey() 288 .putString(PREF_ENCRYPTION_KEY_PREFIX + deviceId, encryptedKey) in saveEncryptionKey()
|