Safeheron-SGX-Native-Development-Framework v1.2.0
Loading...
Searching...
No Matches
ssgx::attestation_u::RemoteAttestor Class Reference

The class for Intel DCAP remote attestation. More...

#include <ssgx_attestation_u.h>

Public Member Functions

 RemoteAttestor ()
 
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.
 
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.
 
ErrorCode GetLastErrorCode () const
 Get the error code.
 
std::string GetLastErrorMsg () const
 Get the error message.
 

Detailed Description

The class for Intel DCAP remote attestation.

This class provides APIs to Verify reports

Constructor & Destructor Documentation

◆ RemoteAttestor()

ssgx::attestation_u::RemoteAttestor::RemoteAttestor ( )
inline

Member Function Documentation

◆ GetLastErrorCode()

ErrorCode ssgx::attestation_u::RemoteAttestor::GetLastErrorCode ( ) const
inline

Get the error code.

Returns
An error code

◆ GetLastErrorMsg()

std::string ssgx::attestation_u::RemoteAttestor::GetLastErrorMsg ( ) const
inline

Get the error message.

Returns
An error message string

◆ VerifyReport() [1/3]

bool ssgx::attestation_u::RemoteAttestor::VerifyReport ( const std::string & user_info,
const std::string & report,
std::string & enclave_id )

Verify a remote attestation report within a Untrusted Execution Environment.

Parameters
[in]user_infoUser-defined data utilized in the generation of a remote attestation report.
[in]reportremote attestation report
[out]enclave_idMRENCLAVE in the remote attestation report.
Returns
Return true if successful; otherwise, return false

◆ VerifyReport() [2/3]

bool ssgx::attestation_u::RemoteAttestor::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.

Parameters
[in]user_infoUser-defined data utilized in the generation of a remote attestation report.
[in]timestampTimestamp used in the generation of a remote attestation report.
[in]validity_secondsIf timestamp + validity_seconds < current_timestamp, the remote attestation report and User-defined data are considered expired.
[in]reportremote attestation report
[out]enclave_idMRENCLAVE in the remote attestation report.
Returns
Return true if successful; otherwise, return false

◆ VerifyReport() [3/3]

bool ssgx::attestation_u::RemoteAttestor::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.

Parameters
[in]user_dataUser-defined data utilized in the generation of a remote attestation report.
[in]reportremote attestation report
[out]enclave_idMRENCLAVE in the remote attestation report.
Returns
Return true if successful; otherwise, return false

The documentation for this class was generated from the following file: