Source code of Windows XP (NT5)
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.

42 lines
1.0 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1999
  6. //
  7. // File: sha.h
  8. //
  9. //--------------------------------------------------------------------------
  10. /* Copyright (C) RSA Data Security, Inc. created 1993. This is an
  11. unpublished work protected as such under copyright law. This work
  12. contains proprietary, confidential, and trade secret information of
  13. RSA Data Security, Inc. Use, disclosure or reproduction without the
  14. express written authorization of RSA Data Security, Inc. is
  15. prohibited.
  16. */
  17. #ifndef _SHA_H_
  18. #define _SHA_H_ 1
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. #include "shacomm.h"
  23. typedef struct {
  24. DWORD FinishFlag;
  25. BYTE HashVal[A_SHA_DIGEST_LEN];
  26. A_SHA_COMM_CTX commonContext;
  27. } A_SHA_CTX;
  28. void A_SHAInit(A_SHA_CTX *);
  29. void A_SHAUpdate(A_SHA_CTX *, unsigned char *, unsigned int);
  30. void A_SHAFinal(A_SHA_CTX *, unsigned char [A_SHA_DIGEST_LEN]);
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34. #endif