crypto_utils.h 971 B

123456789101112131415161718192021222324252627282930313233343536
  1. // Filename: crypto_utils.h
  2. // Created by: drose (07Nov00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://www.panda3d.org/license.txt .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. #ifndef CRYPTO_UTILS_H
  19. #define CRYPTO_UTILS_H
  20. #include <pandabase.h>
  21. #include <filename.h>
  22. #include "typedef.h"
  23. class HashVal;
  24. BEGIN_PUBLISH
  25. EXPCL_PANDAEXPRESS void md5_a_file(const Filename &fname, HashVal &ret);
  26. EXPCL_PANDAEXPRESS void md5_a_buffer(const uchar *buf, ulong len, HashVal &ret);
  27. END_PUBLISH
  28. #endif