Software APIs
attestation.h
1 // Copyright lowRISC contributors (OpenTitan project).
2 // Licensed under the Apache License, Version 2.0, see LICENSE for details.
3 // SPDX-License-Identifier: Apache-2.0
4 
5 #ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_ATTESTATION_H_
6 #define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_ATTESTATION_H_
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif // __cplusplus
11 
12 enum {
13  /**
14  * Size of the additional seed for attestation key generation in bits.
15  */
16  kAttestationSeedBits = 320,
17  /**
18  * Size of the additional seed for attestation key generation in bytes.
19  */
20  kAttestationSeedBytes = kAttestationSeedBits / 8,
21  /**
22  * Size of the additional seed for attestation key generation in 32b words.
23  */
24  kAttestationSeedWords = kAttestationSeedBytes / sizeof(uint32_t),
25 };
26 
27 /**
28  * Attestation key generation scheme version.
29  */
30 enum {
31  kAttestationKeyGenVersion0 = 0,
32 };
33 
34 #ifdef __cplusplus
35 } // extern "C"
36 #endif // __cplusplus
37 
38 #endif // OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_ATTESTATION_H_