From c579f3458775ca45bd86dcb9b8ef09e7d2a03bdc Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 5 Aug 2009 11:36:56 -0700 Subject: MPQCryptography.c doesn't really have anything to do anymore with its original piece of code; cleaning it up and renaming it. --- mpq-crypto.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 mpq-crypto.h (limited to 'mpq-crypto.h') diff --git a/mpq-crypto.h b/mpq-crypto.h new file mode 100644 index 0000000..bc29509 --- /dev/null +++ b/mpq-crypto.h @@ -0,0 +1,21 @@ +#include "mpqlib-stdint.h" + +#if defined(__cplusplus) +extern "C" { +#endif + + void __mpqlib_init_cryptography(void); + + const uint32_t *__mpqlib_get_cryptography_table(void); + + void __mpqlib_encrypt(void *data, uint32_t length, uint32_t key, + char disable_input_swapping); + void __mpqlib_decrypt(void *data, uint32_t length, uint32_t key, + char disable_output_swapping); + + uint32_t __mpqlib_hash_cstring(const char *string, uint32_t type); + uint32_t __mpqlib_hash_data(const char *data, uint32_t length, uint32_t type); + +#if defined(__cplusplus) +} +#endif -- cgit v1.2.3