Files
mirror-processhacker/2.x/trunk/phlib/include/sha.h
T
wj32 bd6371953e added MD5 and SHA implementations to avoid importing them
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@3354 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2010-07-13 05:15:00 +00:00

29 lines
456 B
C

#ifndef _SHA_H
#define _SHA_H
typedef struct
{
ULONG flag;
UCHAR hash[20];
ULONG state[5];
ULONG count[2];
UCHAR buffer[64];
} A_SHA_CTX;
VOID A_SHAInit(
__out A_SHA_CTX *Context
);
VOID A_SHAUpdate(
__inout A_SHA_CTX *Context,
__in_bcount(Length) UCHAR *Input,
__in ULONG Length
);
VOID A_SHAFinal(
__inout A_SHA_CTX *Context,
__out_bcount(20) UCHAR *Hash
);
#endif