aboutsummaryrefslogtreecommitdiff
path: root/pqcrypto_hash.h
blob: 504a7e65ad27bfc09f6efb58600fb47ae62916b7 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * 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 */