|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
宏定义 | |
| #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
| #define SHA256_HASH_SIZE 32 |
| errcode_t uapi_drv_cipher_sha256 | ( | const uint8_t * | buf, |
| uint32_t | len, | ||
| uint8_t * | out, | ||
| uint32_t | out_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_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计算