Lines Matching refs:TeeuiRc
71 using TeeuiRc = ::teeui::ResponseCode; typedef
90 ResponseCode convertRc(TeeuiRc trc) { in convertRc()
92 uint32_t(TeeuiRc::OK) == uint32_t(ResponseCode::OK) && in convertRc()
93 uint32_t(TeeuiRc::Canceled) == uint32_t(ResponseCode::Canceled) && in convertRc()
94 uint32_t(TeeuiRc::Aborted) == uint32_t(ResponseCode::Aborted) && in convertRc()
95 uint32_t(TeeuiRc::OperationPending) == uint32_t(ResponseCode::OperationPending) && in convertRc()
96 uint32_t(TeeuiRc::Ignored) == uint32_t(ResponseCode::Ignored) && in convertRc()
97 uint32_t(TeeuiRc::SystemError) == uint32_t(ResponseCode::SystemError) && in convertRc()
98 uint32_t(TeeuiRc::Unimplemented) == uint32_t(ResponseCode::Unimplemented) && in convertRc()
99 uint32_t(TeeuiRc::Unexpected) == uint32_t(ResponseCode::Unexpected) && in convertRc()
100 uint32_t(TeeuiRc::UIError) == uint32_t(ResponseCode::UIError) && in convertRc()
101 uint32_t(TeeuiRc::UIErrorMissingGlyph) == uint32_t(ResponseCode::UIErrorMissingGlyph) && in convertRc()
102 uint32_t(TeeuiRc::UIErrorMessageTooLong) == in convertRc()
104 uint32_t(TeeuiRc::UIErrorMalformedUTF8Encoding) == in convertRc()
152 std::tuple<TeeuiRc, MsgVector<uint8_t>, MsgVector<uint8_t>>
216 std::tuple<TeeuiRc, MsgVector<uint8_t>, MsgVector<uint8_t>> result; in promptUserConfirmation_()
217 TeeuiRc& rc = std::get<TeeuiRc>(result); in promptUserConfirmation_()
218 rc = TeeuiRc::SystemError; in promptUserConfirmation_()
227 auto hsBegin = [&]() -> std::tuple<TeeuiRc, Nonce> { in promptUserConfirmation_()
232 if (error != TrustyAppError::OK || rc != TeeuiRc::OK) { in promptUserConfirmation_()
235 rc = error != TrustyAppError::OK ? TeeuiRc::SystemError : rc; in promptUserConfirmation_()
240 auto hsFinalize = [&](const Signature& sig, const Nonce& nCi) -> TeeuiRc { in promptUserConfirmation_()
245 if (error != TrustyAppError::OK || rc != TeeuiRc::OK) { in promptUserConfirmation_()
248 rc = error != TrustyAppError::OK ? TeeuiRc::SystemError : rc; in promptUserConfirmation_()
254 const Signature& sig) -> std::tuple<TeeuiRc, InputResponse> { in promptUserConfirmation_()
260 rc = TeeuiRc::SystemError; in promptUserConfirmation_()
265 std::atomic<TeeuiRc> eventRC = TeeuiRc::OperationPending; in promptUserConfirmation_()
266 auto inputResult = [&](TeeuiRc rc) { in promptUserConfirmation_()
267 TeeuiRc expected = TeeuiRc::OperationPending; in promptUserConfirmation_()
294 rc = TeeuiRc::UIErrorMessageTooLong; in promptUserConfirmation_()
300 if (rc != TeeuiRc::OK) { in promptUserConfirmation_()
314 rc = TeeuiRc::SystemError; in promptUserConfirmation_()
327 rc = TeeuiRc::SystemError; in promptUserConfirmation_()
342 result = {TeeuiRc::Aborted, {}, {}}; in promptUserConfirmation_()
358 return eventRC != TeeuiRc::OperationPending || abort_called_ || secureInputDelivered_; in promptUserConfirmation_()
363 result = {TeeuiRc::Aborted, {}, {}}; in promptUserConfirmation_()
368 if (eventRC != TeeuiRc::OK) { in promptUserConfirmation_()
381 result = {TeeuiRc::SystemError, {}, {}}; in promptUserConfirmation_()
478 if (trc != TeeuiRc::Ignored) secureInputDelivered_ = true; in deliverSecureInputEvent()