36 #define ALLOC(size) palloc(size)
37 #define FREE(ptr) pfree(ptr)
39 #define ALLOC(size) malloc(size)
40 #define FREE(ptr) free(ptr)
261 return _(
"out of memory");
268 return _(
"destination buffer too small");
#define Assert(condition)
int pg_cryptohash_update(pg_cryptohash_ctx *ctx, const uint8 *data, size_t len)
int pg_cryptohash_init(pg_cryptohash_ctx *ctx)
@ PG_CRYPTOHASH_ERROR_DEST_LEN
@ PG_CRYPTOHASH_ERROR_NONE
void pg_cryptohash_free(pg_cryptohash_ctx *ctx)
pg_cryptohash_ctx * pg_cryptohash_create(pg_cryptohash_type type)
int pg_cryptohash_final(pg_cryptohash_ctx *ctx, uint8 *dest, size_t len)
const char * pg_cryptohash_error(pg_cryptohash_ctx *ctx)
void pg_md5_init(pg_md5_ctx *ctx)
void pg_md5_update(pg_md5_ctx *ctx, const uint8 *data, size_t len)
void pg_md5_final(pg_md5_ctx *ctx, uint8 *dest)
#define MD5_DIGEST_LENGTH
void explicit_bzero(void *buf, size_t len)
void pg_sha1_update(pg_sha1_ctx *ctx, const uint8 *data, size_t len)
void pg_sha1_init(pg_sha1_ctx *ctx)
void pg_sha1_final(pg_sha1_ctx *ctx, uint8 *dest)
#define SHA1_DIGEST_LENGTH
void pg_sha512_final(pg_sha512_ctx *context, uint8 *digest)
void pg_sha384_init(pg_sha384_ctx *context)
void pg_sha256_init(pg_sha256_ctx *context)
void pg_sha512_update(pg_sha512_ctx *context, const uint8 *data, size_t len)
void pg_sha224_update(pg_sha224_ctx *context, const uint8 *data, size_t len)
void pg_sha512_init(pg_sha512_ctx *context)
void pg_sha224_init(pg_sha224_ctx *context)
void pg_sha256_final(pg_sha256_ctx *context, uint8 *digest)
void pg_sha224_final(pg_sha224_ctx *context, uint8 *digest)
void pg_sha384_final(pg_sha384_ctx *context, uint8 *digest)
void pg_sha384_update(pg_sha384_ctx *context, const uint8 *data, size_t len)
void pg_sha256_update(pg_sha256_ctx *context, const uint8 *data, size_t len)
#define PG_SHA256_DIGEST_LENGTH
#define PG_SHA384_DIGEST_LENGTH
#define PG_SHA512_DIGEST_LENGTH
#define PG_SHA224_DIGEST_LENGTH
pg_cryptohash_errno error
union pg_cryptohash_ctx::@40 data