| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
Functions
crc11.h File Reference
`#include <stdint.h>`
`#include "ws_symbol_export.h"`

Go to the source code of this file.

## Functions
WS_DLL_PUBLIC uint16_t | crc11_307_noreflect_noxor (const uint8_t *data, uint64_t data_len)
| Compute the CRC-11/UMTS checksum using polynomial 0x307 with no reflection or final XOR.

## Detailed Description

http://www.tty1.net/pycrc/faq_en.html#code-ownership

Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs

SPDX-License-Identifier: GPL-2.0-or-later

## Function Documentation

## ◆ crc11_307_noreflect_noxor()

WS_DLL_PUBLIC uint16_t crc11_307_noreflect_noxor | ( | const uint8_t * | data,
|  | uint64_t | data_len
| ) |  |

Compute the CRC-11/UMTS checksum using polynomial 0x307 with no reflection or final XOR.

Functions and types for CRC checks.

Generated on Tue Aug 7 15:45:57 2012, by pycrc v0.7.10, http://www.tty1.net/pycrc/ using the configuration: Width = 11 Poly = 0x307 XorIn = 0x000 ReflectIn = False XorOut = 0x000 ReflectOut = False Algorithm = table-driven

This function calculates the 11-bit CRC value over the input byte stream using the CRC-11 polynomial defined by ITU-T (0x307). It does not apply input or output reflection, nor does it perform a final XOR. This variant is commonly used in UMTS and other telecom protocols.

Polynomial: x^11 + x^9 + x^8 + x^2 + 1 (0x307) Initial value: 0x000 No input/output reflection No final XOR

Parameters

  data | Pointer to the input byte stream.
  data_len | Length of the input data in bytes.

Returns
  11-bit CRC checksum.

Update the crc value with new data.

Parameters

  data | Pointer to a buffer of data_len bytes.
  data_len | Number of bytes in the data buffer.

Returns
  The updated crc value.