WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
kapi_hash.h 文件参考
#include "crypto_type.h"
#include "crypto_hash_struct.h"
#include "crypto_kdf_struct.h"
#include "crypto_drv_common.h"
kapi_hash.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

结构体

struct  crypto_kapi_hash_ctx
 
struct  crypto_kapi_hash_process
 

宏定义

#define KAPI_HASH_MODULE_ID   0x02
 

函数

td_s32 kapi_cipher_hash_init (td_void)
 
td_s32 kapi_cipher_hash_deinit (td_void)
 
td_s32 kapi_cipher_hash_start (td_handle *kapi_hash_handle, const crypto_hash_attr *hash_attr)
 
td_s32 kapi_cipher_hash_update (td_handle kapi_hash_handle, const crypto_buf_attr *src_buf, const td_u32 len)
 
td_s32 kapi_cipher_hash_finish (td_handle kapi_hash_handle, td_u8 *out, td_u32 *out_len)
 
td_s32 kapi_cipher_hash_get (td_handle kapi_hash_handle, crypto_hash_clone_ctx *hash_clone_ctx)
 
td_s32 kapi_cipher_hash_set (td_handle kapi_hash_handle, const crypto_hash_clone_ctx *hash_clone_ctx)
 
td_s32 kapi_cipher_hash_destroy (td_handle kapi_hash_handle)
 
td_s32 kapi_cipher_pbkdf2 (const crypto_kdf_pbkdf2_param *param, td_u8 *out, const td_u32 out_len)
 
td_s32 kapi_cipher_hkdf_extract (crypto_hkdf_extract_t *extract_param, td_u8 *prk, td_u32 *prk_length)
 
td_s32 kapi_cipher_hkdf_expand (const crypto_hkdf_expand_t *expand_param, td_u8 *okm, td_u32 okm_length)
 
td_s32 kapi_cipher_hkdf (crypto_hkdf_t *hkdf_param, td_u8 *okm, td_u32 okm_length)
 

宏定义说明

◆ KAPI_HASH_MODULE_ID

#define KAPI_HASH_MODULE_ID   0x02

Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved. Description: hash kernel API header file.

Create: 2023-05-26

函数说明

◆ kapi_cipher_hash_deinit()

td_s32 kapi_cipher_hash_deinit ( td_void  )

◆ kapi_cipher_hash_destroy()

td_s32 kapi_cipher_hash_destroy ( td_handle  kapi_hash_handle)

◆ kapi_cipher_hash_finish()

td_s32 kapi_cipher_hash_finish ( td_handle  kapi_hash_handle,
td_u8 out,
td_u32 out_len 
)

◆ kapi_cipher_hash_get()

td_s32 kapi_cipher_hash_get ( td_handle  kapi_hash_handle,
crypto_hash_clone_ctx hash_clone_ctx 
)

◆ kapi_cipher_hash_init()

td_s32 kapi_cipher_hash_init ( td_void  )

◆ kapi_cipher_hash_set()

td_s32 kapi_cipher_hash_set ( td_handle  kapi_hash_handle,
const crypto_hash_clone_ctx hash_clone_ctx 
)

◆ kapi_cipher_hash_start()

td_s32 kapi_cipher_hash_start ( td_handle kapi_hash_handle,
const crypto_hash_attr hash_attr 
)

◆ kapi_cipher_hash_update()

td_s32 kapi_cipher_hash_update ( td_handle  kapi_hash_handle,
const crypto_buf_attr src_buf,
const td_u32  len 
)

◆ kapi_cipher_hkdf()

td_s32 kapi_cipher_hkdf ( crypto_hkdf_t hkdf_param,
td_u8 okm,
td_u32  okm_length 
)

◆ kapi_cipher_hkdf_expand()

td_s32 kapi_cipher_hkdf_expand ( const crypto_hkdf_expand_t expand_param,
td_u8 okm,
td_u32  okm_length 
)

◆ kapi_cipher_hkdf_extract()

td_s32 kapi_cipher_hkdf_extract ( crypto_hkdf_extract_t extract_param,
td_u8 prk,
td_u32 prk_length 
)

◆ kapi_cipher_pbkdf2()

td_s32 kapi_cipher_pbkdf2 ( const crypto_kdf_pbkdf2_param param,
td_u8 out,
const td_u32  out_len 
)