The library allow an ISV to exchange secrets between its server and its enclaves. They are used in concert with untrusted Key Exchange functions.
rsgx_ra_close release context created by rsgx_ra_init or rsgx_ra_init_ex.
The sgx_ra_get_keys function is used to get the negotiated keys of a remote attestation and key exchange session.
The rsgx_ra_init function creates a context for the remote attestation and key exchange process.
The rsgx_ra_init_ex function creates a context for the remote attestation and key exchange process while it allows the use of a custom defined Key Derivation Function (KDF).