Creates an Attestation Mechanism handle that uses a TPM Attestation for use in consequent APIs.


#include "azure-iot-sdk-c/provisioning_service_client/inc/prov_service_client/provisioning_sc_attestation_mechanism.h"

ATTESTATION_MECHANISM_HANDLE attestationMechanism_createWithTpm(
  const char *  endorsement_key,
  const char *  storage_root_key


  • endorsement_key An endorsement key to use with the TPM.

  • storage_root_key A storage root key to use with the TPM (optional).

Return Value

A non NULL handle representing an Attestation Mechanism using a TPM Attestation, and NULL on failure.