Home
last modified time | relevance | path

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

/system/keymaster/km_openssl/
Dasymmetric_key.cpp48 int key_data_length = i2d_PUBKEY(pkey.get(), nullptr); in formatted_key_material() local
49 if (key_data_length <= 0) in formatted_key_material()
52 material->reset(new(std::nothrow) uint8_t[key_data_length]); in formatted_key_material()
57 if (i2d_PUBKEY(pkey.get(), &tmp) != key_data_length) { in formatted_key_material()
62 *size = key_data_length; in formatted_key_material()
/system/keymaster/android_keymaster/
Dandroid_keymaster_messages.cpp328 key_data_length = length; in SetKeyMaterial()
333 sizeof(uint32_t) /* key_data_length */ + key_data_length; in SerializedSize()
339 return append_size_and_data_to_buf(buf, end, key_data, key_data_length); in Serialize()
348 !copy_size_and_data_from_buf(buf_ptr, end, &key_data_length, &deserialized_key_material)) in Deserialize()
397 key_data_length = length; in SetKeyMaterial()
401 return sizeof(uint32_t) /* key_data_length */ + key_data_length; in NonErrorSerializedSize()
405 return append_size_and_data_to_buf(buf, end, key_data, key_data_length); in NonErrorSerialize()
412 if (!copy_size_and_data_from_buf(buf_ptr, end, &key_data_length, &deserialized_key_material)) in NonErrorDeserialize()
Dandroid_keymaster.cpp390 response->key_data_length = size; in ExportKey()
445 keymaster_key_blob_t key_material = {request.key_data, request.key_data_length}; in ImportKey()
/system/keymaster/tests/
Dandroid_keymaster_messages_test.cpp394 EXPECT_EQ(msg.key_data_length, deserialized->key_data_length); in TEST()
395 EXPECT_EQ(0, memcmp(msg.key_data, deserialized->key_data, msg.key_data_length)); in TEST()
439 EXPECT_EQ(3U, deserialized->key_data_length); in TEST()
/system/keymaster/include/keymaster/
Dandroid_keymaster_messages.h477 size_t key_data_length; member
537 size_t key_data_length; member
/system/core/trusty/keymaster/3.0/
DTrustyKeymaster3Device.cpp310 resultKeyBlob.setToExternal(response.key_data, response.key_data_length); in exportKey()
/system/keymaster/ng/
DAndroidKeymaster3Device.cpp352 resultKeyBlob.setToExternal(response.key_data, response.key_data_length); in exportKey()
DAndroidKeymaster4Device.cpp424 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/contexts/
Dsoft_keymaster_device.cpp1041 export_data->data_length = response.key_data_length; in export_key()