WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
SHA256

宏定义

#define SHA256_HASH_SIZE   32
 

函数

errcode_t uapi_drv_cipher_sha256_start (uint32_t *hash_handle)
 创建sha256通道。
 
errcode_t uapi_drv_cipher_sha256_update (uint32_t hash_handle, const uint8_t *buf, uint32_t len)
 Sha256计算
 
errcode_t uapi_drv_cipher_sha256_finish (uint32_t hash_handle, uint8_t *out, uint32_t *out_len)
 Sha256计算获取摘要信息,并在计算成功的时候销毁hash句柄。
 
errcode_t uapi_drv_cipher_sha256 (const uint8_t *buf, uint32_t len, uint8_t *out, uint32_t out_len)
 Sha256计算
 

详细描述

Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved. Description: Provides SHA256 header

Create: 2023-12-13

宏定义说明

◆ SHA256_HASH_SIZE

#define SHA256_HASH_SIZE   32

函数说明

◆ uapi_drv_cipher_sha256()

errcode_t uapi_drv_cipher_sha256 ( const uint8_t *  buf,
uint32_t  len,
uint8_t *  out,
uint32_t  out_len 
)

Sha256计算

◆ uapi_drv_cipher_sha256_finish()

errcode_t uapi_drv_cipher_sha256_finish ( uint32_t  hash_handle,
uint8_t *  out,
uint32_t *  out_len 
)

Sha256计算获取摘要信息,并在计算成功的时候销毁hash句柄。

◆ uapi_drv_cipher_sha256_start()

errcode_t uapi_drv_cipher_sha256_start ( uint32_t *  hash_handle)

创建sha256通道。

◆ uapi_drv_cipher_sha256_update()

errcode_t uapi_drv_cipher_sha256_update ( uint32_t  hash_handle,
const uint8_t *  buf,
uint32_t  len 
)

Sha256计算