sizehash.cpp 748 B

12345678910111213141516171819202122232425262728
  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. #include "sizehash.h"
  12. void sizehash32_begin(unsigned long *uHashCtx)
  13. {
  14. *uHashCtx = 0;
  15. }
  16. void sizehash32_hash(unsigned long *uHashCtx, unsigned long uBufferLen)
  17. {
  18. *uHashCtx += uBufferLen;
  19. }
  20. void sizehash32_end(unsigned long *uHashCtx)
  21. {
  22. }