ghash.h 814 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. ---------------------------------------------------------------------------
  3. Copyright (c) 2003, Dominik Reichl <dominik.reichl@t-online.de>, Germany.
  4. All rights reserved.
  5. Distributed under the terms of the GNU General Public License v2.
  6. This software is provided 'as is' with no explicit or implied warranties
  7. in respect of its properties, including, but not limited to, correctness
  8. and/or fitness for purpose.
  9. ---------------------------------------------------------------------------
  10. */
  11. #ifndef ___GHASH_H___
  12. #define ___GHASH_H___
  13. class CGHash
  14. {
  15. public:
  16. CGHash();
  17. virtual ~CGHash();
  18. void Init();
  19. void Update(const unsigned char *pData, unsigned long uSize);
  20. void FinalToStr(char *strOutput, int nHash);
  21. private:
  22. unsigned long m_hash3;
  23. unsigned long m_hash5;
  24. };
  25. #endif // ___GHASH_H___