54 lines
1.5 KiB
C
54 lines
1.5 KiB
C
|
/*
|
||
|
* Copyright 2016 Michael Müller
|
||
|
*
|
||
|
* This library is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU Lesser General Public
|
||
|
* License as published by the Free Software Foundation; either
|
||
|
* version 2.1 of the License, or (at your option) any later version.
|
||
|
*
|
||
|
* This library is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
* Lesser General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Lesser General Public
|
||
|
* License along with this library; if not, write to the Free Software
|
||
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#ifndef __BCRYPT_INTERNAL_H
|
||
|
#define __BCRYPT_INTERNAL_H
|
||
|
|
||
|
#include <stdarg.h>
|
||
|
|
||
|
#include "windef.h"
|
||
|
#include "winbase.h"
|
||
|
|
||
|
/* Definitions from advapi32 */
|
||
|
typedef struct
|
||
|
{
|
||
|
unsigned int i[2];
|
||
|
unsigned int buf[4];
|
||
|
unsigned char in[64];
|
||
|
unsigned char digest[16];
|
||
|
} MD5_CTX;
|
||
|
|
||
|
VOID WINAPI MD5Init(MD5_CTX *ctx);
|
||
|
VOID WINAPI MD5Update(MD5_CTX *ctx, const unsigned char *buf, unsigned int len);
|
||
|
VOID WINAPI MD5Final(MD5_CTX *ctx);
|
||
|
|
||
|
typedef struct
|
||
|
{
|
||
|
ULONG Unknown[6];
|
||
|
ULONG State[5];
|
||
|
ULONG Count[2];
|
||
|
UCHAR Buffer[64];
|
||
|
} SHA_CTX;
|
||
|
|
||
|
VOID WINAPI A_SHAInit(SHA_CTX *ctx);
|
||
|
VOID WINAPI A_SHAUpdate(SHA_CTX *ctx, const UCHAR *buffer, UINT size);
|
||
|
VOID WINAPI A_SHAFinal(SHA_CTX *ctx, PULONG result);
|
||
|
|
||
|
#endif /* __BCRYPT_INTERNAL_H */
|