PostgreSQL Source Code git master
|
#include "postgres.h"
#include "common/cryptohash.h"
#include "common/md5.h"
#include "common/sha2.h"
#include "utils/builtins.h"
#include "varatt.h"
Go to the source code of this file.
Macros | |
#define | MD5_HASH_LEN 32 |
#define MD5_HASH_LEN 32 |
Definition at line 28 of file cryptohashfuncs.c.
|
inlinestatic |
Definition at line 80 of file cryptohashfuncs.c.
References data, elog, ERROR, input, len, palloc0(), pg_cryptohash_create(), pg_cryptohash_error(), pg_cryptohash_final(), pg_cryptohash_free(), pg_cryptohash_init(), pg_cryptohash_update(), PG_MD5, PG_SHA1, PG_SHA224, PG_SHA224_DIGEST_LENGTH, PG_SHA256, PG_SHA256_DIGEST_LENGTH, PG_SHA384, PG_SHA384_DIGEST_LENGTH, PG_SHA512, PG_SHA512_DIGEST_LENGTH, SET_VARSIZE, type, VARDATA, VARDATA_ANY, VARHDRSZ, and VARSIZE_ANY_EXHDR.
Referenced by sha224_bytea(), sha256_bytea(), sha384_bytea(), and sha512_bytea().
Datum md5_bytea | ( | PG_FUNCTION_ARGS | ) |
Definition at line 59 of file cryptohashfuncs.c.
References cstring_to_text(), ereport, errcode(), errmsg(), ERROR, len, MD5_HASH_LEN, PG_GETARG_BYTEA_PP, pg_md5_hash(), PG_RETURN_TEXT_P, VARDATA_ANY, and VARSIZE_ANY_EXHDR.
Datum md5_text | ( | PG_FUNCTION_ARGS | ) |
Definition at line 34 of file cryptohashfuncs.c.
References cstring_to_text(), ereport, errcode(), errmsg(), ERROR, len, MD5_HASH_LEN, PG_GETARG_TEXT_PP, pg_md5_hash(), PG_RETURN_TEXT_P, VARDATA_ANY, and VARSIZE_ANY_EXHDR.
Datum sha224_bytea | ( | PG_FUNCTION_ARGS | ) |
Definition at line 140 of file cryptohashfuncs.c.
References cryptohash_internal(), PG_GETARG_BYTEA_PP, PG_RETURN_BYTEA_P, and PG_SHA224.
Datum sha256_bytea | ( | PG_FUNCTION_ARGS | ) |
Definition at line 148 of file cryptohashfuncs.c.
References cryptohash_internal(), PG_GETARG_BYTEA_PP, PG_RETURN_BYTEA_P, and PG_SHA256.
Datum sha384_bytea | ( | PG_FUNCTION_ARGS | ) |
Definition at line 156 of file cryptohashfuncs.c.
References cryptohash_internal(), PG_GETARG_BYTEA_PP, PG_RETURN_BYTEA_P, and PG_SHA384.
Datum sha512_bytea | ( | PG_FUNCTION_ARGS | ) |
Definition at line 164 of file cryptohashfuncs.c.
References cryptohash_internal(), PG_GETARG_BYTEA_PP, PG_RETURN_BYTEA_P, and PG_SHA512.