diff options
author | Vladimir Gavrilov <105977161+0xA50C1A1@users.noreply.github.com> | 2023-12-05 17:58:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-05 15:58:11 +0100 |
commit | 72601a69ffb97709136ad6b67ba720ca8109f898 (patch) | |
tree | 6965314cb82bba8836be18cd1181e9eebf5d2d4d /src/include/ndpi_api.h | |
parent | be50493f4480a17fbcd88a4ae9cc6b825bc5970d (diff) |
Add some fast CRC16 algorithms implementation (#2195)
* Add some fast CRC16 algorithms implementation
* Update ndpi_crc.c
* Move crc16 stuff to ndpi_analyze.c
* IEEE C37.118: use new fast CRC-16/CCITT-FALSE implementation
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r-- | src/include/ndpi_api.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index 0eef7bae2..9c634f2a6 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -1796,6 +1796,9 @@ extern "C" { /* ******************************* */ void ndpi_md5(const u_char *data, size_t data_len, u_char hash[16]); + u_int16_t ndpi_crc16_ccit(const void* data, size_t n_bytes); + u_int16_t ndpi_crc16_ccit_false(const void *data, size_t n_bytes); + u_int16_t ndpi_crc16_xmodem(const void *data, size_t n_bytes); u_int32_t ndpi_crc32(const void* data, size_t n_bytes); u_int32_t ndpi_nearest_power_of_two(u_int32_t x); |