Files
reactos/reactos/lib/cryptlib/sha1.h
T
Timo Kreuzer 76350fef1c [CRYPTLIB]
Add a library for common encryption/hashing algorithms. Currently implements MD4, MD5, SHA1, RC4 (all taken from advapi32 with minor modifications) and AES (taken from OpenWrt Linux).
The library is currently used by advapi32 only, but ksecdd will make use of it later as well.

svn path=/trunk/; revision=61805
2014-01-25 13:55:08 +00:00

25 lines
384 B
C

#pragma once
#include <ntdef.h>
/* SHA Context Structure Declaration */
typedef struct
{
ULONG Unknown[6];
ULONG State[5];
ULONG Count[2];
UCHAR Buffer[64];
} SHA_CTX, *PSHA_CTX;
VOID NTAPI
A_SHAInit(PSHA_CTX Context);
VOID NTAPI
A_SHAUpdate(PSHA_CTX Context, const unsigned char *Buffer, ULONG BufferSize);
VOID NTAPI
A_SHAFinal(PSHA_CTX Context, PULONG Result);