PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <sys/param.h>
#include "common/cryptohash.h"
#include "md5_int.h"
#include "sha1_int.h"
#include "sha2_int.h"
Go to the source code of this file.
Data Structures | |
struct | pg_cryptohash_ctx |
Macros | |
#define | ALLOC(size) palloc(size) |
#define | FREE(ptr) pfree(ptr) |
Functions | |
pg_cryptohash_ctx * | pg_cryptohash_create (pg_cryptohash_type type) |
int | pg_cryptohash_init (pg_cryptohash_ctx *ctx) |
int | pg_cryptohash_update (pg_cryptohash_ctx *ctx, const uint8 *data, size_t len) |
int | pg_cryptohash_final (pg_cryptohash_ctx *ctx, uint8 *dest, size_t len) |
void | pg_cryptohash_free (pg_cryptohash_ctx *ctx) |
#define ALLOC | ( | size | ) | palloc(size) |
Definition at line 36 of file cryptohash.c.
Referenced by pg_cryptohash_create().
#define FREE | ( | ptr | ) | pfree(ptr) |
Definition at line 37 of file cryptohash.c.
Referenced by citerdissect(), cleanst(), clonesuccessorstates(), compact(), creviterdissect(), fixempties(), freecm(), freecnfa(), freecvec(), freedfa(), freelacons(), freenfa(), freesrnode(), freev(), pg_cryptohash_free(), pg_regexec(), pg_regprefix(), rfree(), sortins(), sortouts(), subcoloronechr(), and subcoloronerange().
pg_cryptohash_ctx* pg_cryptohash_create | ( | pg_cryptohash_type | type | ) |
Definition at line 66 of file cryptohash.c.
Referenced by cryptohash_internal(), init_md5(), init_sha1(), init_sha224(), init_sha256(), init_sha384(), init_sha512(), InitializeBackupManifest(), pg_checksum_init(), pg_md5_binary(), pg_md5_hash(), scram_H(), scram_HMAC_init(), scram_mock_salt(), uuid_generate_internal(), and verify_manifest_checksum().
int pg_cryptohash_final | ( | pg_cryptohash_ctx * | ctx, |
uint8 * | dest, | ||
size_t | len | ||
) |
Definition at line 168 of file cryptohash.c.
Referenced by cryptohash_internal(), int_md5_finish(), int_sha1_finish(), int_sha2_finish(), pg_checksum_final(), pg_md5_binary(), pg_md5_hash(), scram_H(), scram_HMAC_final(), scram_HMAC_init(), scram_mock_salt(), SendBackupManifest(), uuid_generate_internal(), and verify_manifest_checksum().
void pg_cryptohash_free | ( | pg_cryptohash_ctx * | ctx | ) |
Definition at line 216 of file cryptohash.c.
Referenced by cryptohash_internal(), FreeBackupManifest(), int_md5_free(), int_sha1_free(), int_sha2_free(), pg_checksum_final(), pg_checksum_init(), pg_md5_binary(), pg_md5_hash(), ResourceOwnerReleaseInternal(), scram_H(), scram_HMAC_final(), scram_HMAC_init(), scram_HMAC_update(), scram_mock_salt(), uuid_generate_internal(), and verify_manifest_checksum().
int pg_cryptohash_init | ( | pg_cryptohash_ctx * | ctx | ) |
Definition at line 92 of file cryptohash.c.
Referenced by cryptohash_internal(), InitializeBackupManifest(), int_md5_reset(), int_sha1_reset(), int_sha2_reset(), pg_checksum_init(), pg_md5_binary(), pg_md5_hash(), scram_H(), scram_HMAC_final(), scram_HMAC_init(), scram_mock_salt(), uuid_generate_internal(), and verify_manifest_checksum().
int pg_cryptohash_update | ( | pg_cryptohash_ctx * | ctx, |
const uint8 * | data, | ||
size_t | len | ||
) |
Definition at line 130 of file cryptohash.c.
Referenced by AppendStringToManifest(), cryptohash_internal(), int_md5_update(), int_sha1_update(), int_sha2_update(), pg_checksum_update(), pg_md5_binary(), pg_md5_hash(), scram_H(), scram_HMAC_final(), scram_HMAC_init(), scram_HMAC_update(), scram_mock_salt(), uuid_generate_internal(), and verify_manifest_checksum().