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