sIn.Serialize(inMemory);
uint32_t dataSize = 0;
- GetDataSize(keyToWrapId, keyToWrapType, dataSize);
+ GetDataSize(keyToWrapId, keyToWrapPwd, keyToWrapType, dataSize);
LogDebug("GetData data_size = [" << dataSize << "]");
}
void TrustZoneContext::GetDataSize(const RawBuffer &dataId,
+ const Pwd &pwd,
const tz_data_type type,
uint32_t &dataSize)
{
// command ID = CMD_GET_DATA_SIZE
LogDebug("Object ID (passed to CMD_GET_DATA_SIZE) is (hex): " << rawToHexString(dataId));
- auto sIn = makeSerializer(dataId, type);
+ auto sIn = makeSerializer(dataId, pwd, type);
TrustZoneMemory inMemory(m_Context, sIn.GetSize(), TEEC_MEM_INPUT);
sIn.Serialize(inMemory);
sIn.Serialize(inMemory);
uint32_t data_size = 0;
- GetDataSize(dataId, type, data_size);
+ GetDataSize(dataId, pwd, type, data_size);
LogDebug("GetData data_size = [" << data_size << "]");