Home
last modified time | relevance | path

Searched refs:keymaster1_device (Results 1 – 9 of 9) sorted by relevance

/system/keymaster/include/keymaster/legacy_support/
Dkeymaster_passthrough_engine.h26 struct keymaster1_device;
27 typedef struct keymaster1_device keymaster1_device_t;
Dkeymaster1_engine.h41 explicit Keymaster1Engine(const keymaster1_device_t* keymaster1_device);
/system/keymaster/include/keymaster/contexts/
Dsoft_keymaster_context.h59 keymaster_error_t SetHardwareDevice(keymaster1_device_t* keymaster1_device);
123 keymaster1_device* km1_dev_;
/system/keymaster/contexts/
Dsoft_keymaster_context.cpp65 keymaster_error_t SoftKeymasterContext::SetHardwareDevice(keymaster1_device_t* keymaster1_device) { in SetHardwareDevice() argument
66 if (!keymaster1_device) return KM_ERROR_UNEXPECTED_NULL_POINTER; in SetHardwareDevice()
68 km1_dev_ = keymaster1_device; in SetHardwareDevice()
70 km1_engine_.reset(new Keymaster1Engine(keymaster1_device)); in SetHardwareDevice()
Dsoft_keymaster_device.cpp180 keymaster_error_t SoftKeymasterDevice::SetHardwareDevice(keymaster1_device_t* keymaster1_device) { in SetHardwareDevice() argument
181 assert(keymaster1_device); in SetHardwareDevice()
187 map_digests(keymaster1_device, &km1_device_digests_, &supports_all_digests_); in SetHardwareDevice()
190 error = context_->SetHardwareDevice(keymaster1_device); in SetHardwareDevice()
193 initialize_device_struct(keymaster1_device->flags); in SetHardwareDevice()
197 module_name_.append(keymaster1_device->common.module->name); in SetHardwareDevice()
205 wrapped_km1_device_ = keymaster1_device; in SetHardwareDevice()
/system/keymaster/tests/
Dandroid_keymaster_test_utils.cpp804 static keymaster_error_t get_supported_algorithms(const struct keymaster1_device* dev, in get_supported_algorithms()
809 static keymaster_error_t get_supported_block_modes(const struct keymaster1_device* dev, in get_supported_block_modes()
817 static keymaster_error_t get_supported_padding_modes(const struct keymaster1_device* dev, in get_supported_padding_modes()
848 static keymaster_error_t get_supported_import_formats(const struct keymaster1_device* dev, in get_supported_import_formats()
855 static keymaster_error_t get_supported_export_formats(const struct keymaster1_device* dev, in get_supported_export_formats()
862 static keymaster_error_t add_rng_entropy(const struct keymaster1_device* dev, in add_rng_entropy()
880 get_key_characteristics(const struct keymaster1_device* dev, in get_key_characteristics()
901 static keymaster_error_t export_key(const struct keymaster1_device* dev, // in export_key()
931 static keymaster_error_t finish(const struct keymaster1_device* dev, // in finish()
941 static keymaster_error_t abort(const struct keymaster1_device* dev, in abort()
/system/keymaster/legacy_support/
Dkeymaster1_engine.cpp41 Keymaster1Engine::Keymaster1Engine(const keymaster1_device_t* keymaster1_device) in Keymaster1Engine() argument
42 : keymaster1_device_(keymaster1_device), engine_(ENGINE_new()), in Keymaster1Engine()
52 assert(keymaster1_device); in Keymaster1Engine()
/system/keymaster/ng/include/
DAndroidKeymaster3Device.h26 typedef struct keymaster1_device keymaster1_device_t;
/system/keymaster/include/keymaster/
Dsoft_keymaster_device.h55 keymaster_error_t SetHardwareDevice(keymaster1_device_t* keymaster1_device);