Safeheron-SGX-Native-Development-Framework v1.2.0
Loading...
Searching...
No Matches
ssgx_attestation_u.h
Go to the documentation of this file.
1#ifndef SAFEHERON_SGX_UNTRUSTED_ATTESTATION_T_H_
2#define SAFEHERON_SGX_UNTRUSTED_ATTESTATION_T_H_
3
4#include <string>
5
6namespace ssgx {
11namespace attestation_u {
12
37
45 public:
47 error_code_ = ErrorCode::Unknown;
48 }
49
50 public:
58 bool VerifyReport(const uint8_t user_data[64], const std::string& report, std::string& enclave_id);
59
67 bool VerifyReport(const std::string& user_info, const std::string& report, std::string& enclave_id);
68
79 bool VerifyReport(const std::string& user_info, uint64_t timestamp, uint64_t validity_seconds,
80 const std::string& report, std::string& enclave_id);
81
87 return error_code_;
88 };
89
94 std::string GetLastErrorMsg() const {
95 return error_msg_;
96 };
97
98 private:
99 ErrorCode error_code_;
100 std::string error_msg_;
101};
102
103} // namespace attestation_u
104} // namespace ssgx
105
106#endif // SAFEHERON_SGX_UNTRUSTED_ATTESTATION_T_H_
The class for Intel DCAP remote attestation.
Definition ssgx_attestation_u.h:44
ErrorCode GetLastErrorCode() const
Get the error code.
Definition ssgx_attestation_u.h:86
bool VerifyReport(const std::string &user_info, const std::string &report, std::string &enclave_id)
Verify a remote attestation report within a Untrusted Execution Environment.
bool VerifyReport(const std::string &user_info, uint64_t timestamp, uint64_t validity_seconds, const std::string &report, std::string &enclave_id)
Verify a remote attestation report within a Untrusted Execution Environment.
std::string GetLastErrorMsg() const
Get the error message.
Definition ssgx_attestation_u.h:94
RemoteAttestor()
Definition ssgx_attestation_u.h:46
bool VerifyReport(const uint8_t user_data[64], const std::string &report, std::string &enclave_id)
Verify a remote attestation report within a Untrusted Execution Environment.
ErrorCode
Error codes definition.
Definition ssgx_attestation_u.h:20
Definition ssgx_attestation_t.h:6