21#ifndef __PSA_INITIAL_ATTESTATION_API_H__
22#define __PSA_INITIAL_ATTESTATION_API_H__
153#define PSA_INITIAL_ATTEST_API_VERSION_MAJOR (0)
154#define PSA_INITIAL_ATTEST_API_VERSION_MINOR (9)
188#define PSA_INITIAL_ATTEST_CHALLENGE_SIZE_32 (32u)
189#define PSA_INITIAL_ATTEST_CHALLENGE_SIZE_48 (48u)
190#define PSA_INITIAL_ATTEST_CHALLENGE_SIZE_64 (64u)
210 uint32_t challenge_size,
212 uint32_t *token_size);
228 uint32_t *token_size);
enum psa_attest_err_t psa_initial_attest_get_token(const uint8_t *challenge_obj, uint32_t challenge_size, uint8_t *token, uint32_t *token_size)
Get initial attestation token.
psa_attest_err_t
Initial attestation service error types.
enum psa_attest_err_t psa_initial_attest_get_token_size(uint32_t challenge_size, uint32_t *token_size)
Get the exact size of initial attestation token in bytes.
@ PSA_ATTEST_ERR_FORCE_INT_SIZE
Following entry is only to ensure the error code of integer size.
@ PSA_ATTEST_ERR_INVALID_INPUT
Some parameter or combination of parameters are recognised as invalid:
@ PSA_ATTEST_ERR_GENERAL
Unexpected error happened during operation.
@ PSA_ATTEST_ERR_TOKEN_BUFFER_OVERFLOW
Token buffer is too small to store the created token there.
@ PSA_ATTEST_ERR_INIT_FAILED
Boot status data is unavailable or malformed.
@ PSA_ATTEST_ERR_CLAIM_UNAVAILABLE
Some of the mandatory claims are unavailable.
@ PSA_ATTEST_ERR_SUCCESS
Action was performed successfully.