PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | MD5_DIGEST_LENGTH 16 |
#define | MD5_BLOCK_SIZE 64 |
#define | MD5_PASSWD_CHARSET "0123456789abcdef" |
#define | MD5_PASSWD_LEN 35 |
Functions | |
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) |
bool | pg_md5_encrypt (const char *passwd, const char *salt, size_t salt_len, char *buf, const char **errstr) |
bool pg_md5_binary | ( | const void * | buff, |
size_t | len, | ||
void * | outbuf, | ||
const char ** | errstr | ||
) |
Definition at line 108 of file md5_common.c.
References len, MD5_DIGEST_LENGTH, pg_cryptohash_create(), pg_cryptohash_error(), pg_cryptohash_final(), pg_cryptohash_free(), pg_cryptohash_init(), pg_cryptohash_update(), and PG_MD5.
Referenced by PerformRadiusTransaction().
bool pg_md5_encrypt | ( | const char * | passwd, |
const char * | salt, | ||
size_t | salt_len, | ||
char * | buf, | ||
const char ** | errstr | ||
) |
Definition at line 145 of file md5_common.c.
References _, buf, free, malloc, and pg_md5_hash().
Referenced by encrypt_password(), md5_crypt_verify(), pg_password_sendauth(), plain_crypt_verify(), PQencryptPassword(), and PQencryptPasswordConn().
bool pg_md5_hash | ( | const void * | buff, |
size_t | len, | ||
char * | hexsum, | ||
const char ** | errstr | ||
) |
Definition at line 74 of file md5_common.c.
References bytesToHex(), len, MD5_DIGEST_LENGTH, pg_cryptohash_create(), pg_cryptohash_error(), pg_cryptohash_final(), pg_cryptohash_free(), pg_cryptohash_init(), pg_cryptohash_update(), and PG_MD5.
Referenced by md5_bytea(), md5_text(), and pg_md5_encrypt().