summaryrefslogtreecommitdiffstats
path: root/kernel/tests/include/tst_checksum.h
blob: f062869de812171a0b1834a7957fefd89b4d52e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright (c) 2018 Oracle and/or its affiliates. All Rights Reserved.
 */

#ifndef TST_CHECKSUM_H__
#define TST_CHECKSUM_H__

#include <stdint.h>
#include <stddef.h>

/*
 * Generates CRC32c checksum.
 */
uint32_t tst_crc32c(uint8_t *buf, size_t buf_len);

#endif