Lines Matching refs:sk_dev

659     SoftKeymasterDevice* sk_dev = convert_device(dev);  in add_rng_entropy()  local
660 return add_rng_entropy(&sk_dev->km1_device_, data, data_length); in add_rng_entropy()
748 SoftKeymasterDevice* sk_dev = convert_device(dev); in generate_key() local
753 keymaster1_device_t* km1_dev = sk_dev->wrapped_km1_device_; in generate_key()
754 if (km1_dev && !sk_dev->KeyRequiresSoftwareDigesting(request.key_description)) in generate_key()
758 sk_dev->impl_->GenerateKey(request, &response); in generate_key()
798 SoftKeymasterDevice* sk_dev = convert_device(dev); in generate_key() local
803 keymaster1_device_t* km1_dev = sk_dev->wrapped_km1_device_; in generate_key()
804 if (km1_dev && !sk_dev->KeyRequiresSoftwareDigesting(request.key_description)) { in generate_key()
840 sk_dev->impl_->GenerateKey(request, &response); in generate_key()
917 SoftKeymasterDevice* sk_dev = convert_device(dev); in get_key_characteristics() local
924 sk_dev->impl_->GetKeyCharacteristics(request, &response); in get_key_characteristics()
945 SoftKeymasterDevice* sk_dev = convert_device(dev); in import_key() local
950 keymaster1_device_t* km1_dev = sk_dev->wrapped_km1_device_; in import_key()
951 if (km1_dev && !sk_dev->KeyRequiresSoftwareDigesting(request.key_description)) in import_key()
992 SoftKeymasterDevice* sk_dev = convert_device(dev); in import_key() local
997 error = import_key(&sk_dev->km1_device_, params, key_format, key_data, key_blob, in import_key()
1004 error = import_key(&sk_dev->km1_device_, params, key_format, key_data, key_blob, nullptr); in import_key()
1063 SoftKeymasterDevice* sk_dev = convert_device(dev); in export_key() local
1064 return export_key(&sk_dev->km1_device_, export_format, key_to_export, client_id, app_data, in export_key()
1285 SoftKeymasterDevice* sk_dev = convert_device(dev); in begin() local
1286 return begin(&sk_dev->km1_device_, purpose, key, in_params, out_params, operation_handle); in begin()
1366 SoftKeymasterDevice* sk_dev = convert_device(dev); in update() local
1367 return update(&sk_dev->km1_device_, operation_handle, in_params, input, input_consumed, in update()
1615 SoftKeymasterDevice* sk_dev = convert_device(dev); in abort() local
1616 return abort(&sk_dev->km1_device_, operation_handle); in abort()