17#ifndef COAP_HASHKEY_H_
18#define COAP_HASHKEY_H_
38#define coap_hash(String,Length,Result) \
39 coap_hash_impl((String),(Length),(Result))
42#define COAP_DEFAULT_HASH
44#undef COAP_DEFAULT_HASH
55#define coap_str_hash(Str,H) { \
57 memset((H), 0, sizeof(coap_key_t)); \
58 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.
Platform specific header file for CoAP stack.
Strings to be used in the CoAP library.