diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-05 20:18:50 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-05 20:18:50 +0000 |
commit | 2df23abd0a1e5a67c3a2ae362fa2f4641f1ebe6d (patch) | |
tree | b0e721667ef6d4aa0c53c39d5ce01be26209ee9f /src/include | |
parent | fca364b9a6259f8e802ca118d069eecacf625064 (diff) | |
download | gnunet-2df23abd0a1e5a67c3a2ae362fa2f4641f1ebe6d.tar.gz gnunet-2df23abd0a1e5a67c3a2ae362fa2f4641f1ebe6d.zip |
fix crc16 prototypes
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index 0be9611ba..75aabe75f 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h | |||
@@ -238,12 +238,12 @@ GNUNET_CRYPTO_seed_weak_random (int32_t seed); | |||
238 | * Perform an incremental step in a CRC16 (for TCP/IP) calculation. | 238 | * Perform an incremental step in a CRC16 (for TCP/IP) calculation. |
239 | * | 239 | * |
240 | * @param sum current sum, initially 0 | 240 | * @param sum current sum, initially 0 |
241 | * @param hdr buffer to calculate CRC over (must be 16-bit aligned) | 241 | * @param buf buffer to calculate CRC over (must be 16-bit aligned) |
242 | * @param len number of bytes in hdr, must be multiple of 2 | 242 | * @param len number of bytes in hdr, must be multiple of 2 |
243 | * @return updated crc sum (must be subjected to GNUNET_CRYPTO_crc16_finish to get actual crc16) | 243 | * @return updated crc sum (must be subjected to GNUNET_CRYPTO_crc16_finish to get actual crc16) |
244 | */ | 244 | */ |
245 | uint32_t | 245 | uint32_t |
246 | GNUNET_CRYPTO_crc16_step (uint32_t sum, uint16_t * hdr, size_t len); | 246 | GNUNET_CRYPTO_crc16_step (uint32_t sum, const void *buf, size_t len); |
247 | 247 | ||
248 | 248 | ||
249 | /** | 249 | /** |
@@ -259,12 +259,12 @@ GNUNET_CRYPTO_crc16_finish (uint32_t sum); | |||
259 | /** | 259 | /** |
260 | * Calculate the checksum of a buffer in one step. | 260 | * Calculate the checksum of a buffer in one step. |
261 | * | 261 | * |
262 | * @param hdr buffer to calculate CRC over (must be 16-bit aligned) | 262 | * @param buf buffer to calculate CRC over (must be 16-bit aligned) |
263 | * @param len number of bytes in hdr, must be multiple of 2 | 263 | * @param len number of bytes in hdr, must be multiple of 2 |
264 | * @return crc16 value | 264 | * @return crc16 value |
265 | */ | 265 | */ |
266 | uint16_t | 266 | uint16_t |
267 | GNUNET_CRYPTO_crc16_n (uint16_t *hdr, size_t len); | 267 | GNUNET_CRYPTO_crc16_n (const void *buf, size_t len); |
268 | 268 | ||
269 | 269 | ||
270 | /** | 270 | /** |