mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
bd6371953e
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@3354 21ef857c-d57f-4fe0-8362-d861dc6d29cd
29 lines
456 B
C
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
|