Intel® Software Guard Extensions (Intel® SGX)
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.

Life-cycle of an sgx_ecc_state_handle_t

AArya2
New Contributor I
180 Views

Forgive me if this is just a basic crypto question,

What is the proper way of using an sgx_ecc_state_handle_t object? Should I initialize one for each primitive I want to perform? Or can I reuse one throughout the entire lifetime of the enclave?

0 Kudos
1 Reply
Surenthar_S_Intel
180 Views

Hi,

This is a handle to the ECC GF(p) context state allocated and initialized used to perform elliptic curve cryptosystem standard functions. The algorithm
stores the intermediate results of calculations performed using this context. The ECC set of APIs only support a 256-bit GF(p) cryptography system. Element size of 256 bits is supported.

You Can reuse one throughout the entire lifetime of the enclave

  • sgx_ecc_state_handle_t ecc_handle;

-Surenthar

Reply