WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
security_sha256.h
浏览该文件的文档.
1
8#ifndef SECURITY_SHA256_H
9#define SECURITY_SHA256_H
10
11#include <stdint.h>
12#include "errcode.h"
13
14
15#ifdef __cplusplus
16#if __cplusplus
17extern "C" {
18#endif
19#endif
20
27#ifndef SHA256_HASH_SIZE
28#define SHA256_HASH_SIZE 32
29#endif
30
44errcode_t uapi_drv_cipher_sha256_start(uint32_t *hash_handle);
45
72errcode_t uapi_drv_cipher_sha256_update(uint32_t hash_handle, const uint8_t *buf, uint32_t len);
73
94errcode_t uapi_drv_cipher_sha256_finish(uint32_t hash_handle, uint8_t *out, uint32_t *out_len);
95
116errcode_t uapi_drv_cipher_sha256(const uint8_t *buf, uint32_t len, uint8_t *out, uint32_t out_len);
117
118
123#ifdef __cplusplus
124#if __cplusplus
125}
126#endif
127#endif
128
129#endif
uint32_t errcode_t
Definition of error code.
Definition errcode.h:30
errcode_t uapi_drv_cipher_sha256_start(uint32_t *hash_handle)
创建sha256通道。
Definition security_sha256.c:13
errcode_t uapi_drv_cipher_sha256(const uint8_t *buf, uint32_t len, uint8_t *out, uint32_t out_len)
Sha256计算
Definition security_sha256.c:34
errcode_t uapi_drv_cipher_sha256_finish(uint32_t hash_handle, uint8_t *out, uint32_t *out_len)
Sha256计算获取摘要信息,并在计算成功的时候销毁hash句柄。
Definition security_sha256.c:29
errcode_t uapi_drv_cipher_sha256_update(uint32_t hash_handle, const uint8_t *buf, uint32_t len)
Sha256计算
Definition security_sha256.c:19