jyao1 / openspdm

This openspdm is a sample implementation for the DMTF SPDM specification.
Other
20 stars 22 forks source link

Need align DHE and ECDHE crypto API. #64

Closed jyao1 closed 4 years ago

jyao1 commented 4 years ago

Current DHE: Result = DhGenerateKey (*Context, SelfPubKey, &OutKeySize);

Current ECDHE: Result = EcGenerateKey (*Context); ASSERT (Result);

OutKeySize = SelfKeySize;
Result = EcGetPublicKey (*Context, SelfPubKey, &OutKeySize);
jyao1 commented 4 years ago

done