Move the job of converting provided coeffects to ambient coeffects from callee to...
[hiphop-php.git] / hphp / zend / crypt-freesec.h
blobff409949318fec71016f4a66ead77519c2d9200a
1 /* $Id$ */
3 #ifndef incl_CRYPT_FREESEC_H
4 #define incl_CRYPT_FREESEC_H
6 #include <stdint.h>
7 typedef unsigned char u_char;
9 #define MD5_HASH_MAX_LEN 120
11 struct php_crypt_extended_data {
12 int initialized;
13 uint32_t saltbits;
14 uint32_t old_salt;
15 uint32_t en_keysl[16], en_keysr[16];
16 uint32_t de_keysl[16], de_keysr[16];
17 uint32_t old_rawkey0, old_rawkey1;
18 char output[21];
22 * _crypt_extended_init() must be called explicitly before first use of
23 * _crypt_extended_r().
26 void _crypt_extended_init(void);
28 char *_crypt_extended_r(const char *key, const char *setting,
29 struct php_crypt_extended_data *data);
31 #endif