MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
ip_css_design_configuration.h
1/*--------------------------------------------------------------------------*/
2/* Copyright 2016-2022 NXP */
3/* */
4/* SPDX-License-Identifier: BSD-3-Clause */
5/* */
6/* Redistribution and use in source and binary forms, with or without */
7/* modification, are permitted provided that the following conditions are */
8/* met: */
9/* */
10/* 1. Redistributions of source code must retain the above copyright */
11/* notice, this list of conditions and the following disclaimer. */
12/* */
13/* 2. Redistributions in binary form must reproduce the above copyright */
14/* notice, this list of conditions and the following disclaimer in the */
15/* documentation and/or other materials provided with the distribution. */
16/* */
17/* 3. Neither the name of the copyright holder nor the names of its */
18/* contributors may be used to endorse or promote products derived from */
19/* this software without specific prior written permission. */
20/* */
21/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS */
22/* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED */
23/* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A */
24/* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT */
25/* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */
26/* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */
27/* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR */
28/* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */
29/* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */
30/* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS */
31/* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
32/*--------------------------------------------------------------------------*/
33
34#ifndef IP_CSS_DESIGN_CONFIGURATION_H_
35#define IP_CSS_DESIGN_CONFIGURATION_H_
36
37// CSS COMMAND LIST
38// **** --> processing include file 'config_css_commands.txt'
39//
40//
41// List of commands available in CSS
42//
43#define ID_CFG_CSS_CMD_CIPHER 0
44#define ID_CFG_CSS_CMD_AUTH_CIPHER 1
45#define ID_CFG_CSS_CMD_RFU_0 2
46#define ID_CFG_CSS_CMD_RFU_1 3
47#define ID_CFG_CSS_CMD_ECSIGN 4
48#define ID_CFG_CSS_CMD_ECVFY 5
49#define ID_CFG_CSS_CMD_ECKXH 6
50#define ID_CFG_CSS_CMD_RFU_2 7
51#define ID_CFG_CSS_CMD_KEYGEN 8
52#define ID_CFG_CSS_CMD_KEYIN 9
53#define ID_CFG_CSS_CMD_KEYOUT 10
54#define ID_CFG_CSS_CMD_KDELETE 11
55#define ID_CFG_CSS_CMD_KEYPROV 12
56#define ID_CFG_CSS_CMD_RFU_4 13
57#define ID_CFG_CSS_CMD_RFU_5 14
58#define ID_CFG_CSS_CMD_RFU_6 15
59#define ID_CFG_CSS_CMD_CKDF 16
60#define ID_CFG_CSS_CMD_HKDF 17
61#define ID_CFG_CSS_CMD_TLS 18
62#define ID_CFG_CSS_CMD_RFU_7 19
63#define ID_CFG_CSS_CMD_HASH 20
64#define ID_CFG_CSS_CMD_HMAC 21
65#define ID_CFG_CSS_CMD_CMAC 22
66#define ID_CFG_CSS_CMD_RFU_9 23
67#define ID_CFG_CSS_CMD_DRBG_REQ 24
68#define ID_CFG_CSS_CMD_DRBG_TEST 25
69#define ID_CFG_CSS_CMD_RFU_11 26
70#define ID_CFG_CSS_CMD_RFU_12 27
71#define ID_CFG_CSS_CMD_DTRNG_CFG_LOAD 28
72#define ID_CFG_CSS_CMD_DTRNG_EVAL 29
73#define ID_CFG_CSS_CMD_GDET_CFG_LOAD 30
74#define ID_CFG_CSS_CMD_GDET_TRIM 31
75// Command Configurations
76// ID_CFG_CSS_CMD_CIPHER
77#define ID_CFG_CSS_CMD_CIPHER_DCRYPT 1
78#define ID_CFG_CSS_CMD_CIPHER_CPHMDE0 2
79#define ID_CFG_CSS_CMD_CIPHER_CPHMDE1 3
80#define ID_CFG_CSS_CMD_CIPHER_CPHSOE 4
81#define ID_CFG_CSS_CMD_CIPHER_CPHSIE 5
82#define ID_CFG_CSS_CMD_CIPHER_EXTKEY 13
83// ID_CFG_CSS_CMD_AUTH_CIPHER
84#define ID_CFG_CSS_CMD_AUTH_CIPHER_DCRYPT 1
85#define ID_CFG_CSS_CMD_AUTH_CIPHER_ACPMOD0 2
86#define ID_CFG_CSS_CMD_AUTH_CIPHER_ACPMOD1 3
87#define ID_CFG_CSS_CMD_AUTH_CIPHER_CPHSOE 4
88#define ID_CFG_CSS_CMD_AUTH_CIPHER_CPHSIE 5
89#define ID_CFG_CSS_CMD_AUTH_CIPHER_MSGENDW0 6
90#define ID_CFG_CSS_CMD_AUTH_CIPHER_MSGENDW1 7
91#define ID_CFG_CSS_CMD_AUTH_CIPHER_MSGENDW2 8
92#define ID_CFG_CSS_CMD_AUTH_CIPHER_MSGENDW3 9
93#define ID_CFG_CSS_CMD_AUTH_CIPHER_LASTINIT 10
94#define ID_CFG_CSS_CMD_AUTH_CIPHER_EXTKEY 13
95// ID_CFG_CSS_CMD_ECSIGN
96#define ID_CFG_CSS_CMD_ECSIGN_CFG_ECHASHCHL 0
97#define ID_CFG_CSS_CMD_ECSIGN_CFG_SIGNRTF 1
98#define ID_CFG_CSS_CMD_ECSIGN_CFG_REVF 4
99// ID_CFG_CSS_CMD_ECVFY
100#define ID_CFG_CSS_CMD_ECVFY_CFG_ECHASHCHL 0
101#define ID_CFG_CSS_CMD_ECVFY_CFG_REVF 4
102// ID_CFG_CSS_CMD_ECKXH
103#define ID_CFG_CSS_CMD_ECKXH_REVF 4
104// ID_CFG_CSS_CMD_KEYGEN
105#define ID_CFG_CSS_CMD_KEYGEN_KGSIGN 0
106#define ID_CFG_CSS_CMD_KEYGEN_KGTYPEDH 1
107#define ID_CFG_CSS_CMD_KEYGEN_KGSRC 2
108#define ID_CFG_CSS_CMD_KEYGEN_SKIP_PBK 3
109#define ID_CFG_CSS_CMD_KEYGEN_REVF 4
110#define ID_CFG_CSS_CMD_KEYGEN_KGSIGN_RND 5
111// ID_CFG_CSS_CMD_KEYIN
112#define ID_CFG_CSS_CMD_KEYIN_KFMT0 6
113#define ID_CFG_CSS_CMD_KEYIN_KFMT1 7
114// ID_CFG_CSS_CMD_KEYPROV
115#define ID_CFG_CSS_CMD_KEYPROV_ICEN 0
116// ID_CFG_CSS_CMD_CKDF
117#define ID_CFG_CSS_CMD_CKDF_CKDF_ALGO0 12
118#define ID_CFG_CSS_CMD_CKDF_CKDF_ALGO1 13
119// ID_CFG_CSS_CMD_HKDF
120#define ID_CFG_CSS_CMD_HKDF_RTFDRVDAT 0
121#define ID_CFG_CSS_CMD_HKDF_HKDF_ALGO 1
122#define ID_CFG_CSS_CMD_HKDF_SINGLE_STEP 2
123// ID_CFG_CSS_CMD_TLS
124#define ID_CFG_CSS_CMD_TLS_FINALIZE 10
125// ID_CFG_CSS_CMD_HASH
126#define ID_CFG_CSS_CMD_HASH_HASHINI 2
127#define ID_CFG_CSS_CMD_HASH_HASHLD 3
128// ID_CFG_CSS_CMD_HASH_HASHMD0
129#define ID_CFG_CSS_CMD_HASH_HASHMD0 4
130// ID_CFG_CSS_CMD_HASH_HASHMD1
131#define ID_CFG_CSS_CMD_HASH_HASHMD1 5
132#define ID_CFG_CSS_CMD_HASH_HASHOE 6
133#define ID_CFG_CSS_CMD_HASH_RTFUPD 7
134#define ID_CFG_CSS_CMD_HASH_RTFOE 8
135// ID_CFG_CSS_CMD_HMAC
136#define ID_CFG_CSS_CMD_HMAC_EXTKEY 13
137// ID_CFG_CSS_CMD_CMAC
138#define ID_CFG_CSS_CMD_CMAC_INIT 0
139#define ID_CFG_CSS_CMD_CMAC_FINALIZE 1
140#define ID_CFG_CSS_CMD_CMAC_SOE 2
141#define ID_CFG_CSS_CMD_CMAC_SIE 3
142#define ID_CFG_CSS_CMD_CMAC_EXTKEY 13
143// ID_CFG_CSS_CMD_DRBG_TEST
144#define ID_CFG_CSS_CMD_DRBG_TEST_MODE0 0
145#define ID_CFG_CSS_CMD_DRBG_TEST_MODE1 1
146
147#endif /* IP_CSS_DESIGN_CONFIGURATION_H_ */