X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Fcsdk%2Fconnectivity%2Flib%2Flibcoap-4.1.1%2Fhashkey.h;h=5ed5e033e6e86b51e7b993bb7c109551619b1937;hb=935fdb9b67b6c10d007e652e9e2e028fd6ccfe09;hp=4732a703d4365226ff70d6a7a68c48e463d7b47c;hpb=00b3660e45c56cb3db35dc2596a054f801b5591a;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/csdk/connectivity/lib/libcoap-4.1.1/hashkey.h b/resource/csdk/connectivity/lib/libcoap-4.1.1/hashkey.h index 4732a70..5ed5e03 100644 --- a/resource/csdk/connectivity/lib/libcoap-4.1.1/hashkey.h +++ b/resource/csdk/connectivity/lib/libcoap-4.1.1/hashkey.h @@ -3,10 +3,10 @@ * Copyright (C) 2010,2011 Olaf Bergmann * * This file is part of the CoAP library libcoap. Please see - * README for terms of use. + * README for terms of use. */ -/** +/** * @file hashkey.h * @brief definition of hash key type and helper functions */ @@ -19,12 +19,12 @@ typedef unsigned char coap_key_t[4]; #ifndef coap_hash -/** +/** * Calculates a fast hash over the given string @p s of length @p len * and stores the result into @p h. Depending on the exact * implementation, this function cannot be used as one-way function to * check message integrity or simlar. - * + * * @param s The string used for hash calculation. * @param len The length of @p s. * @param h The result buffer to store the calculated hash key. @@ -40,18 +40,18 @@ void coap_hash_impl(const unsigned char *s, unsigned int len, coap_key_t h); #undef __COAP_DEFAULT_HASH #endif /* coap_hash */ -/** +/** * Calls coap_hash() with given @c str object as parameter. - * + * * @param Str Must contain a pointer to a coap string object. * @param H A coap_key_t object to store the result. - * + * * @hideinitializer */ -#define coap_str_hash(Str,H) { \ - assert(Str); \ - memset((H), 0, sizeof(coap_key_t)); \ - coap_hash((H), (Str)->s, (Str)->length); \ +#define coap_str_hash(Str,H) { \ + assert(Str); \ + memset((H), 0, sizeof(coap_key_t)); \ + coap_hash((H), (Str)->s, (Str)->length); \ } #endif /* _COAP_HASHKEY_H_ */