17#ifndef COAP_HASHKEY_INTERNAL_H_
18#define COAP_HASHKEY_INTERNAL_H_
21#include "coap_uthash_internal.h"
42#define coap_hash(String,Length,Result) \
43 coap_hash_impl((String),(Length),(Result))
46#define COAP_DEFAULT_HASH
48#undef COAP_DEFAULT_HASH
59#define coap_str_hash(Str,H) { \
61 memset((H), 0, sizeof(coap_key_t)); \
62 coap_hash((Str)->s, (Str)->length, (H)); \
unsigned char coap_key_t[4]
void coap_hash_impl(const unsigned char *s, size_t len, coap_key_t h)
Calculates a fast hash over the given string s of length len and stores the result into h.
Strings to be used in the CoAP library.
Platform specific header file for CoAP stack.