aboutsummaryrefslogtreecommitdiff
/*
 * SPDX-License-Identifier: CC0-1.0
 *
 * Copyright (C) 2025 W. Kosior <koszko@koszko.org>
 */

#ifndef PQCRYPTO_HASH_H
#define PQCRYPTO_HASH_H

#include <stdlib.h>

struct hash_function {
	void * (* make)(void);
	void (* free)(void * state);
	void (* feed)(void * state, void const * data, size_t data_bytes);
	int (* getc)(void * state);
};

typedef struct hash_function hash_function_t[1];

#endif /* PQCRYPTO_HASH_H */