| // This file was extracted from the TCG Published |
| // Trusted Platform Module Library |
| // Level 00 Revision 01.16 |
| #include "InternalRoutines.h" |
| #include "EC_Ephemeral_fp.h" |
| // TPM_RC_NO_RESULT private key generation failed |
| EC_Ephemeral_In *in, // IN: input parameter list |
| EC_Ephemeral_Out *out // OUT: output parameter list |
| // Get the random value that will be used in the point multiplications |
| // Note: this does not commit the count. |
| CryptEccPointMultiply(&out->Q.t.point, in->curveID, &r, NULL); |
| // commit the count value |
| out->counter = CryptCommit(); |