LibJuno 1.0.1
LibJuno is a lightweight C11 library designed specifically for embedded systems.
Loading...
Searching...
No Matches
hash_djb2.h File Reference

djb2 hash implementation (unsigned size_t variant). More...

#include "juno/status.h"
#include "juno/types.h"
Include dependency graph for hash_djb2.h:

Go to the source code of this file.

Functions

static JUNO_RESULT_SIZE_T JunoHash_Djb2 (const uint8_t *pcBuff, size_t zBuffSize)
 Compute djb2 hash over a byte buffer.
 

Detailed Description

djb2 hash implementation (unsigned size_t variant).

This API has been generated by LibJuno: https://www.robinonsay.com/libjuno/

Function Documentation

◆ JunoHash_Djb2()

static JUNO_RESULT_SIZE_T JunoHash_Djb2 ( const uint8_t *  pcBuff,
size_t  zBuffSize 
)
inlinestatic

Compute djb2 hash over a byte buffer.

Parameters
pcBuffPointer to input bytes (must not be NULL unless zBuffSize==0).
zBuffSizeNumber of bytes to hash.
Returns
Result containing the hash value or an error for invalid input.