1#ifndef SAFEHERON_SGX_TRUSTED_ATTESTATION_T_H_
2#define SAFEHERON_SGX_TRUSTED_ATTESTATION_T_H_
12namespace attestation_t {
55 bool CreateReport(
const uint8_t user_data[64], std::string& report);
64 bool VerifyReport(
const uint8_t user_data[64],
const std::string& report, std::string& enclave_id);
73 bool CreateReport(
const std::string& user_info, std::string& report);
82 bool VerifyReport(
const std::string& user_info,
const std::string& report, std::string& enclave_id);
93 bool CreateReport(
const std::string& user_info, uint64_t timestamp, std::string& report);
105 bool VerifyReport(
const std::string& user_info, uint64_t timestamp, uint64_t validity_seconds,
106 const std::string& report, std::string& enclave_id);
126 std::string error_msg_;
The class for Intel DCAP remote attestation.
Definition ssgx_attestation_t.h:42
bool VerifyReport(const std::string &user_info, const std::string &report, std::string &enclave_id)
Verify a remote attestation report within a Trusted Execution Environment.
bool CreateReport(const std::string &user_info, std::string &report)
Generate a remote attestation report.
bool VerifyReport(const uint8_t user_data[64], const std::string &report, std::string &enclave_id)
Verify a remote attestation report within a Trusted 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 Trusted Execution Environment.
ErrorCode GetLastErrorCode() const
Get the last error code.
Definition ssgx_attestation_t.h:112
bool CreateReport(const std::string &user_info, uint64_t timestamp, std::string &report)
Generate a remote attestation report.
RemoteAttestor()
Definition ssgx_attestation_t.h:44
std::string GetLastErrorMsg() const
Get the last error message.
Definition ssgx_attestation_t.h:120
bool CreateReport(const uint8_t user_data[64], std::string &report)
Generate a remote attestation report.
ErrorCode
Error codes definition.
Definition ssgx_attestation_t.h:21
@ OCallOperationException
Definition ssgx_attestation_t.h:6