20 #define MD5_DIGEST_LENGTH 16
22 #define MD5_BLOCK_SIZE 64
25 #define MD5_PASSWD_CHARSET "0123456789abcdef"
26 #define MD5_PASSWD_LEN 35
29 extern bool pg_md5_hash(
const void *buff,
size_t len,
char *hexsum,
34 size_t salt_len,
char *
buf,
bool pg_md5_encrypt(const char *passwd, const char *salt, size_t salt_len, char *buf, const char **errstr)
bool pg_md5_hash(const void *buff, size_t len, char *hexsum, const char **errstr)
bool pg_md5_binary(const void *buff, size_t len, void *outbuf, const char **errstr)