Remove footer from spec
[hiphop-php.git] / hphp / zend / crypt-freesec.h
blob33965411eb23c7d6123932cb0540f07270d14b79
1 /* $Id$ */
2 #pragma once
4 #include <stdint.h>
5 typedef unsigned char u_char;
7 #define MD5_HASH_MAX_LEN 120
9 struct php_crypt_extended_data {
10 int initialized;
11 uint32_t saltbits;
12 uint32_t old_salt;
13 uint32_t en_keysl[16], en_keysr[16];
14 uint32_t de_keysl[16], de_keysr[16];
15 uint32_t old_rawkey0, old_rawkey1;
16 char output[21];
20 * _crypt_extended_init() must be called explicitly before first use of
21 * _crypt_extended_r().
24 void _crypt_extended_init(void);
26 char *_crypt_extended_r(const char *key, const char *setting,
27 struct php_crypt_extended_data *data);