Back to index

php5  5.3.10
php_crypt_r.h
Go to the documentation of this file.
00001 /* $Id: php_crypt_r.h 321634 2012-01-01 13:15:04Z felipe $ */
00002 /*
00003    +----------------------------------------------------------------------+
00004    | PHP Version 5                                                        |
00005    +----------------------------------------------------------------------+
00006    | Copyright (c) 1997-2012 The PHP Group                                |
00007    +----------------------------------------------------------------------+
00008    | This source file is subject to version 3.01 of the PHP license,      |
00009    | that is bundled with this package in the file LICENSE, and is        |
00010    | available through the world-wide-web at the following url:           |
00011    | http://www.php.net/license/3_01.txt                                  |
00012    | If you did not receive a copy of the PHP license and are unable to   |
00013    | obtain it through the world-wide-web, please send a note to          |
00014    | license@php.net so we can mail you a copy immediately.               |
00015    +----------------------------------------------------------------------+
00016    | Authors: Pierre Alain Joye  <pajoye@php.net                          |
00017    +----------------------------------------------------------------------+
00018  */
00019 
00020 #ifndef _CRYPT_WIHN32_H_
00021 #define _CRYPT_WIHN32_H_
00022 
00023 #ifdef __cplusplus
00024 extern "C"
00025 {
00026 #endif
00027 #include "crypt_freesec.h"
00028 
00029 #ifndef __const
00030 #ifdef __GNUC__
00031 #define __CONST __const
00032 #else
00033 #define __CONST
00034 #endif
00035 #else
00036 #define __CONST __const
00037 #endif
00038 
00039 void php_init_crypt_r();
00040 void php_shutdown_crypt_r();
00041 
00042 extern void _crypt_extended_init_r(void);
00043 
00044 /*PHPAPI char* crypt(const char *key, const char *salt);*/
00045 PHPAPI char *php_crypt_r (const char *__key, const char *__salt, struct php_crypt_extended_data * __data);
00046 
00047 #define MD5_HASH_MAX_LEN 120
00048 
00049 #include "crypt_blowfish.h"
00050 
00051 extern char * php_md5_crypt_r(const char *pw, const char *salt, char *out);
00052 extern char * php_sha512_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
00053 extern char * php_sha256_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
00054 
00055 #ifdef __cplusplus
00056 }
00057 #endif
00058 
00059 #endif /* _CRYPT_WIHN32_H_ */