97 if (
context->raw_context.c_sha2 == NULL)
107 if (
context->raw_context.c_sha2 == NULL)
117 if (
context->raw_context.c_sha2 == NULL)
127 if (
context->raw_context.c_sha2 == NULL)
181 "CRC-32C digest too big for PG_CHECKSUM_MAX_LENGTH");
183 "SHA224 digest too big for PG_CHECKSUM_MAX_LENGTH");
185 "SHA256 digest too big for PG_CHECKSUM_MAX_LENGTH");
187 "SHA384 digest too big for PG_CHECKSUM_MAX_LENGTH");
189 "SHA512 digest too big for PG_CHECKSUM_MAX_LENGTH");
#define Assert(condition)
#define StaticAssertDecl(condition, errmessage)
char * pg_checksum_type_name(pg_checksum_type type)
bool pg_checksum_parse_type(char *name, pg_checksum_type *type)
int pg_checksum_final(pg_checksum_context *context, uint8 *output)
int pg_checksum_update(pg_checksum_context *context, const uint8 *input, size_t len)
int pg_checksum_init(pg_checksum_context *context, pg_checksum_type type)
#define PG_CHECKSUM_MAX_LENGTH
int pg_cryptohash_update(pg_cryptohash_ctx *ctx, const uint8 *data, size_t len)
int pg_cryptohash_init(pg_cryptohash_ctx *ctx)
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)
#define COMP_CRC32C(crc, data, len)
int pg_strcasecmp(const char *s1, const char *s2)
#define PG_SHA256_DIGEST_LENGTH
#define PG_SHA384_DIGEST_LENGTH
#define PG_SHA512_DIGEST_LENGTH
#define PG_SHA224_DIGEST_LENGTH