/** * @file crc32c.ts * @description CRC-32C (Castagnoli) checksum for SCTP packets (RFC 4960 App. B, * polynomial 0x1EDC6F41), reflected input/output, used with the SCTP-specific * byte ordering described in RFC 4960 §6.8 / RFC 3309. * @module sctp/crc32c */ /** * Compute the raw reflected CRC-32C over a buffer. * @returns unsigned 32-bit */ export declare function crc32c(buf: Buffer): number; /** * Insert the SCTP checksum into a packet. The checksum field (bytes 8..11 of * the common header) is zeroed, the CRC computed over the whole packet, then * written back in little-endian byte order (RFC 4960 §6.8, RFC 3309). * @param packet - full SCTP packet (header + chunks) * @returns the same packet, checksum filled in */ export declare function applyChecksum(packet: Buffer): Buffer; /** * Validate the checksum of a received SCTP packet. */ export declare function verifyChecksum(packet: Buffer): boolean;