libcoap  4.1.1
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
Functions
hashkey.c File Reference
#include "hashkey.h"

Go to the source code of this file.

Functions

void coap_hash_impl (const unsigned char *s, unsigned int len, coap_key_t h)
 Calculates a fast hash over the given string s of length len and stores the result into h. More...
 

Function Documentation

void coap_hash_impl ( const unsigned char *  s,
unsigned int  len,
coap_key_t  h 
)

Calculates a fast hash over the given string s of length len and stores the result into h.

Depending on the exact implementation, this function cannot be used as one-way function to check message integrity or simlar.

Parameters
sThe string used for hash calculation.
lenThe length of s.
hThe result buffer to store the calculated hash key.

Definition at line 15 of file hashkey.c.