1 #ifndef _CRYPT_FREESEC_H 2 #define _CRYPT_FREESEC_H 3 4 #ifdef PHP_WIN32 5 # ifndef inline 6 # define inline __inline 7 # endif 8 #endif 9 10 #include "php_stdint.h" 11 12 #define MD5_HASH_MAX_LEN 120 13 14 struct php_crypt_extended_data { 15 int initialized; 16 uint32_t saltbits; 17 uint32_t old_salt; 18 uint32_t en_keysl[16], en_keysr[16]; 19 uint32_t de_keysl[16], de_keysr[16]; 20 uint32_t old_rawkey0, old_rawkey1; 21 char output[21]; 22 }; 23 24 /* 25 * _crypt_extended_init() must be called explicitly before first use of 26 * _crypt_extended_r(). 27 */ 28 29 void _crypt_extended_init(void); 30 31 char *_crypt_extended_r(const unsigned char *key, const char *setting, 32 struct php_crypt_extended_data *data); 33 34 #endif 35