1 /* 2 * Copyright (c) 2021, Arm Limited and Contributors. All rights reserved. 3 * SPDX-License-Identifier: BSD-3-Clause 4 */ 5 6 #ifndef TS_ATTESTATION_GET_TOKEN_SIZE_H 7 #define TS_ATTESTATION_GET_TOKEN_SIZE_H 8 9 #include <stdint.h> 10 11 /** 12 * Parameter definitions for the GET_TOKEN_SIZE operation. 13 * 14 * Returns the expected size of an attestation token when 15 * a challenge of the specified length is presented. 16 */ 17 18 /* Mandatory fixed sized input parameters */ 19 struct __attribute__ ((__packed__)) ts_attestation_get_token_size_in 20 { 21 /* The size of the challenge (nonce) that a client 22 * intends to provide when requesting a new token. 23 */ 24 uint32_t challenge_size; 25 }; 26 27 /* Mandatory fixed sized output parameters */ 28 struct __attribute__ ((__packed__)) ts_attestation_get_token_size_out 29 { 30 /* The calculated size of the token that would be 31 * returned. 32 */ 33 uint32_t token_size; 34 }; 35 36 #endif /* TS_ATTESTATION_GET_TOKEN_SIZE_H */ 37