WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
drv_inner.h
浏览该文件的文档.
1
9#ifndef DRV_INNER_H
10#define DRV_INNER_H
11
12#include "crypto_hash_struct.h"
13#include "crypto_kdf_struct.h"
14#include "crypto_symc_struct.h"
15#include "crypto_pke_struct.h"
16
17#ifdef __cplusplus
18#if __cplusplus
19extern "C" {
20#endif /* __cplusplus */
21#endif /* __cplusplus */
22
29
67
69
71 const drv_pke_ecc_point *r);
72
74 const drv_pke_ecc_point *c);
75
77 const drv_pke_data *a24, const drv_pke_data *rx);
78
80 const drv_pke_ecc_point *r);
81
83 const drv_pke_ecc_point *r, const drv_pke_ecc_point *c);
84
86 drv_pke_data *hash);
87
89
90const td_u32 *drv_hash_get_state_iv(crypto_hash_type hash_type, td_u32 *iv_size);
91
93
94td_s32 inner_hash_start_param_chk(td_handle *drv_hash_handle, const crypto_hash_attr *hash_attr);
95
97
99 const crypto_buf_attr *dst_buf, td_u32 length);
100
102
104
105td_s32 inner_drv_set_mac_ctx(td_handle symc_handle, const crypto_symc_mac_ctx *mac_ctx);
106
108
109
119
120td_s32 inner_drv_symc_get_iv0(td_handle symc_handle, td_u8 *iv0, td_u32 iv0_length);
121
122td_s32 inner_drv_symc_get_iv_mac(td_handle symc_handle, td_u8 *iv_mac, td_u32 iv_mac_length);
123
125
126td_s32 inner_drv_symc_set_ctr_block(td_handle symc_handle, const td_u8 *block, td_u32 block_size, td_u32 ctr_offset);
127
128td_s32 inner_drv_symc_get_ctr_block(td_handle symc_handle, td_u8 *block, td_u32 block_size, td_u32 *ctr_offset);
129
130#ifdef __cplusplus
131#if __cplusplus
132}
133#endif /* __cplusplus */
134#endif /* __cplusplus */
135
136#endif
#define CRYPTO_IV_LEN_IN_BYTES
Definition crypto_common_def.h:19
#define CRYPTO_AES_BLOCK_SIZE_IN_BYTES
Definition crypto_common_def.h:28
crypto_hash_type
Definition crypto_hash_struct.h:98
drv_pke_hash_type
Definition crypto_pke_struct.h:57
crypto_symc_work_mode
Definition crypto_symc_struct.h:32
crypto_symc_alg
Definition crypto_symc_struct.h:22
crypto_symc_key_length
Definition crypto_symc_struct.h:46
td_s32 drv_cipher_pke_ed_add_dot(const drv_pke_ecc_curve *ecc, const drv_pke_ecc_point *s, const drv_pke_ecc_point *r, const drv_pke_ecc_point *c)
td_s32 inner_symc_drv_handle_chk(td_handle symc_handle)
Definition drv_symc.c:26
td_s32 drv_cipher_pke_ed_mul_dot(const drv_pke_data *k, const drv_pke_ecc_point *U, const drv_pke_data *p, const drv_pke_ecc_point *r)
td_s32 inner_drv_get_mac_ctx(td_handle symc_handle, crypto_symc_mac_ctx *mac_ctx)
Definition drv_symc.c:1125
td_s32 drv_cipher_pke_mg_mul_dot(const drv_pke_data *k, const drv_pke_data *U, const drv_pke_data *p, const drv_pke_data *a24, const drv_pke_data *rx)
td_s32 inner_hash_start_param_chk(td_handle *drv_hash_handle, const crypto_hash_attr *hash_attr)
Definition drv_hash.c:808
td_s32 inner_pbkdf2_param_chk(const crypto_kdf_pbkdf2_param *param, const td_u8 *out, td_u32 out_len)
td_s32 inner_drv_symc_set_ctr_block(td_handle symc_handle, const td_u8 *block, td_u32 block_size, td_u32 ctr_offset)
td_s32 drv_cipher_pke_mul_dot(const drv_pke_ecc_curve *ecc, const drv_pke_data *k, const drv_pke_ecc_point *p, const drv_pke_ecc_point *r)
Definition drv_pke_ecc_cal.c:27
drv_symc_context_t * inner_get_symc_ctx(td_handle symc_handle)
Definition drv_symc.c:38
td_s32 drv_cipher_pke_add_dot(const drv_pke_ecc_curve *ecc, const drv_pke_ecc_point *s, const drv_pke_ecc_point *r, const drv_pke_ecc_point *c)
td_s32 inner_drv_symc_get_ctr_block(td_handle symc_handle, td_u8 *block, td_u32 block_size, td_u32 *ctr_offset)
td_s32 drv_cipher_pke_calc_hash(const drv_pke_data *arr, td_u32 arr_len, const drv_pke_hash_type hash_type, drv_pke_data *hash)
td_s32 inner_drv_set_mac_ctx(td_handle symc_handle, const crypto_symc_mac_ctx *mac_ctx)
Definition drv_symc.c:1145
td_s32 inner_symc_cfg_param_check(const crypto_symc_ctrl_t *symc_ctrl)
Definition drv_symc.c:212
td_s32 inner_drv_symc_ex_restore(td_handle symc_handle, const drv_symc_ex_context_t *symc_ex_ctx)
td_s32 inner_drv_symc_get_iv0(td_handle symc_handle, td_u8 *iv0, td_u32 iv0_length)
td_s32 inner_hash_drv_handle_chk(td_handle hash_handle)
Definition drv_hash.c:797
const td_u32 * drv_hash_get_state_iv(crypto_hash_type hash_type, td_u32 *iv_size)
Definition drv_hash.c:782
td_s32 inner_drv_symc_get_iv_mac(td_handle symc_handle, td_u8 *iv_mac, td_u32 iv_mac_length)
td_s32 drv_cipher_pke_clean_ram(void)
td_s32 inner_drv_symc_crypto_chk(td_handle symc_handle, const crypto_buf_attr *src_buf, const crypto_buf_attr *dst_buf, td_u32 length)
Definition drv_symc.c:1197
Definition crypto_common_struct.h:19
Definition crypto_hash_struct.h:154
Definition crypto_kdf_struct.h:15
Definition crypto_symc_struct.h:121
Definition crypto_symc_struct.h:128
Definition drv_inner.h:23
td_u32 mac_length
Definition drv_inner.h:25
td_u32 tail_length
Definition drv_inner.h:27
Definition crypto_pke_struct.h:74
Definition crypto_pke_struct.h:96
Definition crypto_pke_struct.h:80
Definition drv_inner.h:30
td_u32 data_len
Definition drv_inner.h:51
td_u8 * dma_addr
Definition drv_inner.h:49
crypto_symc_key_length symc_key_length
Definition drv_inner.h:39
td_u32 tail_length
Definition drv_inner.h:54
td_u32 last_pattern_len
Definition drv_inner.h:40
crypto_symc_config_aes_ccm_gcm ccm_config
Definition drv_inner.h:42
crypto_symc_work_mode work_mode
Definition drv_inner.h:38
td_u32 dma_size
Definition drv_inner.h:50
td_u8 * aad_virt
Definition drv_inner.h:35
td_u32 processed_len
Definition drv_inner.h:52
td_bool is_create_keyslot
Definition drv_inner.h:55
td_u32 iv_length
Definition drv_inner.h:32
td_u32 chn_num
Definition drv_inner.h:33
td_handle keyslot_handle
Definition drv_inner.h:56
td_u32 iv_change_flag
Definition drv_inner.h:60
td_phys_addr_t aad_phys
Definition drv_inner.h:34
td_u32 aad_len
Definition drv_inner.h:36
td_bool is_config
Definition drv_inner.h:58
td_bool is_open
Definition drv_inner.h:57
td_bool is_attached
Definition drv_inner.h:59
crypto_symc_alg symc_alg
Definition drv_inner.h:37
Definition drv_inner.h:110
td_u32 processed_length
Definition drv_inner.h:116
td_u32 data_length
Definition drv_inner.h:115
td_u8 * iv0
Definition drv_inner.h:111
td_u32 iv_mac_length
Definition drv_inner.h:114
td_u32 iv0_length
Definition drv_inner.h:112
td_u32 aad_len
Definition drv_inner.h:117
td_u8 * iv_mac
Definition drv_inner.h:113
td_u32 td_handle
Definition td_type.h:51
unsigned char td_u8
Definition td_type.h:36
td_u8 td_bool
Definition td_type.h:50
unsigned int td_u32
Definition td_type.h:38
int td_s32
Definition td_type.h:44
unsigned int td_phys_addr_t
Definition td_type.h:74