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

  1. /*++
  2. Copyright (C) 1997 Cisco Systems, Inc. All Rights Reserved.
  3. Module Name:
  4. hmac_md5.h
  5. Abstract:
  6. This module contains definitions for HMAC MD5.
  7. Author:
  8. Derrell Piper (v-dpiper)
  9. Facility:
  10. ISAKMP/Oakley
  11. Revision History:
  12. --*/
  13. #ifndef _HMAC_MD5_
  14. #define _HMAC_MD5_
  15. #include <md5.h>
  16. typedef struct _hmaccontext_ {
  17. MD5_CTX md5;
  18. unsigned char opad[64];
  19. } HmacContext, *PHmacContext;
  20. VOID WINAPI
  21. HmacMD5Init(
  22. PHmacContext pContext,
  23. PBYTE pkey,
  24. ULONG keylen
  25. );
  26. VOID WINAPI
  27. HmacMD5Update(
  28. PHmacContext pContext,
  29. PBYTE ptext,
  30. ULONG textlen
  31. );
  32. VOID WINAPI
  33. HmacMD5Final (
  34. BYTE pdigest[MD5_LEN],
  35. PHmacContext pcontext
  36. );
  37. #endif //end of _HMAC_MD5_