blowfish.h 509 B

1234567891011121314151617181920
  1. #include <string.h>
  2. #include <stdlib.h>
  3. #include <openssl/blowfish.h>
  4. #include "FiSH_version.h"
  5. #ifdef HAVE_STDINT
  6. #include <stdint.h>
  7. #else
  8. #ifdef HAVE_INTTYPES
  9. #include <inttypes.h>
  10. #endif
  11. #endif
  12. extern char *iniKey;
  13. #define ZeroMemory(dest,count) memset((void *)dest, 0, count)
  14. int decrypt_string(const char *key, const char *str, char *dest, int len);
  15. int encrypt_string(const char *key, const char *str, char *dest, int len);
  16. void encrypt_key(const char *key, char *encryptedKey);