intel / sgx-ra-sample

Other
178 stars 65 forks source link

why ecdsa_sign use service_private_key rather than the Gb_? #60

Closed jianlinjiang closed 3 years ago

jianlinjiang commented 3 years ago

In service provider's function process_msg01, why use config.service_private_key to sign the Gb_Ga? In my opinion, it should use Gb to sign the data. Please explain the reason, thanks.

jianlinjiang commented 3 years ago

When I use Gb to carry out ecdsa on Gb_Ga, I got SGX_ERROR_INVALID_SIGNATURE when calling sgx_proc_msg2. I've been puzzling over this problem for a long time. Please help me, thanks. Please.

jianlinjiang commented 3 years ago

I found the reason, thanks.