Home
last modified time | relevance | path

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

/system/keymaster/
Dasymmetric_key.cpp127 int key_data_length = i2d_PUBKEY(pkey.get(), NULL); in formatted_key_material() local
128 if (key_data_length <= 0) in formatted_key_material()
131 material->reset(new (std::nothrow) uint8_t[key_data_length]); in formatted_key_material()
136 if (i2d_PUBKEY(pkey.get(), &tmp) != key_data_length) { in formatted_key_material()
141 *size = key_data_length; in formatted_key_material()
Dandroid_keymaster_messages.cpp310 key_data_length = length; in SetKeyMaterial()
315 sizeof(uint32_t) /* key_data_length */ + key_data_length; in SerializedSize()
321 return append_size_and_data_to_buf(buf, end, key_data, key_data_length); in Serialize()
330 !copy_size_and_data_from_buf(buf_ptr, end, &key_data_length, &deserialized_key_material)) in Deserialize()
379 key_data_length = length; in SetKeyMaterial()
383 return sizeof(uint32_t) /* key_data_length */ + key_data_length; in NonErrorSerializedSize()
387 return append_size_and_data_to_buf(buf, end, key_data, key_data_length); in NonErrorSerialize()
394 if (!copy_size_and_data_from_buf(buf_ptr, end, &key_data_length, &deserialized_key_material)) in NonErrorDeserialize()
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()
Dandroid_keymaster.cpp388 response->key_data_length = size; in ExportKey()
432 keymaster_key_blob_t key_material = {request.key_data, request.key_data_length}; in ImportKey()
Dsoft_keymaster_device.cpp1019 export_data->data_length = response.key_data_length; in export_key()
/system/keymaster/include/keymaster/
Dandroid_keymaster_messages.h462 size_t key_data_length; member
522 size_t key_data_length; member