PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
static void | bytesToHex (uint8 b[16], char *s) |
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) |
|
static |
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().