core: add support for lots of different hash algorithms

This commit is contained in:
2025-04-11 13:51:48 +01:00
parent c630321bf6
commit ed4942c500
12 changed files with 1899 additions and 20 deletions

14
core/hash/hash.h Normal file
View 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