ow-crypt.h 998 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Written by Solar Designer and placed in the public domain.
  3. * See crypt_blowfish.c for more information.
  4. */
  5. #ifndef _OW_CRYPT_H
  6. #define _OW_CRYPT_H
  7. #undef __CONST
  8. #if defined __GNUC__
  9. #define __CONST __const
  10. #elif defined _MSC_VER
  11. #define __CONST const
  12. #else
  13. #endif
  14. #ifndef __SKIP_GNU
  15. extern char *crypt(__CONST char *key, __CONST char *setting);
  16. extern char *crypt_r(__CONST char *key, __CONST char *setting, void *data);
  17. #endif
  18. #ifndef __SKIP_OW
  19. extern char *crypt_rn(__CONST char *key, __CONST char *setting,
  20. void *data, int size);
  21. extern char *crypt_ra(__CONST char *key, __CONST char *setting,
  22. void **data, int *size);
  23. extern char *crypt_gensalt(__CONST char *prefix, unsigned long count,
  24. __CONST char *input, int size);
  25. extern char *crypt_gensalt_rn(__CONST char *prefix, unsigned long count,
  26. __CONST char *input, int size, char *output, int output_size);
  27. extern char *crypt_gensalt_ra(__CONST char *prefix, unsigned long count,
  28. __CONST char *input, int size);
  29. #endif
  30. #endif