📄 sha256.h
字号:
#ifndef __DRSEC_SHA256_H
#define __DRSEC_SHA256_H
#if defined(__cplusplus)
extern "C"
{
#endif
#ifndef u8
#define u8 unsigned char
#endif
#ifndef u32
#define u32 unsigned long
#endif
struct sha256Context
{
u32 len[2];
u32 state[8];
u8 block[128];
};
void ds_sha256Init ( struct sha256Context *ctx );
void ds_sha256Update( struct sha256Context *ctx, u8 *buf, u32 buflen );
void ds_sha256Final ( struct sha256Context *ctx, u8 digest[32] );
#if defined(__cplusplus)
}
#endif
#endif /* __DRSEC_SHA256_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -