WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
drv_symc.h
浏览该文件的文档.
1
9#ifndef DRV_SYMC_H
10#define DRV_SYMC_H
11
12#include "crypto_type.h"
13#include "crypto_symc_struct.h"
14
15#ifdef __cplusplus
16#if __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19#endif /* __cplusplus */
20
22
24
25td_s32 drv_cipher_symc_create(td_handle *symc_handle, const crypto_symc_attr *symc_attr);
26
28
30
32
34
36
37td_s32 drv_cipher_symc_attach(td_handle symc_handle, td_handle keyslot_handle);
38
40
41td_s32 drv_cipher_dma_copy(const crypto_buf_attr *src_buf, const crypto_buf_attr *dst_buf, td_u32 length);
42
44 const crypto_buf_attr *dst_buf, td_u32 length);
45
47 const crypto_buf_attr *dst_buf, td_u32 length);
48
50 const crypto_symc_pack *src_buf_pack, const crypto_symc_pack *dst_buf_pack, td_u32 pack_num);
51
53 const crypto_symc_pack *src_buf_pack, const crypto_symc_pack *dst_buf_pack, td_u32 pack_num);
54
56 const crypto_buf_attr *src_buf, const crypto_buf_attr *dst_buf, td_u32 length);
57
58td_s32 drv_cipher_symc_get_tag(td_handle symc_handle, td_u8 *tag, td_u32 tag_length);
59
60td_s32 drv_cipher_mac_start(td_handle *symc_handle, const crypto_symc_mac_attr *mac_attr);
61
62td_s32 drv_cipher_mac_update(td_handle symc_handle, const crypto_buf_attr *src_buf, td_u32 length);
63
64td_s32 drv_cipher_mac_finish(td_handle symc_handle, td_u8 *mac, td_u32 *mac_length);
65
66td_s32 drv_cipher_symc_set_key(td_handle symc_handle, td_u8 *key, td_u32 key_len);
67
69
70#ifdef __cplusplus
71#if __cplusplus
72}
73#endif /* __cplusplus */
74#endif /* __cplusplus */
75
76#endif
td_s32 drv_cipher_symc_get_module_info(crypto_symc_module_info *module_info)
td_s32 drv_cipher_symc_get_tag(td_handle symc_handle, td_u8 *tag, td_u32 tag_length)
Definition drv_symc.c:1034
td_s32 drv_cipher_symc_get_config(td_handle symc_handle, crypto_symc_ctrl_t *symc_ctrl)
Definition drv_symc.c:368
td_s32 drv_cipher_symc_encrypt(td_handle symc_handle, const crypto_buf_attr *src_buf, const crypto_buf_attr *dst_buf, td_u32 length)
Definition drv_symc.c:1002
td_void drv_cipher_debug_handle(td_handle symc_handle)
Definition drv_symc.c:1191
td_s32 drv_cipher_symc_set_key(td_handle symc_handle, td_u8 *key, td_u32 key_len)
Definition drv_symc.c:1165
td_s32 drv_cipher_symc_create(td_handle *symc_handle, const crypto_symc_attr *symc_attr)
Definition drv_symc.c:81
td_s32 drv_cipher_symc_encrypt_multi(td_handle symc_handle, const crypto_symc_ctrl_t *symc_ctrl, const crypto_symc_pack *src_buf_pack, const crypto_symc_pack *dst_buf_pack, td_u32 pack_num)
td_s32 drv_cipher_symc_deinit(td_void)
Definition drv_symc.c:68
td_s32 drv_cipher_mac_finish(td_handle symc_handle, td_u8 *mac, td_u32 *mac_length)
Definition drv_symc_mac_hard.c:227
td_s32 drv_cipher_symc_decrypt(td_handle symc_handle, const crypto_buf_attr *src_buf, const crypto_buf_attr *dst_buf, td_u32 length)
Definition drv_symc.c:1018
td_s32 drv_cipher_symc_get_keyslot_handle(td_handle symc_handle, td_handle *keyslot_handle)
td_s32 drv_cipher_dma_copy(const crypto_buf_attr *src_buf, const crypto_buf_attr *dst_buf, td_u32 length)
Definition drv_symc.c:1072
td_s32 drv_cipher_symc_set_config(td_handle symc_handle, const crypto_symc_ctrl_t *symc_ctrl)
Definition drv_symc.c:318
td_s32 drv_cipher_symc_destroy(td_handle symc_handle)
Definition drv_symc.c:123
td_s32 drv_cipher_symc_get_proc_info(td_handle symc_handle, crypto_symc_proc_info *proc_symc_info)
td_s32 drv_cipher_symc_attach(td_handle symc_handle, td_handle keyslot_handle)
Definition drv_symc.c:413
td_s32 drv_cipher_symc_cenc_decrypt(td_handle symc_handle, const crypto_symc_cenc_param *cenc_param, const crypto_buf_attr *src_buf, const crypto_buf_attr *dst_buf, td_u32 length)
td_s32 drv_cipher_symc_decrypt_multi(td_handle symc_handle, const crypto_symc_ctrl_t *symc_ctrl, const crypto_symc_pack *src_buf_pack, const crypto_symc_pack *dst_buf_pack, td_u32 pack_num)
td_s32 drv_cipher_symc_init(td_void)
Definition drv_symc.c:49
td_s32 drv_cipher_mac_start(td_handle *symc_handle, const crypto_symc_mac_attr *mac_attr)
Definition drv_symc_mac_hard.c:20
td_s32 drv_cipher_mac_update(td_handle symc_handle, const crypto_buf_attr *src_buf, td_u32 length)
Definition drv_symc_mac_hard.c:149
Definition crypto_common_struct.h:19
Definition crypto_symc_struct.h:89
Definition crypto_symc_struct.h:111
Definition crypto_symc_struct.h:128
Definition crypto_symc_struct.h:175
Definition crypto_symc_struct.h:165
Definition crypto_symc_struct.h:96
Definition crypto_symc_struct.h:140
td_u32 td_handle
Definition td_type.h:51
unsigned char td_u8
Definition td_type.h:36
void td_void
Definition td_type.h:49
unsigned int td_u32
Definition td_type.h:38
int td_s32
Definition td_type.h:44