PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | HMAC_IPAD 0x36 |
#define | HMAC_OPAD 0x5C |
Functions | |
static unsigned | hmac_result_size (PX_HMAC *h) |
static unsigned | hmac_block_size (PX_HMAC *h) |
static void | hmac_init (PX_HMAC *h, const uint8 *key, unsigned klen) |
static void | hmac_reset (PX_HMAC *h) |
static void | hmac_update (PX_HMAC *h, const uint8 *data, unsigned dlen) |
static void | hmac_finish (PX_HMAC *h, uint8 *dst) |
static void | hmac_free (PX_HMAC *h) |
int | px_find_hmac (const char *name, PX_HMAC **res) |
|
static |
Definition at line 46 of file px-hmac.c.
References px_hmac::md, and px_md_block_size.
Referenced by px_find_hmac().
Definition at line 100 of file px-hmac.c.
References buf, px_hmac::md, px_hmac::opad, px_hmac::p, palloc(), pfree(), px_md_block_size, px_md_finish, px_md_reset, px_md_result_size, px_md_update, and px_memset().
Referenced by px_find_hmac().
|
static |
Definition at line 124 of file px-hmac.c.
References px_hmac::ipad, px_hmac::md, px_hmac::opad, px_hmac::p, pfree(), px_md_block_size, px_md_free, and px_memset().
Referenced by px_find_hmac().
Definition at line 52 of file px-hmac.c.
References HMAC_IPAD, HMAC_OPAD, i, px_hmac::ipad, sort-test::key, px_hmac::md, px_hmac::opad, px_hmac::p, palloc0(), pfree(), px_md_block_size, px_md_finish, px_md_reset, px_md_update, and px_memset().
Referenced by px_find_hmac().
|
static |
Definition at line 84 of file px-hmac.c.
References px_hmac::ipad, px_hmac::md, px_hmac::p, px_md_block_size, px_md_reset, and px_md_update.
Referenced by px_find_hmac().
|
static |
Definition at line 40 of file px-hmac.c.
References px_hmac::md, and px_md_result_size.
Referenced by px_find_hmac().
Definition at line 94 of file px-hmac.c.
References data, px_hmac::md, and px_md_update.
Referenced by px_find_hmac().
int px_find_hmac | ( | const char * | name, |
PX_HMAC ** | res | ||
) |
Definition at line 142 of file px-hmac.c.
References px_hmac::block_size, err(), px_hmac::finish, px_hmac::free, hmac_block_size(), hmac_finish(), hmac_free(), hmac_init(), hmac_reset(), hmac_result_size(), hmac_update(), px_hmac::init, px_hmac::ipad, px_hmac::md, name, px_hmac::opad, px_hmac::p, palloc(), px_find_digest(), px_md_block_size, px_md_free, PXE_HASH_UNUSABLE_FOR_HMAC, res, px_hmac::reset, px_hmac::result_size, and px_hmac::update.
Referenced by pg_hmac().