Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

56 lines
813 B

/*++
Copyright (C) 1997 Cisco Systems, Inc. All Rights Reserved.
Module Name:
hmac_md5.h
Abstract:
This module contains definitions for HMAC MD5.
Author:
Derrell Piper (v-dpiper)
Facility:
ISAKMP/Oakley
Revision History:
--*/
#ifndef _HMAC_MD5_
#define _HMAC_MD5_
#include <md5.h>
typedef struct _hmaccontext_ {
MD5_CTX md5;
unsigned char opad[64];
} HmacContext, *PHmacContext;
VOID WINAPI
HmacMD5Init(
PHmacContext pContext,
PBYTE pkey,
ULONG keylen
);
VOID WINAPI
HmacMD5Update(
PHmacContext pContext,
PBYTE ptext,
ULONG textlen
);
VOID WINAPI
HmacMD5Final (
BYTE pdigest[MD5_LEN],
PHmacContext pcontext
);
#endif //end of _HMAC_MD5_