Community
cancel
Showing results for 
Search instead for 
Did you mean: 
AArya2
New Contributor I
73 Views

Life-cycle of an sgx_ecc_state_handle_t

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
73 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