tpm2-tss
3.2.0
TPM Software stack 2.0 TCG spec compliant implementation
|
Functions | |
TSS2_RC | ifapi_get_intl_ek_certificate (FAPI_CONTEXT *context, TPM2B_PUBLIC *ek_public, unsigned char **cert_buffer, size_t *cert_size) |
Provides functions implementing vendor specific extensions.
TSS2_RC ifapi_get_intl_ek_certificate | ( | FAPI_CONTEXT * | context, |
TPM2B_PUBLIC * | ek_public, | ||
unsigned char ** | cert_buffer, | ||
size_t * | cert_size | ||
) |
Get INTEL certificate for EK
Using the base64 encoded public endorsement key the JSON encoded certificate will be downloaded. The JSON certificate will be parsed and the base64 encoded certificate will be converted into binary format.
[in] | context | The FAPI context with the configuration data. |
[in] | ek_public | The out public data of the EK. |
[out] | cert_buffer | the der encoded certificate. |
[out] | cert_size | The size of the certificate buffer. |
TSS2_RC_SUCCESS | on success. |
TSS2_FAPI_RC_NO_CERT | If an error did occur during certificate downloading. |
TSS2_FAPI_RC_GENERAL_FAILURE | if an internal error occured. |
TSS2_FAPI_RC_MEMORY | if not enough memory can be allocated. |