Lines Matching refs:result

75     std::vector<uint8_t> result(num_bytes);  in DeriveBytesFromHbk()  local
79 HKDF(result.data(), num_bytes, // in DeriveBytesFromHbk()
85 return result; in DeriveBytesFromHbk()
112 auto result = std::make_unique<cppbor::Map>(); in CreateDeviceInfo() local
115 return result; in CreateDeviceInfo()
117 ADD_ID_FIELD(result, ids.brand, "brand") in CreateDeviceInfo()
118 ADD_ID_FIELD(result, ids.manufacturer, "manufacturer") in CreateDeviceInfo()
119 ADD_ID_FIELD(result, ids.product, "product") in CreateDeviceInfo()
120 ADD_ID_FIELD(result, ids.model, "model") in CreateDeviceInfo()
121 ADD_ID_FIELD(result, ids.device, "device") in CreateDeviceInfo()
127 result->add("vb_state", "green"); in CreateDeviceInfo()
130 result->add("vb_state", "yellow"); in CreateDeviceInfo()
133 result->add("vb_state", "orange"); in CreateDeviceInfo()
138 result->add("bootloader_state", in CreateDeviceInfo()
140 result->add("vbmeta_digest", in CreateDeviceInfo()
143 result->add("os_version", std::to_string(bootParams_->boot_os_version)); in CreateDeviceInfo()
144 result->add("system_patch_level", in CreateDeviceInfo()
146 result->add("boot_patch_level", cppbor::Uint(boot_patchlevel_)); in CreateDeviceInfo()
147 result->add("vendor_patch_level", cppbor::Uint(vendor_patchlevel_)); in CreateDeviceInfo()
148 result->add("fused", system_state_get_flag_default( in CreateDeviceInfo()
153 result->add("security_level", "tee"); in CreateDeviceInfo()
156 result->add("version", csrVersion); in CreateDeviceInfo()
160 result->canonicalize(); in CreateDeviceInfo()
161 return result; in CreateDeviceInfo()
193 auto result = cppcose::generateHmacSha256(key, input); in GenerateHmacSha256() local
194 if (!result) { in GenerateHmacSha256()
195 LOG_E("Error signing MAC: %s", result.message().c_str()); in GenerateHmacSha256()
198 return *result; in GenerateHmacSha256()