27 #define SYS_HASH_SIZE 32 35 #ifndef SYS_HASH_CAPACITY 36 #ifdef SYSTEM_NAME_PICO 37 #define SYS_HASH_CAPACITY 1 39 #define SYS_HASH_CAPACITY 4 size_t sys_hash_size(const sys_hash_t *hash)
Return the digest size in bytes for a hash context.
Opaque byte streams for reading, writing, seeking, and readiness notification.
struct sys_iostream_t sys_iostream_t
An opaque byte stream.
bool sys_hash_update(sys_hash_t *hash, sys_iostream_t *stream, size_t size)
Update a hash context by reading more data from a stream.
struct sys_hash_t sys_hash_t
Hash context.
sys_hash_algorithm_t
Hash algorithm identifiers.
const uint8_t * sys_hash_finalize(sys_hash_t *hash)
Finalize the hash computation.
void sys_hash_deinit(sys_hash_t *hash)
Release a hash context.
sys_hash_t * sys_hash_init(sys_hash_algorithm_t algorithm)
Initialize a new hash context.
uintptr_t sys_hash_djb2(const char *str)
Compute a djb2 hash for a NULL-terminated string.