mirror of
https://github.com/php/php-src.git
synced 2024-12-04 23:34:25 +08:00
14caf174ff
if you need C99 stdint types, just include "php_stdint.h"
37 lines
662 B
C
37 lines
662 B
C
/* $Id$ */
|
|
|
|
#ifndef _CRYPT_FREESEC_H
|
|
#define _CRYPT_FREESEC_H
|
|
|
|
#if PHP_WIN32
|
|
# ifndef inline
|
|
# define inline __inline
|
|
# endif
|
|
#endif
|
|
|
|
#include "php_stdint.h"
|
|
|
|
#define MD5_HASH_MAX_LEN 120
|
|
|
|
struct php_crypt_extended_data {
|
|
int initialized;
|
|
uint32_t saltbits;
|
|
uint32_t old_salt;
|
|
uint32_t en_keysl[16], en_keysr[16];
|
|
uint32_t de_keysl[16], de_keysr[16];
|
|
uint32_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
|