php_crypt_r.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. +----------------------------------------------------------------------+
  3. | Copyright (c) The PHP Group |
  4. +----------------------------------------------------------------------+
  5. | This source file is subject to version 3.01 of the PHP license, |
  6. | that is bundled with this package in the file LICENSE, and is |
  7. | available through the world-wide-web at the following url: |
  8. | https://www.php.net/license/3_01.txt |
  9. | If you did not receive a copy of the PHP license and are unable to |
  10. | obtain it through the world-wide-web, please send a note to |
  11. | license@php.net so we can mail you a copy immediately. |
  12. +----------------------------------------------------------------------+
  13. | Authors: Pierre Alain Joye <pajoye@php.net |
  14. +----------------------------------------------------------------------+
  15. */
  16. #ifndef _CRYPT_WIHN32_H_
  17. #define _CRYPT_WIHN32_H_
  18. BEGIN_EXTERN_C()
  19. #include "crypt_freesec.h"
  20. void php_init_crypt_r(void);
  21. void php_shutdown_crypt_r(void);
  22. extern void _crypt_extended_init_r(void);
  23. PHPAPI char *php_crypt_r (const char *__key, const char *__salt, struct php_crypt_extended_data * __data);
  24. #define MD5_HASH_MAX_LEN 120
  25. #include "crypt_blowfish.h"
  26. extern char * php_md5_crypt_r(const char *pw, const char *salt, char *out);
  27. extern char * php_sha512_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
  28. extern char * php_sha256_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
  29. END_EXTERN_C()
  30. #endif /* _CRYPT_WIHN32_H_ */