84 #ifndef ti_drivers_attestation_Attestation_PSA__include 85 #define ti_drivers_attestation_Attestation_PSA__include 90 #include <psa/initial_attestation.h> 103 #define ATTESTATION_PSA_MAX_TOKEN_SIZE (PSA_INITIAL_ATTEST_MAX_TOKEN_SIZE) 111 #define ATTESTATION_PSA_STATUS_SUCCESS ((int_fast16_t)0) 119 #define ATTESTATION_PSA_STATUS_ERROR ((int_fast16_t)-1) 129 #define ATTESTATION_PSA_STATUS_RESOURCE_UNAVAILABLE ((int_fast16_t)-2) 136 #define ATTESTATION_PSA_STATUS_INVALID_INPUTS ((int_fast16_t)-3) 159 size_t challenge_size,
161 size_t token_buf_size,
void Attestation_PSA_init(void)
This function initializes the Attestation module.
int_fast16_t Attestation_PSA_getTokenSize(size_t challenge_size, size_t *token_size)
Get the exact size of initial attestation token in bytes.
int_fast16_t Attestation_PSA_getToken(const uint8_t *auth_challenge, size_t challenge_size, uint8_t *token_buf, size_t token_buf_size, size_t *token_size)
Get initial attestation token.