crypt_freesec.h 662 B

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