WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
crypto_symc_struct.h
浏览该文件的文档.
1
9#ifndef CRYPTO_SYMC_STRUCT_H
10#define CRYPTO_SYMC_STRUCT_H
11
13
14/* Structure for SYMC Create. */
21
31
45
54
61
70
88
95
100
110
120
121typedef struct {
123 td_u32 aad_len; /* Addition Data Length In Bytes. */
124 td_u32 data_len; /* Crypto Data Length In Bytes. */
125 td_u32 tag_len; /* Tag Length In Bytes. */
127
139
140typedef struct {
141 td_u32 chn_id; /* Channel number */
142 td_u32 open; /* Open or closed */
143 td_u32 is_decrypt; /* Decrypt or encrypt */
144 td_u32 alg; /* Algorithm */
145 td_u32 mode; /* Work mode */
146 td_u32 key_len; /* Key length */
147 td_u32 key_source; /* Hard or soft key */
148 td_u32 int_raw; /* Raw intertupt */
149 td_u32 int_en; /* Enable interrupt */
150 td_u32 int_status; /* Status interrupt */
151 td_u32 owner; /* Process PID of owner */
152 td_u32 is_secure; /* Secure channel or not */
153 td_u32 smmu_enable; /* Smmu enable */
154 td_u32 in_node_head; /* In node list head */
155 td_u32 in_node_rptr; /* In node list read index */
156 td_u32 in_node_wptr; /* In node list write index */
157 td_u32 in_node_depth; /* In node depth */
158 td_u32 out_node_head; /* Out node list head */
159 td_u32 out_node_rptr; /* Out node list read index */
160 td_u32 out_node_wptr; /* Out node list write index */
161 td_u32 out_node_depth; /* Out node depth */
164
165typedef struct {
166 td_u32 allow_reset; /* allow reset CPU or not */
167 td_u32 sec_cpu; /* secure CPU or not */
168 const char *name; /* interrupt name */
169 td_u32 int_num; /* interrupt number */
170 td_u32 int_en; /* interrupt enable */
171 td_u32 smmu_base; /* smmu base address */
172 td_u32 err_code; /* error code */
174
182
183#endif
#define CRYPTO_AES_IV_SIZE_IN_WORD
Definition crypto_common_def.h:17
#define CRYPTO_IV_LEN_IN_BYTES
Definition crypto_common_def.h:19
#define CRYPTO_AES_IV_SIZE
Definition crypto_common_def.h:16
crypto_symc_type
Definition crypto_symc_struct.h:15
@ CRYPTO_SYMC_TYPE_MAX
Definition crypto_symc_struct.h:18
@ CRYPTO_SYMC_TYPE_REG
Definition crypto_symc_struct.h:17
@ CRYPTO_SYMC_TYPE_NORMAL
Definition crypto_symc_struct.h:16
@ CRYPTO_SYMC_TYPE_INVALID
Definition crypto_symc_struct.h:19
crypto_symc_work_mode
Definition crypto_symc_struct.h:32
@ CRYPTO_SYMC_WORK_MODE_OFB
Definition crypto_symc_struct.h:36
@ CRYPTO_SYMC_WORK_MODE_INVALID
Definition crypto_symc_struct.h:43
@ CRYPTO_SYMC_WORK_MODE_CBC
Definition crypto_symc_struct.h:34
@ CRYPTO_SYMC_WORK_MODE_CTR
Definition crypto_symc_struct.h:35
@ CRYPTO_SYMC_WORK_MODE_GCM
Definition crypto_symc_struct.h:39
@ CRYPTO_SYMC_WORK_MODE_CCM
Definition crypto_symc_struct.h:38
@ CRYPTO_SYMC_WORK_MODE_CMAC
Definition crypto_symc_struct.h:41
@ CRYPTO_SYMC_WORK_MODE_CFB
Definition crypto_symc_struct.h:37
@ CRYPTO_SYMC_WORK_MODE_ECB
Definition crypto_symc_struct.h:33
@ CRYPTO_SYMC_WORK_MODE_MAX
Definition crypto_symc_struct.h:42
@ CRYPTO_SYMC_WORK_MODE_CBC_MAC
Definition crypto_symc_struct.h:40
crypto_symc_iv_change_type
Definition crypto_symc_struct.h:71
@ CRYPTO_SYMC_CCM_IV_CHANGE_UPDATE
Definition crypto_symc_struct.h:83
@ CRYPTO_SYMC_IV_CHANGE_INVALID
Definition crypto_symc_struct.h:86
@ CRYPTO_SYMC_IV_DO_NOT_CHANGE
Definition crypto_symc_struct.h:72
@ CRYPTO_SYMC_CCM_IV_DO_NOT_CHANGE
Definition crypto_symc_struct.h:81
@ CRYPTO_SYMC_CCM_IV_CHANGE_START
Definition crypto_symc_struct.h:82
@ CRYPTO_SYMC_IV_CHANGE_MAX
Definition crypto_symc_struct.h:85
@ CRYPTO_SYMC_GCM_IV_CHANGE_UPDATE
Definition crypto_symc_struct.h:78
@ CRYPTO_SYMC_IV_CHANGE_ONE_PKG
Definition crypto_symc_struct.h:73
@ CRYPTO_SYMC_IV_CHANGE_ALL_PKG
Definition crypto_symc_struct.h:74
@ CRYPTO_SYMC_GCM_IV_CHANGE_START
Definition crypto_symc_struct.h:77
@ CRYPTO_SYMC_GCM_IV_DO_NOT_CHANGE
Definition crypto_symc_struct.h:76
@ CRYPTO_SYMC_CCM_IV_CHANGE_FINISH
Definition crypto_symc_struct.h:84
@ CRYPTO_SYMC_GCM_IV_CHANGE_FINISH
Definition crypto_symc_struct.h:79
crypto_symc_alg
Definition crypto_symc_struct.h:22
@ CRYPTO_SYMC_ALG_INVALID
Definition crypto_symc_struct.h:29
@ CRYPTO_SYMC_ALG_AES
Definition crypto_symc_struct.h:24
@ CRYPTO_SYMC_ALG_SM4
Definition crypto_symc_struct.h:25
@ CRYPTO_SYMC_ALG_DMA
Definition crypto_symc_struct.h:27
@ CRYPTO_SYMC_ALG_LEA
Definition crypto_symc_struct.h:26
@ CRYPTO_SYMC_ALG_TDES
Definition crypto_symc_struct.h:23
@ CRYPTO_SYMC_ALG_MAX
Definition crypto_symc_struct.h:28
crypto_symc_bit_width
Definition crypto_symc_struct.h:62
@ CRYPTO_SYMC_BIT_WIDTH_INVALID
Definition crypto_symc_struct.h:68
@ CRYPTO_SYMC_BIT_WIDTH_8BIT
Definition crypto_symc_struct.h:64
@ CRYPTO_SYMC_BIT_WIDTH_64BIT
Definition crypto_symc_struct.h:65
@ CRYPTO_SYMC_BIT_WIDTH_1BIT
Definition crypto_symc_struct.h:63
@ CRYPTO_SYMC_BIT_WIDTH_128BIT
Definition crypto_symc_struct.h:66
@ CRYPTO_SYMC_BIT_WIDTH_MAX
Definition crypto_symc_struct.h:67
crypto_symc_key_length
Definition crypto_symc_struct.h:46
@ CRYPTO_SYMC_KEY_64BIT
Definition crypto_symc_struct.h:47
@ CRYPTO_SYMC_KEY_256BIT
Definition crypto_symc_struct.h:50
@ CRYPTO_SYMC_KEY_192BIT
Definition crypto_symc_struct.h:49
@ CRYPTO_SYMC_KEY_LENGTH_MAX
Definition crypto_symc_struct.h:51
@ CRYPTO_SYMC_KEY_128BIT
Definition crypto_symc_struct.h:48
@ CRYPTO_SYMC_KEY_LENGTH_INVALID
Definition crypto_symc_struct.h:52
crypto_symc_key_parity
Definition crypto_symc_struct.h:55
@ CRYPTO_SYMC_KEY_PARITY_MAX
Definition crypto_symc_struct.h:58
@ CRYPTO_SYMC_KEY_EVEN
Definition crypto_symc_struct.h:56
@ CRYPTO_SYMC_KEY_ODD
Definition crypto_symc_struct.h:57
@ CRYPTO_SYMC_KEY_PARITY_INVALID
Definition crypto_symc_struct.h:59
Definition crypto_common_struct.h:19
Definition crypto_symc_struct.h:89
crypto_symc_alg symc_alg
Definition crypto_symc_struct.h:90
td_bool is_long_term
Definition crypto_symc_struct.h:93
crypto_symc_type symc_type
Definition crypto_symc_struct.h:92
crypto_symc_work_mode work_mode
Definition crypto_symc_struct.h:91
Definition crypto_symc_struct.h:111
td_u32 subsample_num
Definition crypto_symc_struct.h:115
td_bool use_odd_key
Definition crypto_symc_struct.h:112
crypto_symc_alg alg
Definition crypto_symc_struct.h:116
crypto_symc_cenc_subsample * subsample
Definition crypto_symc_struct.h:114
td_u32 first_encrypt_offset
Definition crypto_symc_struct.h:113
crypto_symc_work_mode work_mode
Definition crypto_symc_struct.h:117
Definition crypto_symc_struct.h:101
td_bool iv_change
Definition crypto_symc_struct.h:107
td_u32 payload_pattern_clear_len
Definition crypto_symc_struct.h:105
td_u32 payload_pattern_offset_len
Definition crypto_symc_struct.h:106
td_u32 payload_pattern_encrypt_len
Definition crypto_symc_struct.h:104
td_u32 clear_header_len
Definition crypto_symc_struct.h:102
td_u32 payload_len
Definition crypto_symc_struct.h:103
Definition crypto_symc_struct.h:121
td_u32 tag_len
Definition crypto_symc_struct.h:125
td_u32 data_len
Definition crypto_symc_struct.h:124
td_u32 aad_len
Definition crypto_symc_struct.h:123
crypto_buf_attr aad_buf
Definition crypto_symc_struct.h:122
Definition crypto_symc_struct.h:128
crypto_symc_bit_width symc_bit_width
Definition crypto_symc_struct.h:133
crypto_symc_key_parity key_parity
Definition crypto_symc_struct.h:132
crypto_symc_alg symc_alg
Definition crypto_symc_struct.h:129
crypto_symc_iv_change_type iv_change_flag
Definition crypto_symc_struct.h:134
td_u32 iv_length
Definition crypto_symc_struct.h:136
crypto_symc_work_mode work_mode
Definition crypto_symc_struct.h:130
crypto_symc_key_length symc_key_length
Definition crypto_symc_struct.h:131
td_void * param
Definition crypto_symc_struct.h:137
Definition crypto_symc_struct.h:175
crypto_symc_alg symc_alg
Definition crypto_symc_struct.h:177
td_u32 keyslot_chn
Definition crypto_symc_struct.h:180
crypto_symc_key_length symc_key_length
Definition crypto_symc_struct.h:179
td_bool is_long_term
Definition crypto_symc_struct.h:176
crypto_symc_work_mode work_mode
Definition crypto_symc_struct.h:178
Definition crypto_symc_struct.h:165
td_u32 smmu_base
Definition crypto_symc_struct.h:171
td_u32 sec_cpu
Definition crypto_symc_struct.h:167
td_u32 allow_reset
Definition crypto_symc_struct.h:166
td_u32 int_num
Definition crypto_symc_struct.h:169
td_u32 err_code
Definition crypto_symc_struct.h:172
const char * name
Definition crypto_symc_struct.h:168
td_u32 int_en
Definition crypto_symc_struct.h:170
Definition crypto_symc_struct.h:96
crypto_buf_attr buf_attr
Definition crypto_symc_struct.h:97
td_u32 length
Definition crypto_symc_struct.h:98
Definition crypto_symc_struct.h:140
td_u32 alg
Definition crypto_symc_struct.h:144
td_u32 mode
Definition crypto_symc_struct.h:145
td_u32 out_node_rptr
Definition crypto_symc_struct.h:159
td_u32 in_node_wptr
Definition crypto_symc_struct.h:156
td_u32 out_node_wptr
Definition crypto_symc_struct.h:160
td_u32 key_len
Definition crypto_symc_struct.h:146
td_u32 is_decrypt
Definition crypto_symc_struct.h:143
td_u32 int_status
Definition crypto_symc_struct.h:150
td_u32 key_source
Definition crypto_symc_struct.h:147
td_u32 int_en
Definition crypto_symc_struct.h:149
td_u32 out_node_head
Definition crypto_symc_struct.h:158
td_u32 open
Definition crypto_symc_struct.h:142
td_u32 in_node_depth
Definition crypto_symc_struct.h:157
td_u32 owner
Definition crypto_symc_struct.h:151
td_u32 smmu_enable
Definition crypto_symc_struct.h:153
td_u32 chn_id
Definition crypto_symc_struct.h:141
td_u32 in_node_head
Definition crypto_symc_struct.h:154
td_u32 int_raw
Definition crypto_symc_struct.h:148
td_u32 is_secure
Definition crypto_symc_struct.h:152
td_u32 out_node_depth
Definition crypto_symc_struct.h:161
td_u32 in_node_rptr
Definition crypto_symc_struct.h:155
unsigned char td_u8
Definition td_type.h:36
td_u8 td_bool
Definition td_type.h:50
void td_void
Definition td_type.h:49
unsigned int td_u32
Definition td_type.h:38