php-src/ext/standard/crypt_freesec.h
Pierre Joye 1e820eca02 -MFH:
- #45430, windows implementation of crypt is not TS
 - add Blowfish (using implementation from Solar Designer <solar at openwal dot com>) and extended DES support
 - Make crypt features portable:
   - if no crypt_r, php's implemetation is used (all algo and TS), php can't be used with unsafe crypt anymore
   - if one algo is missing, php's implemetation is used
   - Windows always use php's implementation
 - removed old code in windows/
2008-07-28 11:50:35 +00:00

34 lines
650 B
C

/* $Id$ */
#ifndef _CRYPT_FREESEC_H
#define _CRYPT_FREESEC_H
#if PHP_WIN32
# include "win32/php_stdint.h"
#else
# include <stdint.h>
#endif
#define MD5_HASH_MAX_LEN 120
struct php_crypt_extended_data {
int initialized;
u_int32_t saltbits;
u_int32_t old_salt;
u_int32_t en_keysl[16], en_keysr[16];
u_int32_t de_keysl[16], de_keysr[16];
u_int32_t old_rawkey0, old_rawkey1;
char output[21];
};
/*
* _crypt_extended_init() must be called explicitly before first use of
* _crypt_extended_r().
*/
void _crypt_extended_init(void);
char *_crypt_extended_r(const char *key, const char *setting,
struct php_crypt_extended_data *data);
#endif