blob: 18d54b20aad07a5bc49bb4cd7a4d85fec4a044f0 [file] [log] [blame]
/*
* Copyright (c) 2018-2019, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#ifndef __ATTESTATION_TESTS_COMMON_H__
#define __ATTESTATION_TESTS_COMMON_H__
#include "psa_initial_attestation_api.h"
#ifdef __cplusplus
extern "C" {
#endif
/*!
* \def TEST_TOKEN_SIZE
*
* \brief Size of token buffer in bytes.
*/
#define TEST_TOKEN_SIZE (0x200)
/*!
* \def TOO_SMALL_TOKEN_BUFFER
*
* \brief Smaller buffer size which is not big enough to store the created token
* by attestation service.
*/
#define TOO_SMALL_TOKEN_BUFFER (16u)
/*!
* \def TEST_CHALLENGE_OBJ_SIZE
*
* \brief Size of challenge object in bytes used for test.
*/
#define TEST_CHALLENGE_OBJ_SIZE (PSA_INITIAL_ATTEST_CHALLENGE_SIZE_64)
/*!
* \def INVALID_CHALLENGE_OBJECT_SIZE
*
* \brief Size of challenge object that is
*/
#define INVALID_CHALLENGE_OBJECT_SIZE (PSA_INITIAL_ATTEST_CHALLENGE_SIZE_32 + 1)
#ifdef __cplusplus
}
#endif
#endif /* __ATTESTATION_TESTS_COMMON_H__ */