Home
last modified time | relevance | path

Searched refs:key_data_length (Results 1 – 11 of 11) sorted by relevance

/system/keymaster/km_openssl/
Dasymmetric_key.cpp41 int key_data_length = i2d_PUBKEY(pkey.get(), nullptr); in formatted_key_material() local
42 if (key_data_length <= 0) return TranslateLastOpenSslError(); in formatted_key_material()
44 material->reset(new (std::nothrow) uint8_t[key_data_length]); in formatted_key_material()
48 if (i2d_PUBKEY(pkey.get(), &tmp) != key_data_length) { in formatted_key_material()
53 *size = key_data_length; in formatted_key_material()
/system/keymaster/android_keymaster/
Dandroid_keymaster_messages.cpp602 key_data_length = length; in SetKeyMaterial()
606 return sizeof(uint32_t) /* key_data_length */ + key_data_length; in NonErrorSerializedSize()
610 return append_size_and_data_to_buf(buf, end, key_data, key_data_length); in NonErrorSerialize()
617 if (!copy_size_and_data_from_buf(buf_ptr, end, &key_data_length, &deserialized_key_material)) in NonErrorDeserialize()
Dandroid_keymaster.cpp731 response->key_data_length = size; in ExportKey()
/system/core/trusty/keymaster/keymint/
DTrustyKeyMintDevice.cpp319 *ephemeralKeyBlob = {response.key_data, response.key_data + response.key_data_length}; in convertStorageKeyToEphemeral()
/system/keymaster/ng/
DAndroidKeymaster3Device.cpp354 resultKeyBlob.setToExternal(response.key_data, response.key_data_length); in exportKey()
DAndroidKeymaster4Device.cpp420 resultKeyBlob.setToExternal(response.key_data, response.key_data_length); in exportKey()
/system/core/trusty/keymaster/3.0/
DTrustyKeymaster3Device.cpp310 resultKeyBlob.setToExternal(response.key_data, response.key_data_length); in exportKey()
/system/core/trusty/keymaster/4.0/
DTrustyKeymaster4Device.cpp451 resultKeyBlob.setToExternal(response.key_data, response.key_data_length); in exportKey()
/system/keymaster/tests/
Dandroid_keymaster_messages_test.cpp569 EXPECT_EQ(3U, deserialized->key_data_length); in TEST()
/system/keymaster/include/keymaster/
Dandroid_keymaster_messages.h630 size_t key_data_length; member
/system/keymaster/contexts/
Dsoft_keymaster_device.cpp959 export_data->data_length = response.key_data_length; in export_key()