Lines Matching refs:convert_device
368 template <typename T> SoftKeymasterDevice* convert_device(const T* dev) { in convert_device() function
393 delete convert_device(reinterpret_cast<keymaster2_device_t*>(dev)); in close_device()
398 delete convert_device(reinterpret_cast<keymaster1_device_t*>(dev)); in close_device()
419 const keymaster1_device_t* km1_dev = convert_device(dev)->wrapped_km1_device_; in get_supported_algorithms()
425 convert_device(dev)->impl_->SupportedAlgorithms(request, &response); in get_supported_algorithms()
453 const keymaster1_device_t* km1_dev = convert_device(dev)->wrapped_km1_device_; in get_supported_block_modes()
461 convert_device(dev)->impl_->SupportedBlockModes(request, &response); in get_supported_block_modes()
489 const keymaster1_device_t* km1_dev = convert_device(dev)->wrapped_km1_device_; in get_supported_padding_modes()
498 convert_device(dev)->impl_->SupportedPaddingModes(request, &response); in get_supported_padding_modes()
525 const keymaster1_device_t* km1_dev = convert_device(dev)->wrapped_km1_device_; in get_supported_digests()
533 convert_device(dev)->impl_->SupportedDigests(request, &response); in get_supported_digests()
558 const keymaster1_device_t* km1_dev = convert_device(dev)->wrapped_km1_device_; in get_supported_import_formats()
565 convert_device(dev)->impl_->SupportedImportFormats(request, &response); in get_supported_import_formats()
591 const keymaster1_device_t* km1_dev = convert_device(dev)->wrapped_km1_device_; in get_supported_export_formats()
598 convert_device(dev)->impl_->SupportedExportFormats(request, &response); in get_supported_export_formats()
625 convert_device(dev)->impl_->Configure(request, &response); in configure()
627 convert_device(dev)->configured_ = true; in configure()
637 const keymaster1_device_t* km1_dev = convert_device(dev)->wrapped_km1_device_; in add_rng_entropy()
644 convert_device(dev)->impl_->AddRngEntropy(request, &response); in add_rng_entropy()
656 if (!convert_device(dev)->configured()) in add_rng_entropy()
659 SoftKeymasterDevice* sk_dev = convert_device(dev); in add_rng_entropy()
748 SoftKeymasterDevice* sk_dev = convert_device(dev); in generate_key()
792 if (!convert_device(dev)->configured()) in generate_key()
798 SoftKeymasterDevice* sk_dev = convert_device(dev); in generate_key()
870 const keymaster1_device_t* km1_dev = convert_device(dev)->wrapped_km1_device_; in get_key_characteristics()
886 convert_device(dev)->impl_->GetKeyCharacteristics(request, &response); in get_key_characteristics()
911 if (!convert_device(dev)->configured()) in get_key_characteristics()
917 SoftKeymasterDevice* sk_dev = convert_device(dev); in get_key_characteristics()
945 SoftKeymasterDevice* sk_dev = convert_device(dev); in import_key()
962 convert_device(dev)->impl_->ImportKey(request, &response); in import_key()
989 if (!convert_device(dev)->configured()) in import_key()
992 SoftKeymasterDevice* sk_dev = convert_device(dev); in import_key()
1023 const keymaster1_device_t* km1_dev = convert_device(dev)->wrapped_km1_device_; in export_key()
1037 convert_device(dev)->impl_->ExportKey(request, &response); in export_key()
1060 if (!convert_device(dev)->configured()) in export_key()
1063 SoftKeymasterDevice* sk_dev = convert_device(dev); in export_key()
1076 if (!convert_device(dev)->configured()) in attest_key()
1094 convert_device(dev)->impl_->AttestKey(request, &response); in attest_key()
1135 if (!convert_device(dev)->configured()) in upgrade_key()
1143 convert_device(dev)->impl_->UpgradeKey(request, &response); in upgrade_key()
1164 return convert_device(dev)->context_->DeleteKey(blob); in delete_key()
1173 if (!convert_device(dev)->configured()) in delete_key()
1177 return convert_device(dev)->context_->DeleteKey(blob); in delete_key()
1185 return convert_device(dev)->context_->DeleteAllKeys(); in delete_all_keys()
1193 if (!convert_device(dev)->configured()) in delete_all_keys()
1196 return convert_device(dev)->context_->DeleteAllKeys(); in delete_all_keys()
1212 SoftKeymasterDevice* skdev = convert_device(dev); in begin()
1282 if (!convert_device(dev)->configured()) in begin()
1285 SoftKeymasterDevice* sk_dev = convert_device(dev); in begin()
1302 const keymaster1_device_t* km1_dev = convert_device(dev)->wrapped_km1_device_; in update()
1303 if (km1_dev && !convert_device(dev)->impl_->has_operation(operation_handle)) { in update()
1328 convert_device(dev)->impl_->UpdateOperation(request, &response); in update()
1363 if (!convert_device(dev)->configured()) in update()
1366 SoftKeymasterDevice* sk_dev = convert_device(dev); in update()
1381 const keymaster1_device_t* km1_dev = convert_device(dev)->wrapped_km1_device_; in finish()
1382 if (km1_dev && !convert_device(dev)->impl_->has_operation(operation_handle)) { in finish()
1406 convert_device(dev)->impl_->FinishOperation(request, &response); in finish()
1445 if (!convert_device(dev)->configured()) in finish()
1454 const keymaster1_device_t* km1_dev = convert_device(dev)->wrapped_km1_device_; in finish()
1455 if (km1_dev && !convert_device(dev)->impl_->has_operation(operation_handle)) { in finish()
1564 convert_device(dev)->impl_->FinishOperation(request, &response); in finish()
1591 const keymaster1_device_t* km1_dev = convert_device(dev)->wrapped_km1_device_; in abort()
1592 if (km1_dev && !convert_device(dev)->impl_->has_operation(operation_handle)) { in abort()
1602 convert_device(dev)->impl_->AbortOperation(request, &response); in abort()
1612 if (!convert_device(dev)->configured()) in abort()
1615 SoftKeymasterDevice* sk_dev = convert_device(dev); in abort()