xref: /PHP-8.0/ext/standard/php_crypt_r.h (revision 257f1089)
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    | http://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 
17 #ifndef _CRYPT_WIHN32_H_
18 #define _CRYPT_WIHN32_H_
19 
20 BEGIN_EXTERN_C()
21 #include "crypt_freesec.h"
22 
23 void php_init_crypt_r(void);
24 void php_shutdown_crypt_r(void);
25 
26 extern void _crypt_extended_init_r(void);
27 
28 PHPAPI char *php_crypt_r (const char *__key, const char *__salt, struct php_crypt_extended_data * __data);
29 
30 #define MD5_HASH_MAX_LEN 120
31 
32 #include "crypt_blowfish.h"
33 
34 extern char * php_md5_crypt_r(const char *pw, const char *salt, char *out);
35 extern char * php_sha512_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
36 extern char * php_sha256_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
37 END_EXTERN_C()
38 
39 #endif /* _CRYPT_WIHN32_H_ */
40