PostgreSQL Source Code: src/include/common/md5.h Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16#ifndef PG_MD5_H
17#define PG_MD5_H
18
19
20#define MD5_DIGEST_LENGTH 16
21
22#define MD5_BLOCK_SIZE 64
23
24
25#define MD5_PASSWD_CHARSET "0123456789abcdef"
26#define MD5_PASSWD_LEN 35
27
28
29extern bool pg_md5_hash(const void *buff, size_t len, char *hexsum,
30 const char **errstr);
32 const char **errstr);
34 size_t salt_len, char *buf,
35 const char **errstr);
36
37#endif
bool pg_md5_binary(const void *buff, size_t len, uint8 *outbuf, const char **errstr)
bool pg_md5_encrypt(const char *passwd, const uint8 *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)