]>
Commit | Line | Data |
---|---|---|
1 | //----------------------------------------------------------------------------- | |
2 | // This code is licensed to you under the terms of the GNU GPL, version 2 or, | |
3 | // at your option, any later version. See the LICENSE.txt file for the text of | |
4 | // the license. | |
5 | //----------------------------------------------------------------------------- | |
6 | // CRC32 | |
7 | //----------------------------------------------------------------------------- | |
8 | ||
9 | #ifndef __CRC32_H | |
10 | #define __CRC32_H | |
11 | ||
12 | #include <stdint.h> | |
13 | #include <stddef.h> | |
14 | ||
15 | ||
16 | #ifdef __cplusplus | |
17 | extern "C" { | |
18 | #endif | |
19 | ||
20 | void crc32 (const uint8_t *data, const size_t len, uint8_t *crc); | |
21 | void crc32_append (uint8_t *data, const size_t len); | |
22 | ||
23 | #ifdef __cplusplus | |
24 | } | |
25 | #endif | |
26 | ||
27 | #endif |