Home
last modified time | relevance | path

Searched refs:JsonOutput (Results 1 – 2 of 2) sorted by relevance

/hardware/interfaces/security/keymint/support/include/remote_prov/
Dremote_prov_utils.h90 struct JsonOutput { struct
91 static JsonOutput Ok(std::string json) { return {std::move(json), ""}; } in Ok() argument
92 static JsonOutput Error(std::string error) { return {"", std::move(error)}; } in Error() argument
110 JsonOutput jsonEncodeCsrWithBuild(const cppbor::Array& csr); argument
/hardware/interfaces/security/keymint/support/
Dremote_prov_utils.cpp185 JsonOutput jsonEncodeCsrWithBuild(const cppbor::Array& csr) { in jsonEncodeCsrWithBuild()
189 return JsonOutput::Error("Unable to read build fingerprint"); in jsonEncodeCsrWithBuild()
196 return JsonOutput::Error("Error getting base64 length. Size overflow?"); in jsonEncodeCsrWithBuild()
203 return JsonOutput::Error("Error writing base64. Expected " + std::to_string(base64Length) + in jsonEncodeCsrWithBuild()
214 return JsonOutput::Ok(Json::writeString(factory, json)); in jsonEncodeCsrWithBuild()