1 /*
2  * Copyright (c) 2021, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef CC3XX_KEY_DEFS_H
9 #define CC3XX_KEY_DEFS_H
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 typedef enum {
16     /* In the TRM the huk is referred to as the rkek */
17     cc3xx_aes_key_id_huk      = 0x0U,
18     cc3xx_aes_key_id_krtl     = 0x1U,
19     cc3xx_aes_key_id_kcp      = 0x2U,
20     cc3xx_aes_key_id_kce      = 0x3U,
21     cc3xx_aes_key_id_kpicv    = 0x4U,
22     cc3xx_aes_key_id_kceicv   = 0x5U,
23     cc3xx_aes_key_id_user_key = 0xFFU,
24 } cc3xx_aes_key_id_t;
25 
26 typedef enum {
27     cc3xx_aes_keysize_128 = 0b00U,
28     cc3xx_aes_keysize_192 = 0b01U,
29     cc3xx_aes_keysize_256 = 0b10U,
30 } cc3xx_aes_keysize_t;
31 
32 
33 #ifdef __cplusplus
34 }
35 #endif
36 
37 #endif /* CC3XX_KEY_DEFS_H */
38