1 Star 0 Fork 0

vsf-linux / xfel

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
sha256.h 521 Bytes
一键复制 编辑 原始数据 按行查看 历史
xboot 提交于 2022-04-29 19:07 . [xfel]add xfel sign command support
#ifndef __SHA256_H__
#define __SHA256_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <x.h>
#define SHA256_DIGEST_SIZE (32)
struct sha256_ctx_t {
uint64_t count;
uint8_t buf[64];
uint32_t state[8];
};
void sha256_init(struct sha256_ctx_t * ctx);
void sha256_update(struct sha256_ctx_t * ctx, const void * data, int len);
const uint8_t * sha256_final(struct sha256_ctx_t * ctx);
const uint8_t * sha256_hash(const void * data, int len, uint8_t * digest);
#ifdef __cplusplus
}
#endif
#endif /* __SHA256_H__ */
1
https://gitee.com/vsf-linux/xfel.git
git@gitee.com:vsf-linux/xfel.git
vsf-linux
xfel
xfel
master

搜索帮助