core: add support for lots of different hash algorithms
This commit is contained in:
14
core/hash/hash.h
Normal file
14
core/hash/hash.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef _HASH_H_
|
||||
#define _HASH_H_
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
struct b_hash_ctx;
|
||||
|
||||
struct b_hash_function_ops {
|
||||
void (*hash_init)(struct b_hash_ctx *);
|
||||
void (*hash_update)(struct b_hash_ctx *, const void *, size_t);
|
||||
void (*hash_finish)(struct b_hash_ctx *, void *, size_t);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user