Function gnunet_sys::GNUNET_CRYPTO_crc16_step[][src]

pub unsafe extern "C" fn GNUNET_CRYPTO_crc16_step(
    sum: u32,
    buf: *const c_void,
    len: usize
) -> u32

Perform an incremental step in a CRC16 (for TCP/IP) calculation.

@param sum current sum, initially 0 @param buf buffer to calculate CRC over (must be 16-bit aligned) @param len number of bytes in @a buf, must be multiple of 2 @return updated crc sum (must be subjected to #GNUNET_CRYPTO_crc16_finish to get actual crc16)