Home
last modified time | relevance | path

Searched refs:keymaster1_device_t (Results 1 – 18 of 18) sorted by relevance

/system/keymaster/include/keymaster/
Dsoft_keymaster_device.h55 keymaster_error_t SetHardwareDevice(keymaster1_device_t* keymaster1_device);
64 keymaster1_device_t* keymaster_device();
101 static keymaster_error_t get_supported_algorithms(const keymaster1_device_t* dev,
104 static keymaster_error_t get_supported_block_modes(const keymaster1_device_t* dev,
109 static keymaster_error_t get_supported_padding_modes(const keymaster1_device_t* dev,
114 static keymaster_error_t get_supported_digests(const keymaster1_device_t* dev,
119 static keymaster_error_t get_supported_import_formats(const keymaster1_device_t* dev,
123 static keymaster_error_t get_supported_export_formats(const keymaster1_device_t* dev,
127 static keymaster_error_t add_rng_entropy(const keymaster1_device_t* dev, const uint8_t* data,
129 static keymaster_error_t generate_key(const keymaster1_device_t* dev,
[all …]
/system/keymaster/contexts/
Dsoft_keymaster_device.cpp109 static keymaster_error_t add_digests(keymaster1_device_t* dev, keymaster_algorithm_t algorithm, in add_digests()
130 static keymaster_error_t map_digests(keymaster1_device_t* dev, SoftKeymasterDevice::DigestMap* map, in map_digests()
180 keymaster_error_t SoftKeymasterDevice::SetHardwareDevice(keymaster1_device_t* keymaster1_device) { in SetHardwareDevice()
301 keymaster1_device_t* SoftKeymasterDevice::keymaster_device() { in keymaster_device()
332 static_assert((std::is_same<T, keymaster1_device_t>::value || in convert_device()
360 delete convert_device(reinterpret_cast<keymaster1_device_t*>(dev)); in close_device()
372 keymaster_error_t SoftKeymasterDevice::get_supported_algorithms(const keymaster1_device_t* dev, in get_supported_algorithms()
379 const keymaster1_device_t* km1_dev = convert_device(dev)->wrapped_km1_device_; in get_supported_algorithms()
401 keymaster_error_t SoftKeymasterDevice::get_supported_block_modes(const keymaster1_device_t* dev, in get_supported_block_modes()
410 const keymaster1_device_t* km1_dev = convert_device(dev)->wrapped_km1_device_; in get_supported_block_modes()
[all …]
Dkeymaster1_passthrough_context.cpp38 keymaster1_device_t* dev) in Keymaster1PassthroughContext()
117 parseKeymaster1HwBlob(const keymaster1_device_t* device, const KeymasterKeyBlob& blob, in parseKeymaster1HwBlob()
Dsoft_keymaster_context.cpp65 keymaster_error_t SoftKeymasterContext::SetHardwareDevice(keymaster1_device_t* keymaster1_device) { in SetHardwareDevice()
/system/keymaster/include/keymaster/legacy_support/
Dkeymaster1_engine.h41 explicit Keymaster1Engine(const keymaster1_device_t* keymaster1_device);
78 const keymaster1_device_t* device() const { return keymaster1_device_; } in device()
110 const keymaster1_device_t* const keymaster1_device_;
Dkeymaster_passthrough_engine.h27 typedef struct keymaster1_device keymaster1_device_t; typedef
62 static UniquePtr<KeymasterPassthroughEngine> createInstance(const keymaster1_device_t* dev);
Dkeymaster1_legacy_support.h45 Keymaster1LegacySupport(const keymaster1_device_t* dev);
62 keymaster_algorithm_t algorithm, const keymaster1_device_t* dev, in Keymaster1ArbitrationFactory()
/system/keymaster/include/keymaster/contexts/
Dkeymaster1_passthrough_context.h41 Keymaster1PassthroughContext(KmVersion version, keymaster1_device_t* dev);
137 keymaster1_device_t* device_;
Dsoft_keymaster_context.h59 keymaster_error_t SetHardwareDevice(keymaster1_device_t* keymaster1_device);
/system/keymaster/tests/
Dandroid_keymaster_test_utils.cpp741 explicit Sha256OnlyWrapper(const keymaster1_device_t* wrapped_device) in Sha256OnlyWrapper()
769 keymaster1_device_t* keymaster_device() { return &device_; } in keymaster_device()
795 const keymaster1_device_t* wrapped_device = wrapper->wrapped_device_; in close_device()
800 static const keymaster1_device_t* unwrap(const keymaster1_device_t* dev) { in unwrap()
826 static keymaster_error_t get_supported_digests(const keymaster1_device_t* dev, in get_supported_digests()
867 static keymaster_error_t generate_key(const keymaster1_device_t* dev, in generate_key()
889 import_key(const keymaster1_device_t* dev, const keymaster_key_param_set_t* params, in import_key()
911 static keymaster_error_t begin(const keymaster1_device_t* dev, // in begin()
921 static keymaster_error_t update(const keymaster1_device_t* dev, in update()
947 keymaster1_device_t device_;
[all …]
Dandroid_keymaster_test_utils.h358 keymaster1_device_t* make_device_sha256_only(keymaster1_device_t* device);
/system/keymaster/legacy_support/
Dkeymaster_passthrough_engine.cpp205 keymaster_error_t TKeymasterPassthroughEngine<keymaster1_device_t>::GenerateKey( in GenerateKey()
245 keymaster_error_t TKeymasterPassthroughEngine<keymaster1_device_t>::ImportKey( in ImportKey()
296 engine_ptr_t KeymasterPassthroughEngine::createInstance(const keymaster1_device_t* dev) { in createInstance()
297 return engine_ptr_t(new TKeymasterPassthroughEngine<keymaster1_device_t>(dev)); in createInstance()
Dkeymaster1_legacy_support.cpp57 static keymaster_error_t add_digests(const keymaster1_device_t* dev, in add_digests()
78 static keymaster_error_t map_digests(const keymaster1_device_t* dev, in map_digests()
108 Keymaster1LegacySupport::Keymaster1LegacySupport(const keymaster1_device_t* dev) { in Keymaster1LegacySupport()
Dkeymaster_passthrough_operation.cpp25 keymaster_error_t KeymasterPassthroughOperation<keymaster1_device_t>::Finish( in Finish()
Dkeymaster_passthrough_operation.h84 keymaster_error_t KeymasterPassthroughOperation<keymaster1_device_t>::Finish(
Dkeymaster1_engine.cpp41 Keymaster1Engine::Keymaster1Engine(const keymaster1_device_t* keymaster1_device) in Keymaster1Engine()
63 reinterpret_cast<hw_device_t*>(const_cast<keymaster1_device_t*>(keymaster1_device_))); in ~Keymaster1Engine()
/system/keymaster/ng/include/
DAndroidKeymaster3Device.h26 typedef struct keymaster1_device keymaster1_device_t; typedef
100 IKeymasterDevice* CreateKeymasterDevice(keymaster1_device_t* km1_device);
/system/keymaster/ng/
DAndroidKeymaster3Device.cpp511 IKeymasterDevice* CreateKeymasterDevice(keymaster1_device_t* km1_device) { in CreateKeymasterDevice()