1 /*
2  * Copyright (c) 2021-2022, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef BL1_1_CRYPTO_KEY_DEFS_H
9 #define BL1_1_CRYPTO_KEY_DEFS_H
10 
11 #include <stddef.h>
12 #include <stdint.h>
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 #ifndef HUK_SIZE
19 #define HUK_SIZE (32)
20 #endif /* HUK_SIZE */
21 
22 #ifndef GUK_SIZE
23 #define GUK_SIZE (32)
24 #endif /* GUK_SIZE */
25 
26 #ifndef BL2_ENCRYPTION_KEY_SIZE
27 #define BL2_ENCRYPTION_KEY_SIZE (32)
28 #endif /* BL2_ENCRYPTION_KEY_SIZE */
29 
30 enum tfm_bl1_key_id_t {
31     TFM_BL1_KEY_HUK,
32     TFM_BL1_KEY_GUK,
33     TFM_BL1_KEY_BL2_ENCRYPTION,
34     TFM_BL1_KEY_ROTPK_0,
35 
36     TFM_BL1_KEY_USER,
37 };
38 
39 #ifdef __cplusplus
40 }
41 #endif
42 
43 #endif /* BL1_1_CRYPTO_KEY_DEFS_H */
44