Otras Herramientas de software

sgx_register_exception_handler

sgx_register_exception_handler

sgx_register_exception_handler allows developers to register an exception handler, and specify whether to prepend (when is_first_handler is equal to 1) or append the handler to the handler chain.

Syntax

void* sgx_register_exception_handler(
             int is_first_handler,
             sgx_exception_handler_t exception_handler
        );

 

sgx_thread_cond_broadcast

The sgx_thread_cond_broadcast function wakes all pending threads waiting on the condition variable.

Syntax

int sgx_thread_cond_broadcast(
             sgx_thread_cond_t * cond
        );

Parameters

cond [in]

The trusted condition variable to be broadcasted.

Return value

0

All pending threads have been broadcasted.

EINVAL

The trusted condition variable is invalid.

ENOMEM

sgx_seal_data

This function is used to AES-GCM encrypt the input data. Two input data sets are provided: one is the data to be encrypted; the second is optional additional data that will not be encrypted but will be part of the GCM MAC calculation which also covers the data to be encrypted.

sgx_cmac128_final

sgx_cmac128_final obtains the CMAC 128-bit hash after the final dataset has been processed (by calls to sgx_cmac128_update).

Syntax

sgx_status_t sgx_cmac128_final(
             sgx_cmac_state_handle_t cmac_handle,
             sgx_cmac_128bit_tag_t* p_hash
        );

 

Parameters

cmac_handle [in]

sgx_isv_svn_t

ISV security version. The value is 2 bytes in length. Use this value in key derivation and obtain it by getting an enclave report (sgx_create_report).

Requirements

Header

sgx_key.h

sgx_ecall_get_ga_t

Function pointer of proxy function generated from sgx_tkey_exchange.edl.

Syntax

typedef sgx_status_t (* sgx_ecall_get_ga_trusted_t)(
                        sgx_enclave_id_t eid,
                        int* retval,
                        sgx_ra_context_t context,
                        sgx_ec256_public_t *g_a // Little Endian
        );

Note that the 4th parameter this function takes should be in little endian format.

Suscribirse a Otras Herramientas de software