tpm2-tss  3.2.0
TPM Software stack 2.0 TCG spec compliant implementation
Vendor specific module

Functions

TSS2_RC ifapi_get_intl_ek_certificate (FAPI_CONTEXT *context, TPM2B_PUBLIC *ek_public, unsigned char **cert_buffer, size_t *cert_size)
 

Detailed Description

Provides functions implementing vendor specific extensions.

Function Documentation

◆ ifapi_get_intl_ek_certificate()

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.

Parameters
[in]contextThe FAPI context with the configuration data.
[in]ek_publicThe out public data of the EK.
[out]cert_bufferthe der encoded certificate.
[out]cert_sizeThe size of the certificate buffer.
Return values
TSS2_RC_SUCCESSon success.
TSS2_FAPI_RC_NO_CERTIf an error did occur during certificate downloading.
TSS2_FAPI_RC_GENERAL_FAILUREif an internal error occured.
TSS2_FAPI_RC_MEMORYif not enough memory can be allocated.