crypt_freesec.h 662 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* $Id$ */
  2. #ifndef _CRYPT_FREESEC_H
  3. #define _CRYPT_FREESEC_H
  4. #if PHP_WIN32
  5. # ifndef inline
  6. # define inline __inline
  7. # endif
  8. #endif
  9. #include "php_stdint.h"
  10. #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];
  19. };
  20. /*
  21. * _crypt_extended_init() must be called explicitly before first use of
  22. * _crypt_extended_r().
  23. */
  24. void _crypt_extended_init(void);
  25. char *_crypt_extended_r(const char *key, const char *setting,
  26. struct php_crypt_extended_data *data);
  27. #endif