1*49cdfc7eSAndroid Build Coastguard Worker /* SPDX-License-Identifier: GPL-2.0-or-later 2*49cdfc7eSAndroid Build Coastguard Worker * Copyright (c) 2018 Oracle and/or its affiliates. All Rights Reserved. 3*49cdfc7eSAndroid Build Coastguard Worker */ 4*49cdfc7eSAndroid Build Coastguard Worker 5*49cdfc7eSAndroid Build Coastguard Worker #ifndef TST_CHECKSUM_H__ 6*49cdfc7eSAndroid Build Coastguard Worker #define TST_CHECKSUM_H__ 7*49cdfc7eSAndroid Build Coastguard Worker 8*49cdfc7eSAndroid Build Coastguard Worker #include <stdint.h> 9*49cdfc7eSAndroid Build Coastguard Worker #include <stddef.h> 10*49cdfc7eSAndroid Build Coastguard Worker 11*49cdfc7eSAndroid Build Coastguard Worker /* 12*49cdfc7eSAndroid Build Coastguard Worker * Generates CRC32c checksum. 13*49cdfc7eSAndroid Build Coastguard Worker */ 14*49cdfc7eSAndroid Build Coastguard Worker uint32_t tst_crc32c(uint8_t *buf, size_t buf_len); 15*49cdfc7eSAndroid Build Coastguard Worker 16*49cdfc7eSAndroid Build Coastguard Worker #endif 17