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