1 /* SPDX-License-Identifier: BSD-2-Clause */ 2 /* 3 * Copyright 2019 Broadcom. 4 */ 5 6 #ifndef CRC32_H 7 #define CRC32_H 8 9 #include <stdint.h> 10 #include <stdlib.h> 11 12 #define CRC32_INIT_VAL (~0) 13 #define CRC32 crc32i 14 15 uint32_t crc32i(uint32_t crc, const char *buf, size_t len); 16 17 #endif /* CRC32_H */ 18