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?
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;