1 /* 2 * Copyright 2011, Haiku Inc. All rights reserved. 3 * This file may be used under the terms of the MIT License. 4 * 5 * Authors: 6 * Jérôme Duval 7 */ 8 9 10 #include <sys/cdefs.h> 11 12 13 uint16 calculate_crc(uint16 crc, uint8 *data, uint16 length); 14 15 16 uint32 calculate_crc32c(uint32 crc32c, const unsigned char *buffer, 17 unsigned int length); 18 19 20