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