CRYPTO-C
v1.1.3
C/C++ Documentation
crc16.h
Go to the documentation of this file.
1
18
/* include guard */
19
#ifndef CRYPTO_CRC16_H
20
#define CRYPTO_CRC16_H
21
22
23
#include "
utildev.h
"
24
25
#define CRC16LEN 2
27
/* C/C++ compatible function prototypes */
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
32
uint16_t
crc16
(
void
*in,
size_t
inlen);
33
34
/* CUDA testing functions */
35
#ifdef CUDA
36
void
test_kcu_crc16(
const
void
*in,
size_t
*inlen,
size_t
max_inlen,
37
uint16_t *ret,
int
num);
38
#endif
39
40
/* end extern "C" {} for C++ */
41
#ifdef __cplusplus
42
}
43
#endif
44
45
/* end include guard */
46
#endif
crc16
uint16_t crc16(void *in, size_t inlen)
Compute CRC16 on inlen bytes of in.
Definition:
crc16.c:21
utildev.h
Device utilities and includes support.
src
crc16.h
Generated by
1.9.3