Old fashion design for PC-104
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.

49 lines
986 B

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 23/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: LgMD5.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgMD5.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__MD5__H__INCLUDED__
  15. #define __LG__MD5__H__INCLUDED__
  16. #pragma once
  17. #ifndef uint8
  18. #define uint8 unsigned char
  19. #endif
  20. #ifndef uint32
  21. #define uint32 unsigned long int
  22. #endif
  23. class CLgHashMD5
  24. {
  25. public:
  26. typedef BYTE DIGGEST[16];
  27. public:
  28. void Start();
  29. void Update( PBYTE pData, INT nCount );
  30. void Finish( DIGGEST );
  31. public:
  32. typedef struct MD5_CONTEXT
  33. {
  34. uint32 total[2];
  35. uint32 state[4];
  36. uint8 buffer[64];
  37. }MD5_CONTEXT;
  38. private:
  39. MD5_CONTEXT m_Context;
  40. };
  41. #endif