6 #include "stg/os_int.h"
18 typedef struct MD5Context MD5_CTX;
20 char *crypt_make_salt(void);
21 void byteReverse(unsigned char*, unsigned);
22 void MD5Init(struct MD5Context *ctx);
23 void MD5Update(struct MD5Context*, char const*, unsigned);
24 void MD5Final(unsigned char digest[16], struct MD5Context *ctx);
25 void MD5Transform(uint32_t buf[4], uint32_t const in[16]);
26 char *libshadow_md5_crypt(const char*, const char*);
27 char *pw_encrypt(const char*, const char*);
30 char *make_ag_hash(time_t salt, const char *clear);
31 int check_ag_hash(time_t salt, const char *clear, const char *hash);