Other Software Tools

sgx_fclose

The sgx_fclose function closes a protected file handle.

Syntax

                        int32_t sgx_fclose(
                                                 SGX_FILE* stream
                                        );
                        

Parameters

stream [in]

A file handle that is returned from a previous call to sgx_fopen or sgx_fopen_auto_key.

Return value

0

sgx_dh_session_role_t

Type for role of establishing a DH secure session used in DH secure session establishment.

Syntax

typedef enum _sgx_dh_session_role_t
        {
             SGX_DH_SESSION_INITIATOR,
             SGX_DH_SESSION_RESPONDER
        } sgx_dh_session_role_t;

Members

SGX_DH_SESSION_INITIATOR

Initiator of a DH session establishment.

SGX_DH_SESSION_RESPONDER

Responder of a DH session establishment.

sgx_thread_cond_t

Data type for a trusted condition variable.

Syntax

                         typedef struct sgx_thread_cond 
                        {
                                 sgx_spinlock_t      m_lock;
                                 sgx_thread_queue_t  m_queue;
                        } sgx_thread_cond_t;
                        

 

Members

m_lock

The spin lock used to guarantee atomic updates to the condition variable.

m_queue

sgx_dh_initiator_proc_msg1

The initiator of DH secure session establishment handles msg1 sent by responder and then generates msg2, and records initiator’s ECC key pair in DH session structure.

Syntax

                         sgx_status_t sgx_dh_initiator_proc_msg1(
                                 const sgx_dh_msg1_t * msg1,
                                 sgx_dh_msg2_t * msg2,
                                 sgx_dh_session_t * dh_session
                        );
                        

 

Subscribe to Other Software Tools