1/*-------------------------------------------------------------------------
4 * Generic headers for cryptographic hash functions.
6 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/include/common/cryptohash.h
12 *-------------------------------------------------------------------------
15#ifndef PG_CRYPTOHASH_H
16#define PG_CRYPTOHASH_H
18/* Context Structures for each hash function */
29/* opaque context, private to each cryptohash implementation */
39#endif /* PG_CRYPTOHASH_H */
const char * pg_cryptohash_error(pg_cryptohash_ctx *ctx)
int pg_cryptohash_update(pg_cryptohash_ctx *ctx, const uint8 *data, size_t len)
pg_cryptohash_ctx * pg_cryptohash_create(pg_cryptohash_type type)
int pg_cryptohash_init(pg_cryptohash_ctx *ctx)
void pg_cryptohash_free(pg_cryptohash_ctx *ctx)
int pg_cryptohash_final(pg_cryptohash_ctx *ctx, uint8 *dest, size_t len)